sk2 / ank_legacy_v2

Legacy edition of autonetkit. Please see https://github.com/sk2/autonetkit for latest version
www.autonetkit.org
BSD 3-Clause "New" or "Revised" License
10 stars 4 forks source link

need empty "permit" route-map statement at the end of every route-map. #175

Closed coaj closed 12 years ago

coaj commented 12 years ago

this is to address IOS's "implicit deny" behaviour. just need to add route-map ${rm_name} permit ${index} would do it in the templates, but the ${index}? discussed in more details here: https://supportforums.cisco.com/thread/1399

sk2 commented 12 years ago

what should it look like wrt index?

On 23 January 2012 16:02, coaj reply@reply.github.com wrote:

this is to address IOS's "implicit deny" behaviour. just need to add route-map ${rm_name} permit ${index} would do it in the templates, but the ${index}? discussed in more details here: https://supportforums.cisco.com/thread/1399


Reply to this email directly or view it on GitHub: https://github.com/sk2/autonetkit/issues/175

coaj commented 12 years ago

just the next index (the biggest index, as this should be the last statement in the route map), as if you would have one more statement in that route map.

sk2 commented 12 years ago
route-map rm_2a_AS2_in permit 10
 match community xyz;
 set local-preference 100
 continue
route-map rm_2a_AS2_in deny 20
 match community zzz;
 set local-preference 150
add route-map rm_2a_AS2_in permit 30
!
route-map rm_2a_AS2_out permit 10
 match community cde;
 set community 1234:20 additive
 continue
route-map rm_2a_AS2_out permit 20
 match community def;
 set metric 200
 continue
route-map rm_2a_AS2_out permit 30
 match community ghi;
 set community 1234:20 additive
add route-map rm_2a_AS2_out permit 40 
coaj commented 12 years ago

"add route-map rm_2a_AS2_out permit 40 " - the "add" is excessive