Skip to content

Commit 37e3023

Browse files
committed
[202411][frr]: Force disable next hop group support (sonic-net#23292)
[202411][frr]: Force disable next hop group support Signed-off-by: Liping Xu <[email protected]>
1 parent 0f38b6b commit 37e3023

12 files changed

Lines changed: 25 additions & 2 deletions

File tree

dockers/docker-fpm-frr/docker_init.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ write_default_zebra_config()
4949
echo "no fpm use-next-hop-groups" >> $FILE_NAME
5050
echo "fpm address 127.0.0.1" >> $FILE_NAME
5151
}
52+
53+
grep -q '^no zebra nexthop kernel enable' $FILE_NAME || {
54+
echo "no zebra nexthop kernel enable" >> $FILE_NAME
55+
}
5256
}
5357

5458
if [[ ! -z "$NAMESPACE_ID" ]]; then

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
{% endblock banner %}
88
!
99
{% block fpm %}
10+
! Force disable next hop group support
11+
no zebra nexthop kernel enable
1012
{% if ( ('localhost' in DEVICE_METADATA) and ('nexthop_group' in DEVICE_METADATA['localhost']) and
1113
(DEVICE_METADATA['localhost']['nexthop_group'] == 'enabled') ) %}
1214
! enable next hop group support
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1+
no zebra nexthop kernel enable
12
no fpm use-next-hop-groups
2-
33
fpm address 127.0.0.1
44
zebra nexthop-group keep 1
5-

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
! file: zebra.conf
55
!
66
!
7+
! Force disable next hop group support
8+
no zebra nexthop kernel enable
79
! Uses the old known FPM behavior of including next hop information in the route (e.g. RTM_NEWROUTE) messages
810
no fpm use-next-hop-groups
911
!

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
! file: zebra.conf
55
!
66
!
7+
! Force disable next hop group support
8+
no zebra nexthop kernel enable
79
! Uses the old known FPM behavior of including next hop information in the route (e.g. RTM_NEWROUTE) messages
810
no fpm use-next-hop-groups
911
!

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
! file: zebra.conf
55
!
66
!
7+
! Force disable next hop group support
8+
no zebra nexthop kernel enable
79
! Uses the old known FPM behavior of including next hop information in the route (e.g. RTM_NEWROUTE) messages
810
no fpm use-next-hop-groups
911
!

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
! file: zebra.conf
55
!
66
!
7+
! Force disable next hop group support
8+
no zebra nexthop kernel enable
79
! Uses the old known FPM behavior of including next hop information in the route (e.g. RTM_NEWROUTE) messages
810
no fpm use-next-hop-groups
911
!

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
! file: zebra.conf
55
!
66
!
7+
! Force disable next hop group support
8+
no zebra nexthop kernel enable
79
! Uses the old known FPM behavior of including next hop information in the route (e.g. RTM_NEWROUTE) messages
810
no fpm use-next-hop-groups
911
!

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
! file: zebra.conf
55
!
66
!
7+
! Force disable next hop group support
8+
no zebra nexthop kernel enable
79
! Uses the old known FPM behavior of including next hop information in the route (e.g. RTM_NEWROUTE) messages
810
no fpm use-next-hop-groups
911
!

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
! file: zebra.conf
55
!
66
!
7+
! Force disable next hop group support
8+
no zebra nexthop kernel enable
79
! Uses the old known FPM behavior of including next hop information in the route (e.g. RTM_NEWROUTE) messages
810
no fpm use-next-hop-groups
911
!

0 commit comments

Comments
 (0)