In Route Map (see Route Map), we can match or set BGP communities attribute. Using this feature network operator can implement their network policy based on BGP communities attribute.
Following commands can be used in Route Map.
This command perform match to BGP updates using community list word. When the one of BGP communities value match to the one of communities value in community list, it is match. When
exact-matchkeyword is spcified, match happen only when BGP updates have completely same communities value specified in the community list.
This command manipulate communities value in BGP updates. When
noneis specified as communities value, it removes entire communities attribute from BGP updates. When community is not
none, specified communities value is set to BGP updates. If BGP updates already has BGP communities value, the existing BGP communities value is replaced with specified community value. When
additivekeyword is specified, community is appended to the existing communities value.
This command remove communities value from BGP communities attribute. The word is community list name. When BGP route's communities value matches to the community list word, the communities value is removed. When all of communities value is removed eventually, the BGP update's communities attribute is completely removed.