sonic-buildimage/dockers/docker-fpm-frr
guangyao6 9567c06570
Add BGP configuration for BGPSentinel peer (#15714)
Why I did it
For route registry service, in order to block hijacked routes, IBGP session needs to be set up from BGP sentinel service to SONiC, and BGP sentinel service advertise the same route with higher local-preference and no export community. So that SONiC takes the route from BGP sentinel as the best path and does not advertise the route to EBGP peers.
In order to do that, new route-maps are needed. So this change adds a new set of templates, keeping BGPSentinel peers out of the other templates.

Work item tracking
Microsoft ADO (number only): 24451346
How I did it
Add sentinel_community in constants.yml, route from BGPSentinel do not match this community will be denied.
Add support to convert BGPSentinel related configuration in the BGPPeerPassive element of the minigraph to a new BGP_SENTINELS table in CONFIG_DB
Add a new set of "sentinels" templates to docker-fpm-frr
Add a new BGP peer manager to bgpcfgd, to add neighbors from the BGP_SENTINELS table using the "sentinels" templates
Add a test case for minigraph.py, making sure the BGPSentinel and BGPSentinelV6 elements create BGP_SENTINELS DB entry.
Add a set of test cases for the new sentinels templates in sonic-bgpcfgd tests.
Add sonic-bgp-sentinel.yang and a set of testcases for the yang file.

How to verify it
Testcases and UT newly added would pass.
Setup IPv4 and IPv6 BGPSentinel services in minigraph, and load minigraph, show CONFIG_DB and "show runningconfig bgp", configuration would be loaded successfully.
Using t1-lag topo and setup IBGP session from BGPSentinel to SONiC loopback address, IBGP session would up.
Advertise route from BGPSentinel to T1 with sentinel_community, higher local-preference and no-export communiyt. In T1, show bgp route, the result is "Not advertise to any EBGP peer".
Withdraw the route in BGPSentinel, in T1, route would advertise to EBGP peers.
Advertise route from T1 that does not match sentinel_community, in T1, would not see the route in show bgp route.
2023-07-21 09:32:29 +08:00
..
base_image_files [bgp]: Add sudo check for TSA/B/C command execution (#15288) 2023-06-03 23:47:26 +02:00
frr Add BGP configuration for BGPSentinel peer (#15714) 2023-07-21 09:32:29 +08:00
.dockerignore [docker-fpm-frr]:filter out the file of 'Dockerfile.j2' from the 'docker-fpm-frr' image. (#3507) 2019-09-27 12:43:44 -07:00
bgp_regex.json Change bgp notification leaf name and mem_usage leaf type (#13012) 2023-01-24 15:47:32 -08:00
docker_init.sh Timezone sync issue between the host and containers (#14000) 2023-06-25 16:36:09 -07:00
Dockerfile.j2 [infra] Support syslog rate limit configuration (#12490) 2022-12-20 10:53:58 +02:00
events_info.json Streaming structured events implementation (#11848) 2022-09-03 07:33:25 -07:00
snmp.conf [FRR] Enable SNMP support (#2981) 2019-06-19 01:24:42 -07:00
TS Changes to support TSA from supervisor (#14691) 2023-04-28 16:28:06 +08:00
TSA Fixes for errors seen in staging devices (#7171) 2021-04-08 15:16:43 -07:00
TSB Fixes for errors seen in staging devices (#7171) 2021-04-08 15:16:43 -07:00
TSC Fixes for errors seen in staging devices (#7171) 2021-04-08 15:16:43 -07:00
vtysh.conf [sonic-frr]: FRR 4.0 integration with SONiC (#2099) 2018-10-02 10:24:59 -07:00
zsocket.sh [FRR] Create a separate script to wait zebra to be ready to receive connections (#6519) 2021-01-27 12:36:02 -08:00