cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
489
Views
5
Helpful
1
Replies

Route Policy Change Confirmation

philclemens1835
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

tkarnani
Cisco Employee
Cisco Employee

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

View solution in original post

1 Reply 1

tkarnani
Cisco Employee
Cisco Employee

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