File tree 11 files changed +0
-56
lines changed
sonic-bgpcfgd/tests/data/sonic-cfggen/zebra
sonic-config-engine/tests/sample_output
11 files changed +0
-56
lines changed Original file line number Diff line number Diff line change @@ -41,20 +41,6 @@ update_default_gw()
41
41
fi
42
42
}
43
43
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
-
58
44
if [[ ! -z " $NAMESPACE_ID " ]]; then
59
45
update_default_gw 4
60
46
update_default_gw 6
@@ -83,11 +69,9 @@ if [ -z "$CONFIG_TYPE" ] || [ "$CONFIG_TYPE" == "separated" ]; then
83
69
elif [ " $CONFIG_TYPE " == " split" ]; then
84
70
echo " no service integrated-vtysh-config" > /etc/frr/vtysh.conf
85
71
rm -f /etc/frr/frr.conf
86
- write_default_zebra_config /etc/frr/zebra.conf
87
72
elif [ " $CONFIG_TYPE " == " split-unified" ]; then
88
73
echo " service integrated-vtysh-config" > /etc/frr/vtysh.conf
89
74
rm -f /etc/frr/bgpd.conf /etc/frr/zebra.conf /etc/frr/staticd.conf
90
- write_default_zebra_config /etc/frr/frr.conf
91
75
elif [ " $CONFIG_TYPE " == " unified" ]; then
92
76
CFGGEN_PARAMS=" \
93
77
-d \
Original file line number Diff line number Diff line change 9
9
{% block fpm %}
10
10
! Force disable next hop group support
11
11
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
16
12
{% endblock fpm %}
17
13
!
18
14
{% include "common/daemons.common.conf.j2" %}
Original file line number Diff line number Diff line change 6
6
!
7
7
! Force disable next hop group support
8
8
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
13
9
!
14
10
! template: common/daemons.common.conf.j2
15
11
!
Original file line number Diff line number Diff line change 6
6
!
7
7
! Force disable next hop group support
8
8
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
13
9
!
14
10
! template: common/daemons.common.conf.j2
15
11
!
Original file line number Diff line number Diff line change 6
6
!
7
7
! Force disable next hop group support
8
8
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
13
9
!
14
10
! template: common/daemons.common.conf.j2
15
11
!
Original file line number Diff line number Diff line change 6
6
!
7
7
! Force disable next hop group support
8
8
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
13
9
!
14
10
! template: common/daemons.common.conf.j2
15
11
!
Original file line number Diff line number Diff line change 6
6
!
7
7
! Force disable next hop group support
8
8
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
13
9
!
14
10
! template: common/daemons.common.conf.j2
15
11
!
Original file line number Diff line number Diff line change 6
6
!
7
7
! Force disable next hop group support
8
8
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
13
9
!
14
10
! template: common/daemons.common.conf.j2
15
11
!
Original file line number Diff line number Diff line change 6
6
!
7
7
! Force disable next hop group support
8
8
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
13
9
!
14
10
! template: common/daemons.common.conf.j2
15
11
!
Original file line number Diff line number Diff line change 6
6
!
7
7
! Force disable next hop group support
8
8
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
13
9
!
14
10
! template: common/daemons.common.conf.j2
15
11
!
Original file line number Diff line number Diff line change 6
6
!
7
7
! Force disable next hop group support
8
8
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
13
9
!
14
10
! template: common/daemons.common.conf.j2
15
11
!
You can’t perform that action at this time.
0 commit comments