feature request about send-community
-
i want to send a community a prefix but i cant do this because on route-map sending community to al prefixes
is not useful because when i want blackhole a prefix i need to blackhole all prefixes and its very bad situation
-
@sponner
Please give a more complete description of the problem.
-
@derelict when i need send a community to my upstream for block announce of to a peer for 1 prefix i cant do
how i can send to a community only 1 prefix ?
when i need send a community
community will send all prefixes.my prefix list like thİs
prefix list xxxx-OUT
sequence 1 permit x.x.x.0/24
sequence 2 permit x.x.x.0/24
sequence 3 permit x.x.x.0/24my route-map like this
route dynamic route-map xxxx-OUT-RM
sequence 10
policy permit
match ip address prefix-list xxxx-OUT
set community "1111:2222" -
@sponner You would need to make a prefix list for the prefix you want to the community set on, match on that, set the community, then in a later sequence match the prefixes to be announced without setting the community, delete all communities from the routes, etc.
-
@derelict yes but i want to send community to only one prefix but i cant do this because this route map sending community to all prefixes
myby you can add multiple route map on a neighbor
-
@sponner You are matching all prefixes in the prefix-list when you set the community. You are not stripping any existing communities on announced routes. Still not exactly sure what you are looking to do. What prefix do you want to tag with the community and what communities exist on the routes being announced?
-
@sponner
I'm talking about something like this (untested):
prefix list xxxx-OUT
sequence 1 permit x.x.x.0/24
sequence 2 permit y.y.y.0/24
sequence 3 permit z.z.z.0/24prefix list AddCommunity-OUT
sequence 1 permit z.z.z.0/24my route-map like this
route dynamic route-map xxxx-OUT-RM
sequence 10
policy permit
match ip address prefix-list AddCommunity-OUT
set community "1111:2222"
sequence 20
policy permit
match ip address prefix-list xxxx-OUT -
@derelict i will try sequence 10 and 20 and after i will tell you results
-
@derelict
is worked thanx