4a7aa2634f
What I did: In Chassis TSA mode Loopback0 Ip's of each LC's should be advertise through e-BGP peers of each remote LC's How I did: - Route-map policy to Advertise own/self Loopback IP to other internal iBGP peers with a community internal_community as define in constants.yml - Route-map policy to match on above internal_community when route is received from internal iBGP peers and set a internal tag as define in constants.yml and also delete the internal_community so we don't send to any of e-BGP peers - In TSA new route-map match on above internal tag and permit the route (Loopback0 IP's of remote LC's) and set the community to traffic_shift_community. - In TSB delete the above new route-map. How I verify: Manual Verification UT updated. sonic-mgmt PR: sonic-net/sonic-mgmt#10239 Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
39 lines
1.2 KiB
Django/Jinja
39 lines
1.2 KiB
Django/Jinja
!
|
|
! template: bgpd/templates/voq_chassis/policies.conf.j2
|
|
!
|
|
bgp community-list standard DEVICE_INTERNAL_COMMUNITY permit {{ constants.bgp.internal_community }}
|
|
!
|
|
route-map FROM_VOQ_CHASSIS_V4_PEER permit 1
|
|
match community DEVICE_INTERNAL_COMMUNITY
|
|
set comm-list DEVICE_INTERNAL_COMMUNITY delete
|
|
set tag {{ constants.bgp.internal_community_match_tag }}
|
|
!
|
|
route-map FROM_VOQ_CHASSIS_V4_PEER permit 100
|
|
!
|
|
route-map TO_VOQ_CHASSIS_V4_PEER permit 1
|
|
match ip address prefix-list PL_LoopbackV4
|
|
set community {{ constants.bgp.internal_community }}
|
|
!
|
|
route-map TO_VOQ_CHASSIS_V4_PEER permit 100
|
|
!
|
|
!
|
|
route-map FROM_VOQ_CHASSIS_V6_PEER permit 1
|
|
set ipv6 next-hop prefer-global
|
|
on-match next
|
|
!
|
|
route-map FROM_VOQ_CHASSIS_V6_PEER permit 2
|
|
match community DEVICE_INTERNAL_COMMUNITY
|
|
set comm-list DEVICE_INTERNAL_COMMUNITY delete
|
|
set tag {{ constants.bgp.internal_community_match_tag }}
|
|
!
|
|
route-map FROM_VOQ_CHASSIS_V6_PEER permit 100
|
|
!
|
|
route-map TO_VOQ_CHASSIS_V6_PEER permit 1
|
|
match ipv6 address prefix-list PL_LoopbackV6
|
|
set community {{ constants.bgp.internal_community }}
|
|
!
|
|
route-map TO_VOQ_CHASSIS_V6_PEER permit 100
|
|
!
|
|
! end of template: bgpd/templates/voq_chassis/policies.conf.j2
|
|
!
|