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:
guangyao6 2023-08-29 09:12:19 +08:00 committed by GitHub
parent d0a40afcad
commit 80ce957d20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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