sonic-buildimage/dockers
abdosi ab05a2f58a
Add support for BGP Monitors on multi asic SONiC platforms. (#6977)
This PR is cherry-pick of master
https://github.com/Azure/sonic-buildimage/pull/6920

Why I did it
Add support for BGP Monitors on multi asic SONiC platforms.

How I did it
On multi ASIC SONiC platforms, BGP monitor session will be established from Backend ASIC.
To achieve this following changes are done

Add BGP monitor configuration on the backend ASIC.
The BGP monitor configuration is present in the DPG of the device in minigraph.xml of multi-ASIC device, so this configuration will be added to the config_db of the host, when the minigraph is loaded.
To add configuration for this in the Backend ASIC, a new class MultiAsicBgpMonCfg is added to the hostcfgd service to update the config_db of the backend ASIC when the BGP_MONITOR table of the host config_db is updated.
This way incremental BGP_MONITOR configuration can also be handled.

Changes to establish BGP session with bgp monitor.

Add route in host main routing table to go to one of pre-define backend asic
Add IP table rule on front asic to mark the BGP packets with destination as IPv4 Loopback.
Add IP rule in front asic namespace to match mark BGP packet and lookup default table
Program the default route in FrontEnd asic name space docker default table as part of start.sh of the BGP container.
It need to be done as part of start.sh otherwise FRR default route will get over-written.
How to verify it

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
Co-authored-by: Arvind <arlakshm@microsoft.com>
2021-03-06 21:21:52 -08:00
..
docker-base Enable the notify mode of rsyslogd imfile module used for supervisord (#6298) 2020-12-31 17:04:00 -08:00
docker-base-stretch Updated imfile configuration for supervisord logs (#6368) 2021-01-06 18:48:24 -08:00
docker-basic_router Remove extra trailing newlines at EOF (#804) 2017-07-12 20:54:37 -07:00
docker-config-engine Remove unused packages in docker images and host (#2807) 2019-04-29 17:21:24 -07:00
docker-config-engine-stretch [build]: Improve dockerfile instructions (#3048) 2019-06-22 11:26:23 -07:00
docker-database [monit] Adding patch to enhance syslog error message generation for monit alert action when status is failed. (#5720) 2020-11-01 10:27:10 -08:00
docker-dhcp-relay [dhcp-relay]: Launch DHCP Relay On L3 Vlan (#6527) 2021-01-25 12:38:16 -08:00
docker-fpm-frr Add support for BGP Monitors on multi asic SONiC platforms. (#6977) 2021-03-06 21:21:52 -08:00
docker-fpm-gobgp [frr] Reduce Calls to SONiC Cfggen (#5176) 2020-12-22 09:51:54 -08:00
docker-fpm-quagga [frr] Reduce Calls to SONiC Cfggen (#5176) 2020-12-22 09:51:54 -08:00
docker-lldp-sv2 [lldp]: Add verification IPv4 address on LLDP conf Jinja2 Template (#5699) 2021-02-11 15:34:06 -08:00
docker-nat [dockers][supervisor] Increase event buffer size for dependent-startup (#5247) 2020-09-28 16:12:53 +00:00
docker-orchagent [Multi Asic] support of swss.rec and sairedis.rec for multi asic (#6310) 2021-01-27 17:12:32 -08:00
docker-platform-monitor Add a configuration to delay start xcvrd for fast-reboot (#5643) 2020-12-22 09:51:54 -08:00
docker-ptf [201911] Fix PTF Docker Build Error (#6583) 2021-01-28 02:19:12 -08:00
docker-ptf-saithrift [docker-ptf-*]: Use buildimage infrastructure to build docker-ptf-* (#638) 2017-05-26 17:18:11 -07:00
docker-router-advertiser [radv] Disable radv for specific deployment_id (#6830) 2021-02-22 18:52:40 -08:00
docker-sflow [monit] Adding patch to enhance syslog error message generation for monit alert action when status is failed. (#5720) 2020-11-01 10:27:10 -08:00
docker-snmp-sv2 [snmp]: Reduce Calls to SONiC Cfggen (#5166) 2020-12-22 09:51:54 -08:00
docker-sonic-mgmt [mgmt docker] move pycryptodome installation to the end of the docker building (#4917) 2020-07-11 09:46:51 -07:00
docker-sonic-mgmt-framework [mgmt-framework] Call sonic-cfggen Once (#4937) 2020-12-22 09:51:54 -08:00
docker-sonic-restapi [monit] Adding patch to enhance syslog error message generation for monit alert action when status is failed. (#5720) 2020-11-01 10:27:10 -08:00
docker-sonic-telemetry [monit] Adding patch to enhance syslog error message generation for monit alert action when status is failed. (#5720) 2020-11-01 10:27:10 -08:00
docker-teamd [multi-asic] teamdctl support for multi-asic (#5851) 2020-11-09 12:33:41 -08:00
dockerfile-macros.j2 [build]: Improve dockerfile instructions (#3048) 2019-06-22 11:26:23 -07:00