! Standard community-list to control incoming routes
ip community-list standard MATCH_COMMUNITY permit 65000:100 12 12
ip community-list standard MATCH_COMMUNITY deny 65000:200
ip community-list standard MATCH_COMMUNITY permit 65000:200
ip community-list standard MATCH_COMMUNITY permit 13
! Expanded community-list to control incoming routes
ip community-list expanded MATCH_COMMUNITY_1 permit ^65000:[0-9]+$
! Import policy
route-map IMPORT_POLICY permit 10
match community MATCH_COMMUNITY
exit
route-map IMPORT_POLICY permit 20
match community MATCH_COMMUNITY_1
exit
router bgp 65001
neighbor 192.168.10.1 remote-as 65000
neighbor 192.168.10.1 soft-reconfiguration inbound
! Apply route-map for inbound direction
neighbor 192.168.10.1 route-map IMPORT_POLICY in
What will be logical operation between community MATCH_COMMUNITY and community MATCH_COMMUNITY_1 is it OR / AND?
because on this device I have received the route 12.12.12.0/24(65000:300 65000:200) , its should have been added to the routing table but this route is dropped , so Is switch is not evaluating MATCH_COMMUNITY_1 ?
@Peter Paluchcan you advise