Add no-export to sentinel community-list (#16285)
Why I did it Add no-export to bgp sentinel community-list. So that bgp updates from bgp sentinel service must match sentinel community and no-export, otherwise, the bgp update will be dropped. Work item tracking Microsoft ADO (24946274): How I did it Add no-export to bgp sentinel community-list. How to verify it Run UT, case would pass. Build the image and start the device. Add bgp sentinel and check that no-export community exist in bgp sentinel community list.
This commit is contained in:
parent
d0a40afcad
commit
80ce957d20
@ -2,7 +2,7 @@
|
||||
! template: bgpd/templates/sentinels/policies.conf.j2
|
||||
!
|
||||
{% if constants.bgp.sentinel_community is defined %}
|
||||
bgp community-list standard sentinel_community permit {{ constants.bgp.sentinel_community }}
|
||||
bgp community-list standard sentinel_community permit {{ constants.bgp.sentinel_community }} no-export
|
||||
!
|
||||
route-map FROM_BGP_SENTINEL permit 100
|
||||
match community sentinel_community
|
||||
|
@ -1,7 +1,7 @@
|
||||
!
|
||||
! template: bgpd/templates/sentinels/policies.conf.j2
|
||||
!
|
||||
bgp community-list standard sentinel_community permit 12345:12346
|
||||
bgp community-list standard sentinel_community permit 12345:12346 no-export
|
||||
!
|
||||
route-map FROM_BGP_SENTINEL permit 100
|
||||
match community sentinel_community
|
||||
|
Loading…
Reference in New Issue
Block a user