Skip to content

Commit

Permalink
remove staticd.conf (#9657)
Browse files Browse the repository at this point in the history
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 <arlakshm@microsoft.com>
  • Loading branch information
arlakshm authored Feb 18, 2022
1 parent 9f55979 commit 1d84ff5
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 48 deletions.
2 changes: 0 additions & 2 deletions dockers/docker-fpm-frr/frr/frr.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,5 @@ agentx
!
{% include "zebra/zebra.interfaces.conf.j2" %}
!
{% include "staticd/staticd.default_route.conf.j2" %}
!
{% include "bgpd/bgpd.main.conf.j2" %}
!
2 changes: 0 additions & 2 deletions dockers/docker-fpm-frr/frr/staticd/staticd.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@
!
{% include "common/daemons.common.conf.j2" %}
!
{% include "staticd.default_route.conf.j2" %}
!
10 changes: 0 additions & 10 deletions dockers/docker-fpm-frr/frr/staticd/staticd.default_route.conf.j2

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ link-detect
!
!!
!
! set static default route to mgmt gateway as a backup to learned default
ip route 0.0.0.0/0 10.10.10.1 200
!!
!
! template: bgpd/bgpd.main.conf.j2
!
! bgp multiple-instance
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,4 @@ log facility local4
!
! end of template: common/daemons.common.conf.j2!
!
! set static default route to mgmt gateway as a backup to learned default
ip route 0.0.0.0/0 10.10.10.1 200
!!
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,5 @@
"localhost": {
"hostname": "new_hostname"
}
},
"MGMT_INTERFACE": {
"eth0|10.10.10.10/24": {
"gwaddr": "10.10.10.1"
}
}
}

This file was deleted.

This file was deleted.

6 changes: 0 additions & 6 deletions src/sonic-bgpcfgd/tests/test_sonic-cfggen.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,6 @@ def test_common_functions():
"common/functions.conf.json",
"common/functions.conf")

def test_staticd_default_route():
run_test("staticd.default_route.conf.j2",
"staticd/staticd.default_route.conf.j2",
"staticd/staticd.default_route.conf.json",
"staticd/staticd.default_route.conf")

def test_staticd():
run_test("staticd.conf.j2",
"staticd/staticd.conf.j2",
Expand Down
4 changes: 0 additions & 4 deletions src/sonic-config-engine/tests/sample_output/frr.conf
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ link-detect
!
!!
!
! set static default route to mgmt gateway as a backup to learned default
ip route 0.0.0.0/0 10.0.0.1 200
!!
!
! template: bgpd/bgpd.main.conf.j2
!
! bgp multiple-instance
Expand Down
2 changes: 0 additions & 2 deletions src/sonic-config-engine/tests/test_frr.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,4 @@ def test_bgpd_frr(self):
def test_zebra_frr(self):
self.assertTrue(*self.run_case('zebra/zebra.conf.j2', 'zebra_frr.conf'))

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

0 comments on commit 1d84ff5

Please sign in to comment.