05-26-2020 01:28 PM - edited 05-26-2020 03:11 PM
All,
From my understanding, the following route policy:
route-policy TEST_EIGRP_OUT
if destination in TEST_EIGRP_OUT then
drop
else
pass
endif
set eigrp-metric 10000 27000 255 1 1500
end-policy
Should be written:
route-policy TEST_EIGRP_OUT
if destination in TEST_EIGRP_OUT then
drop
else
set eigrp-metric 10000 27000 255 1 1500
endif
end-policy
As the policy is currently written (top example), the metrics will not be applied, as the policy performs the "pass" action and then stops processing. I can see in my "show eigrp int" command that these values are not applied.
Just looking for confirmation from the XR community, rather than opening an SR.
Thanks,
Phil
Solved! Go to Solution.
05-27-2020 06:14 AM
Hi Phil
route-policy TEST_EIGRP_OUT if destination in TEST_EIGRP_OUT then drop else pass endif set eigrp-metric 10000 27000 255 1 1500 end-policy
in this example of using else pass, there is really no prefix that will not match this. so there is no reason for a prefix to go further.
route-policy TEST_EIGRP_OUT if destination in TEST_EIGRP_OUT then drop else set eigrp-metric 10000 27000 255 1 1500 endif end-policy
In this example, everything that does not match your prefix set will have a new metric set. you can further specify by having another if destination in prefix set to only change the metric or leave as is which will match anything that is not present in "TEST_EIGRP_OUT"
thanks
05-27-2020 06:14 AM
Hi Phil
route-policy TEST_EIGRP_OUT if destination in TEST_EIGRP_OUT then drop else pass endif set eigrp-metric 10000 27000 255 1 1500 end-policy
in this example of using else pass, there is really no prefix that will not match this. so there is no reason for a prefix to go further.
route-policy TEST_EIGRP_OUT if destination in TEST_EIGRP_OUT then drop else set eigrp-metric 10000 27000 255 1 1500 endif end-policy
In this example, everything that does not match your prefix set will have a new metric set. you can further specify by having another if destination in prefix set to only change the metric or leave as is which will match anything that is not present in "TEST_EIGRP_OUT"
thanks
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide