Skip to content

Commit e0cdb0f

Browse files
committed
[202311] Revert BGP suppress fib commands
1 parent 3bab55c commit e0cdb0f

File tree

11 files changed

+0
-56
lines changed

11 files changed

+0
-56
lines changed

dockers/docker-fpm-frr/docker_init.sh

-16
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,6 @@ update_default_gw()
4141
fi
4242
}
4343

44-
write_default_zebra_config()
45-
{
46-
FILE_NAME=${1}
47-
48-
grep -q '^no fpm use-next-hop-groups' $FILE_NAME || {
49-
echo "no fpm use-next-hop-groups" >> $FILE_NAME
50-
echo "fpm address 127.0.0.1" >> $FILE_NAME
51-
}
52-
53-
grep -q '^no zebra nexthop kernel enable' $FILE_NAME || {
54-
echo "no zebra nexthop kernel enable" >> $FILE_NAME
55-
}
56-
}
57-
5844
if [[ ! -z "$NAMESPACE_ID" ]]; then
5945
update_default_gw 4
6046
update_default_gw 6
@@ -83,11 +69,9 @@ if [ -z "$CONFIG_TYPE" ] || [ "$CONFIG_TYPE" == "separated" ]; then
8369
elif [ "$CONFIG_TYPE" == "split" ]; then
8470
echo "no service integrated-vtysh-config" > /etc/frr/vtysh.conf
8571
rm -f /etc/frr/frr.conf
86-
write_default_zebra_config /etc/frr/zebra.conf
8772
elif [ "$CONFIG_TYPE" == "split-unified" ]; then
8873
echo "service integrated-vtysh-config" > /etc/frr/vtysh.conf
8974
rm -f /etc/frr/bgpd.conf /etc/frr/zebra.conf /etc/frr/staticd.conf
90-
write_default_zebra_config /etc/frr/frr.conf
9175
elif [ "$CONFIG_TYPE" == "unified" ]; then
9276
CFGGEN_PARAMS=" \
9377
-d \

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

-4
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99
{% block fpm %}
1010
! Force disable next hop group support
1111
no zebra nexthop kernel enable
12-
! Uses the old known FPM behavior of including next hop information in the route (e.g. RTM_NEWROUTE) messages
13-
no fpm use-next-hop-groups
14-
!
15-
fpm address 127.0.0.1
1612
{% endblock fpm %}
1713
!
1814
{% include "common/daemons.common.conf.j2" %}

src/sonic-bgpcfgd/tests/data/sonic-cfggen/zebra/zebra.conf

-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
!
77
! Force disable next hop group support
88
no zebra nexthop kernel enable
9-
! Uses the old known FPM behavior of including next hop information in the route (e.g. RTM_NEWROUTE) messages
10-
no fpm use-next-hop-groups
11-
!
12-
fpm address 127.0.0.1
139
!
1410
! template: common/daemons.common.conf.j2
1511
!

src/sonic-config-engine/tests/sample_output/py2/t2-chassis-fe-vni-zebra.conf

-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
!
77
! Force disable next hop group support
88
no zebra nexthop kernel enable
9-
! Uses the old known FPM behavior of including next hop information in the route (e.g. RTM_NEWROUTE) messages
10-
no fpm use-next-hop-groups
11-
!
12-
fpm address 127.0.0.1
139
!
1410
! template: common/daemons.common.conf.j2
1511
!

src/sonic-config-engine/tests/sample_output/py2/t2-chassis-fe-zebra.conf

-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
!
77
! Force disable next hop group support
88
no zebra nexthop kernel enable
9-
! Uses the old known FPM behavior of including next hop information in the route (e.g. RTM_NEWROUTE) messages
10-
no fpm use-next-hop-groups
11-
!
12-
fpm address 127.0.0.1
139
!
1410
! template: common/daemons.common.conf.j2
1511
!

src/sonic-config-engine/tests/sample_output/py2/zebra_frr.conf

-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
!
77
! Force disable next hop group support
88
no zebra nexthop kernel enable
9-
! Uses the old known FPM behavior of including next hop information in the route (e.g. RTM_NEWROUTE) messages
10-
no fpm use-next-hop-groups
11-
!
12-
fpm address 127.0.0.1
139
!
1410
! template: common/daemons.common.conf.j2
1511
!

src/sonic-config-engine/tests/sample_output/py2/zebra_frr_dualtor.conf

-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
!
77
! Force disable next hop group support
88
no zebra nexthop kernel enable
9-
! Uses the old known FPM behavior of including next hop information in the route (e.g. RTM_NEWROUTE) messages
10-
no fpm use-next-hop-groups
11-
!
12-
fpm address 127.0.0.1
139
!
1410
! template: common/daemons.common.conf.j2
1511
!

src/sonic-config-engine/tests/sample_output/py3/t2-chassis-fe-vni-zebra.conf

-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
!
77
! Force disable next hop group support
88
no zebra nexthop kernel enable
9-
! Uses the old known FPM behavior of including next hop information in the route (e.g. RTM_NEWROUTE) messages
10-
no fpm use-next-hop-groups
11-
!
12-
fpm address 127.0.0.1
139
!
1410
! template: common/daemons.common.conf.j2
1511
!

src/sonic-config-engine/tests/sample_output/py3/t2-chassis-fe-zebra.conf

-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
!
77
! Force disable next hop group support
88
no zebra nexthop kernel enable
9-
! Uses the old known FPM behavior of including next hop information in the route (e.g. RTM_NEWROUTE) messages
10-
no fpm use-next-hop-groups
11-
!
12-
fpm address 127.0.0.1
139
!
1410
! template: common/daemons.common.conf.j2
1511
!

src/sonic-config-engine/tests/sample_output/py3/zebra_frr.conf

-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
!
77
! Force disable next hop group support
88
no zebra nexthop kernel enable
9-
! Uses the old known FPM behavior of including next hop information in the route (e.g. RTM_NEWROUTE) messages
10-
no fpm use-next-hop-groups
11-
!
12-
fpm address 127.0.0.1
139
!
1410
! template: common/daemons.common.conf.j2
1511
!

src/sonic-config-engine/tests/sample_output/py3/zebra_frr_dualtor.conf

-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
!
77
! Force disable next hop group support
88
no zebra nexthop kernel enable
9-
! Uses the old known FPM behavior of including next hop information in the route (e.g. RTM_NEWROUTE) messages
10-
no fpm use-next-hop-groups
11-
!
12-
fpm address 127.0.0.1
139
!
1410
! template: common/daemons.common.conf.j2
1511
!

0 commit comments

Comments
 (0)