Skip to content

Commit

Permalink
remove staticd.conf.j2 (#9182)
Browse files Browse the repository at this point in the history
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 <arlakshm@microsoft.com>
  • Loading branch information
arlakshm authored and qiluo-msft committed Dec 1, 2021
1 parent fafd532 commit 9f0fc89
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 52 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,8 +13,6 @@ agentx
!
{% include "zebra/zebra.interfaces.conf.j2" %}
!
{% include "staticd/staticd.default_route.conf.j2" %}
!
{% include "staticd/staticd.loopback_route.conf.j2" %}
!
{% include "bgpd/bgpd.main.conf.j2" %}
Expand Down
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,7 +8,5 @@
!
{% include "common/daemons.common.conf.j2" %}
!
{% include "staticd.default_route.conf.j2" %}
!
{% include "staticd.loopback_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
!!
!
! add static ipv6 /64 loopback route to allow bgpd to advertise the loopback route prefix
ipv6 route fc00::/64 Loopback0
!!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ 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
!!
!
! add static ipv6 /64 loopback route to allow bgpd to advertise the loopback route prefix
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
"hostname": "new_hostname"
}
},
"MGMT_INTERFACE": {
"eth0|10.10.10.10/24": {
"gwaddr": "10.10.10.1"
}
},
"LOOPBACK_INTERFACE": {
"Loopback0|FC00:1::32/128": {}
}
Expand Down

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 @@ -69,12 +69,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_loopback_route():
run_test("staticd.loopback_route.conf.j2",
"staticd/staticd.loopback_route.conf.j2",
Expand Down
4 changes: 0 additions & 4 deletions src/sonic-config-engine/tests/sample_output/py2/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
!!
!
!
! add static ipv6 /64 loopback route to allow bgpd to advertise the loopback route prefix
ipv6 route fc00:1::/64 Loopback0
Expand Down
4 changes: 0 additions & 4 deletions src/sonic-config-engine/tests/sample_output/py3/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
!!
!
!
! add static ipv6 /64 loopback route to allow bgpd to advertise the loopback route prefix
ipv6 route fc00:1::/64 Loopback0
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 @@ -69,6 +69,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 9f0fc89

Please sign in to comment.