Create and test policy
create polict
vagrant@vqfx-re> show configuration policy-options policy-statement send-direct | display set set policy-options policy-statement send-direct term loopback from protocol direct set policy-options policy-statement send-direct term loopback from route-filter 10.0.0.0/24 orlonger set policy-options policy-statement send-direct term loopback then next-hop self set policy-options policy-statement send-direct term loopback then accept set policy-options policy-statement send-direct term reject then reject
test policy
{master:0} vagrant@vqfx-re> test policy send-direct 10.2.0.10 Policy send-direct: 0 prefix accepted, 0 prefix rejected {master:0} vagrant@vqfx-re> test policy send-direct 10.0.0.10 VRF_TEANT_1.inet.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 10.0.0.10/32 *[Direct/0] 14:46:59 > via lo0.0 Policy send-direct: 1 prefix accepted, 0 prefix rejected {master:0} vagrant@vqfx-re>