Skip to content

Commit 1d84ff5

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

File tree

11 files changed

+0
-48
lines changed

11 files changed

+0
-48
lines changed

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

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

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

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

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
! template: bgpd/bgpd.main.conf.j2
4036
!
4137
! bgp multiple-instance

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

-2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,4 @@ 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
!!

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

-5
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,5 @@
33
"localhost": {
44
"hostname": "new_hostname"
55
}
6-
},
7-
"MGMT_INTERFACE": {
8-
"eth0|10.10.10.10/24": {
9-
"gwaddr": "10.10.10.1"
10-
}
116
}
127
}

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
@@ -72,12 +72,6 @@ def test_common_functions():
7272
"common/functions.conf.json",
7373
"common/functions.conf")
7474

75-
def test_staticd_default_route():
76-
run_test("staticd.default_route.conf.j2",
77-
"staticd/staticd.default_route.conf.j2",
78-
"staticd/staticd.default_route.conf.json",
79-
"staticd/staticd.default_route.conf")
80-
8175
def test_staticd():
8276
run_test("staticd.conf.j2",
8377
"staticd/staticd.conf.j2",

src/sonic-config-engine/tests/sample_output/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
! template: bgpd/bgpd.main.conf.j2
4339
!
4440
! bgp multiple-instance

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

-2
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,4 @@ def test_bgpd_frr(self):
6060
def test_zebra_frr(self):
6161
self.assertTrue(*self.run_case('zebra/zebra.conf.j2', 'zebra_frr.conf'))
6262

63-
def test_staticd_frr(self):
64-
self.assertTrue(*self.run_case('staticd/staticd.conf.j2', 'staticd_frr.conf'))
6563

0 commit comments

Comments
 (0)