80ce957d20
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.
17 lines
446 B
Django/Jinja
17 lines
446 B
Django/Jinja
!
|
|
! 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 }} no-export
|
|
!
|
|
route-map FROM_BGP_SENTINEL permit 100
|
|
match community sentinel_community
|
|
{% endif %}
|
|
!
|
|
route-map FROM_BGP_SENTINEL deny 200
|
|
!
|
|
route-map TO_BGP_SENTINEL permit 100
|
|
!
|
|
! end of template: bgpd/templates/sentinels/policies.conf.j2
|
|
!
|