Skip to content

Commit 1ccee47

Browse files
authored
Revert "[202311] Revert bgp suppress fib pending" (sonic-net#17882)
1 parent d7a7760 commit 1ccee47

36 files changed

+375
-256
lines changed

dockers/docker-fpm-frr/frr/bgpd/bgpd.main.conf.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ router bgp {{ DEVICE_METADATA['localhost']['bgp_asn'] }}
6666
!
6767
{% block bgp_init %}
6868
bgp log-neighbor-changes
69+
bgp suppress-fib-pending
6970
no bgp default ipv4-unicast
7071
no bgp ebgp-requires-policy
7172
{% if (DEVICE_METADATA is defined) and ('localhost' in DEVICE_METADATA) and ('subtype' in DEVICE_METADATA['localhost']) and (DEVICE_METADATA['localhost']['subtype'].lower() == 'dualtor') %}

dockers/docker-fpm-frr/frr/supervisord/supervisord.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ stderr_logfile=syslog
3030
dependent_startup=true
3131

3232
[program:zebra]
33-
command=/usr/lib/frr/zebra -A 127.0.0.1 -s 90000000 -M fpm -M snmp
33+
command=/usr/lib/frr/zebra -A 127.0.0.1 -s 90000000 -M dplane_fpm_nl -M snmp --asic-offload=notify_on_offload
3434
priority=4
3535
autostart=false
3636
autorestart=false

platform/vs/docker-sonic-vs/supervisord.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ environment=ASAN_OPTIONS="log_path=/var/log/asan/teammgrd-asan.log{{ asan_extra_
164164
{% endif %}
165165

166166
[program:zebra]
167-
command=/usr/lib/frr/zebra -A 127.0.0.1 -s 90000000 -M fpm
167+
command=/usr/lib/frr/zebra -A 127.0.0.1 -s 90000000 -M dplane_fpm_nl --asic-offload=notify_on_offload
168168
priority=13
169169
autostart=false
170170
autorestart=false

src/sonic-bgpcfgd/bgpcfgd/managers_bgp.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,10 +304,11 @@ def apply_op(self, cmd, vrf):
304304
:return: True if no errors, False if there are errors
305305
"""
306306
bgp_asn = self.directory.get_slot("CONFIG_DB", swsscommon.CFG_DEVICE_METADATA_TABLE_NAME)["localhost"]["bgp_asn"]
307+
enable_bgp_suppress_fib_pending_cmd = 'bgp suppress-fib-pending'
307308
if vrf == 'default':
308-
cmd = ('router bgp %s\n' % bgp_asn) + cmd
309+
cmd = ('router bgp %s\n %s\n' % (bgp_asn, enable_bgp_suppress_fib_pending_cmd)) + cmd
309310
else:
310-
cmd = ('router bgp %s vrf %s\n' % (bgp_asn, vrf)) + cmd
311+
cmd = ('router bgp %s vrf %s\n %s\n' % (bgp_asn, vrf, enable_bgp_suppress_fib_pending_cmd)) + cmd
311312
self.cfg_mgr.push(cmd)
312313
return True
313314

src/sonic-bgpcfgd/tests/data/sonic-cfggen/bgpd.conf.j2/all.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ route-map HIDE_INTERNAL permit 20
5555
router bgp 55555
5656
!
5757
bgp log-neighbor-changes
58+
bgp suppress-fib-pending
5859
no bgp default ipv4-unicast
5960
no bgp ebgp-requires-policy
6061
!

src/sonic-bgpcfgd/tests/data/sonic-cfggen/bgpd.main.conf.j2/all.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ route-map HIDE_INTERNAL permit 10
3434
router bgp 55555
3535
!
3636
bgp log-neighbor-changes
37+
bgp suppress-fib-pending
3738
no bgp default ipv4-unicast
3839
no bgp ebgp-requires-policy
3940
!

src/sonic-bgpcfgd/tests/data/sonic-cfggen/bgpd.main.conf.j2/base.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ ip prefix-list PL_LoopbackV4 permit 55.55.55.55/32
1212
router bgp 55555
1313
!
1414
bgp log-neighbor-changes
15+
bgp suppress-fib-pending
1516
no bgp default ipv4-unicast
1617
no bgp ebgp-requires-policy
1718
!

src/sonic-bgpcfgd/tests/data/sonic-cfggen/bgpd.main.conf.j2/defaults.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ route-map HIDE_INTERNAL permit 10
3434
router bgp 55555
3535
!
3636
bgp log-neighbor-changes
37+
bgp suppress-fib-pending
3738
no bgp default ipv4-unicast
3839
no bgp ebgp-requires-policy
3940
!

src/sonic-bgpcfgd/tests/data/sonic-cfggen/bgpd.main.conf.j2/ipv6_lo.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ ipv6 prefix-list PL_LoopbackV6 permit fc00::1/128
1414
router bgp 55555
1515
!
1616
bgp log-neighbor-changes
17+
bgp suppress-fib-pending
1718
no bgp default ipv4-unicast
1819
no bgp ebgp-requires-policy
1920
!

src/sonic-bgpcfgd/tests/data/sonic-cfggen/bgpd.main.conf.j2/packet_chassis.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ route-map HIDE_INTERNAL permit 10
3434
router bgp 55555
3535
!
3636
bgp log-neighbor-changes
37+
bgp suppress-fib-pending
3738
no bgp default ipv4-unicast
3839
no bgp ebgp-requires-policy
3940
!

0 commit comments

Comments
 (0)