...
Enable Community Exchange with Peer
The set protocols bgp neighbor send-community command enables community and/or extended community exchange with the specified neighbor. When this command is configured for the peer-group, then all the neighbors that are part of peer-group will send the community values to the peers.
...
Apply a Routing Policy to Routes Advertised
The set protocols bgp neighbor route-map command applies a route map to incoming or outgoing routes. It configures the route map for modifying the community attribute of the route.
...