diff --git a/dockers/docker-fpm-frr/frr/bgpd/templates/internal/policies.conf.j2 b/dockers/docker-fpm-frr/frr/bgpd/templates/internal/policies.conf.j2 index e6eccc75fae..c0e49cc9040 100644 --- a/dockers/docker-fpm-frr/frr/bgpd/templates/internal/policies.conf.j2 +++ b/dockers/docker-fpm-frr/frr/bgpd/templates/internal/policies.conf.j2 @@ -39,8 +39,9 @@ route-map FROM_BGP_INTERNAL_PEER_V4 permit 2 on-match next ! {% if CONFIG_DB__DEVICE_METADATA['localhost']['subtype'] == 'DownstreamLC' %} -route-map FROM_BGP_INTERNAL_PEER_V4 deny 3 +route-map FROM_BGP_INTERNAL_PEER_V4 permit 3 match community DEVICE_INTERNAL_FALLBACK_COMMUNITY + set comm-list DEVICE_INTERNAL_FALLBACK_COMMUNITY delete {% else %} route-map FROM_BGP_INTERNAL_PEER_V4 permit 3 match community DEVICE_INTERNAL_FALLBACK_COMMUNITY @@ -63,8 +64,9 @@ route-map FROM_BGP_INTERNAL_PEER_V6 permit 3 on-match next ! {% if CONFIG_DB__DEVICE_METADATA['localhost']['subtype'] == 'DownstreamLC' %} -route-map FROM_BGP_INTERNAL_PEER_V6 deny 4 +route-map FROM_BGP_INTERNAL_PEER_V6 permit 4 match community DEVICE_INTERNAL_FALLBACK_COMMUNITY + set comm-list DEVICE_INTERNAL_FALLBACK_COMMUNITY delete {% else %} route-map FROM_BGP_INTERNAL_PEER_V6 permit 4 match community DEVICE_INTERNAL_FALLBACK_COMMUNITY diff --git a/src/sonic-bgpcfgd/tests/data/internal/policies.conf/result_chasiss_packet.conf b/src/sonic-bgpcfgd/tests/data/internal/policies.conf/result_chasiss_packet.conf index 5569f3a5d39..d67849a86fe 100644 --- a/src/sonic-bgpcfgd/tests/data/internal/policies.conf/result_chasiss_packet.conf +++ b/src/sonic-bgpcfgd/tests/data/internal/policies.conf/result_chasiss_packet.conf @@ -15,8 +15,9 @@ route-map FROM_BGP_INTERNAL_PEER_V4 permit 2 set local-preference 80 on-match next ! -route-map FROM_BGP_INTERNAL_PEER_V4 deny 3 +route-map FROM_BGP_INTERNAL_PEER_V4 permit 3 match community DEVICE_INTERNAL_FALLBACK_COMMUNITY + set comm-list DEVICE_INTERNAL_FALLBACK_COMMUNITY delete ! route-map FROM_BGP_INTERNAL_PEER_V6 permit 1 set ipv6 next-hop prefer-global @@ -32,8 +33,9 @@ route-map FROM_BGP_INTERNAL_PEER_V6 permit 3 set local-preference 80 on-match next ! -route-map FROM_BGP_INTERNAL_PEER_V6 deny 4 +route-map FROM_BGP_INTERNAL_PEER_V6 permit 4 match community DEVICE_INTERNAL_FALLBACK_COMMUNITY + set comm-list DEVICE_INTERNAL_FALLBACK_COMMUNITY delete ! route-map TO_BGP_INTERNAL_PEER_V4 permit 1 match ip address prefix-list PL_LoopbackV4