Skip to content

Commit 5830852

Browse files
authored
remove staticd.conf.j2 (#9182)
Why I did it resolves #8979 and #9055 How I did it Remove the file static.conf.j2,which adds the default route on eth0 from bgp docker Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <[email protected]>
1 parent 554b04f commit 5830852

File tree

12 files changed

+0
-52
lines changed

12 files changed

+0
-52
lines changed

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

-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ agentx
1313
!
1414
{% include "zebra/zebra.interfaces.conf.j2" %}
1515
!
16-
{% include "staticd/staticd.default_route.conf.j2" %}
17-
!
1816
{% include "staticd/staticd.loopback_route.conf.j2" %}
1917
!
2018
{% include "bgpd/bgpd.main.conf.j2" %}

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

-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,5 @@
88
!
99
{% include "common/daemons.common.conf.j2" %}
1010
!
11-
{% include "staticd.default_route.conf.j2" %}
12-
!
1311
{% include "staticd.loopback_route.conf.j2" %}
1412
!

dockers/docker-fpm-frr/frr/staticd/staticd.default_route.conf.j2

-10
This file was deleted.

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

-4
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ link-detect
3232
!
3333
!!
3434
!
35-
! set static default route to mgmt gateway as a backup to learned default
36-
ip route 0.0.0.0/0 10.10.10.1 200
37-
!!
38-
!
3935
! add static ipv6 /64 loopback route to allow bgpd to advertise the loopback route prefix
4036
ipv6 route fc00::/64 Loopback0
4137
!!

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

-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ log facility local4
1414
!
1515
! end of template: common/daemons.common.conf.j2!
1616
!
17-
! set static default route to mgmt gateway as a backup to learned default
18-
ip route 0.0.0.0/0 10.10.10.1 200
1917
!!
2018
!
2119
! add static ipv6 /64 loopback route to allow bgpd to advertise the loopback route prefix

src/sonic-bgpcfgd/tests/data/sonic-cfggen/staticd/staticd.conf.json

-5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@
44
"hostname": "new_hostname"
55
}
66
},
7-
"MGMT_INTERFACE": {
8-
"eth0|10.10.10.10/24": {
9-
"gwaddr": "10.10.10.1"
10-
}
11-
},
127
"LOOPBACK_INTERFACE": {
138
"Loopback0|FC00:1::32/128": {}
149
}

src/sonic-bgpcfgd/tests/data/sonic-cfggen/staticd/staticd.default_route.conf

-4
This file was deleted.

src/sonic-bgpcfgd/tests/data/sonic-cfggen/staticd/staticd.default_route.conf.json

-7
This file was deleted.

src/sonic-bgpcfgd/tests/test_sonic-cfggen.py

-6
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,6 @@ def test_common_functions():
8181
"common/functions.conf.json",
8282
"common/functions.conf")
8383

84-
def test_staticd_default_route():
85-
run_test("staticd.default_route.conf.j2",
86-
"staticd/staticd.default_route.conf.j2",
87-
"staticd/staticd.default_route.conf.json",
88-
"staticd/staticd.default_route.conf")
89-
9084
def test_staticd_loopback_route():
9185
run_test("staticd.loopback_route.conf.j2",
9286
"staticd/staticd.loopback_route.conf.j2",

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

-4
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ link-detect
3535
!
3636
!!
3737
!
38-
! set static default route to mgmt gateway as a backup to learned default
39-
ip route 0.0.0.0/0 10.0.0.1 200
40-
!!
41-
!
4238
!
4339
! add static ipv6 /64 loopback route to allow bgpd to advertise the loopback route prefix
4440
ipv6 route fc00:1::/64 Loopback0

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

-4
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ link-detect
3535
!
3636
!!
3737
!
38-
! set static default route to mgmt gateway as a backup to learned default
39-
ip route 0.0.0.0/0 10.0.0.1 200
40-
!!
41-
!
4238
!
4339
! add static ipv6 /64 loopback route to allow bgpd to advertise the loopback route prefix
4440
ipv6 route fc00:1::/64 Loopback0

src/sonic-config-engine/tests/test_frr.py

-2
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,4 @@ def test_bgpd_frr(self):
6969
def test_zebra_frr(self):
7070
self.assertTrue(*self.run_case('zebra/zebra.conf.j2', 'zebra_frr.conf'))
7171

72-
def test_staticd_frr(self):
73-
self.assertTrue(*self.run_case('staticd/staticd.conf.j2', 'staticd_frr.conf'))
7472

0 commit comments

Comments
 (0)