Skip to content

Commit e2bb284

Browse files
Tyler Lilguohan
Tyler Li
authored andcommitted
Loopback ip addresses move to intfmgrd for supporting VRF
1 parent 7ebc205 commit e2bb284

File tree

3 files changed

+0
-33
lines changed

3 files changed

+0
-33
lines changed

files/image_config/interfaces/interfaces.j2

-7
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,6 @@ iface mgmt
1414
# The loopback network interface
1515
auto lo
1616
iface lo inet loopback
17-
# Use command 'ip addr list dev lo' to check all addresses
18-
{% for (name, prefix) in LOOPBACK_INTERFACE|pfx_filter %}
19-
iface lo {{ 'inet' if prefix | ipv4 else 'inet6' }} static
20-
address {{ prefix | ip }}
21-
netmask {{ prefix | netmask if prefix | ipv4 else prefix | prefixlen }}
22-
#
23-
{% endfor %}
2417
{% if (MGMT_VRF_CONFIG) and (MGMT_VRF_CONFIG['vrf_global']['mgmtVrfEnabled'] == "true") %}
2518
# The loopback network interface for mgmt VRF that is required for applications like NTP
2619
up ip link add lo-m type dummy

src/sonic-config-engine/tests/sample_output/interfaces

-13
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,6 @@
66
# The loopback network interface
77
auto lo
88
iface lo inet loopback
9-
# Use command 'ip addr list dev lo' to check all addresses
10-
iface lo inet static
11-
address 10.1.0.32
12-
netmask 255.255.255.255
13-
#
14-
iface lo inet6 static
15-
address fc00:1::32
16-
netmask 128
17-
#
18-
iface lo inet static
19-
address 10.10.0.99
20-
netmask 255.255.255.255
21-
#
229

2310
# The management network interface
2411
auto eth0

src/sonic-config-engine/tests/sample_output/mvrf_interfaces

-13
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,6 @@ iface mgmt
99
# The loopback network interface
1010
auto lo
1111
iface lo inet loopback
12-
# Use command 'ip addr list dev lo' to check all addresses
13-
iface lo inet static
14-
address 10.1.0.32
15-
netmask 255.255.255.255
16-
#
17-
iface lo inet6 static
18-
address fc00:1::32
19-
netmask 128
20-
#
21-
iface lo inet static
22-
address 10.10.0.99
23-
netmask 255.255.255.255
24-
#
2512
# The loopback network interface for mgmt VRF that is required for applications like NTP
2613
up ip link add lo-m type dummy
2714
up ip addr add 127.0.0.1/8 dev lo-m

0 commit comments

Comments
 (0)