Skip to content

Commit

Permalink
Removed extra 'ip addr del' on the lo inteface
Browse files Browse the repository at this point in the history
The 'post-up ip addr del 127.0.0.1/8 dev lo' was thought to be required
when the loopback interface subnet mask was narrowed from /8 to /16.
After testing first reboot, subsequent reboots, config reloads, and
systemctl restart networking on linecards and supevisors (DNX VOQ
chassis), this cleanup command does not appear to be required. As such,
this change removes it as well as reverts
sonic-net#15080.
  • Loading branch information
kenneth-arista committed Jun 14, 2023
1 parent bdc1d7a commit f43fcd2
Show file tree
Hide file tree
Showing 19 changed files with 0 additions and 38 deletions.
2 changes: 0 additions & 2 deletions files/image_config/interfaces/interfaces.j2
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ iface lo inet loopback
address 127.0.0.1
netmask 255.255.0.0
scope host
post-up ip addr del 127.0.0.1/8 dev lo
down ip addr add 127.0.0.1/8 dev lo
{% endblock loopback %}
{% block mgmt_interface %}

Expand Down
2 changes: 0 additions & 2 deletions src/sonic-config-engine/tests/sample_output/py2/interfaces
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ iface lo inet loopback
address 127.0.0.1
netmask 255.255.0.0
scope host
post-up ip addr del 127.0.0.1/8 dev lo
down ip addr add 127.0.0.1/8 dev lo

# The management network interface
auto eth0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ iface lo inet loopback
address 127.0.0.1
netmask 255.255.0.0
scope host
post-up ip addr del 127.0.0.1/8 dev lo
down ip addr add 127.0.0.1/8 dev lo

# The management network interface
auto eth0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ iface lo inet loopback
address 127.0.0.1
netmask 255.255.0.0
scope host
post-up ip addr del 127.0.0.1/8 dev lo
down ip addr add 127.0.0.1/8 dev lo

# The management network interface
auto eth0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ iface lo inet loopback
address 127.0.0.1
netmask 255.255.0.0
scope host
post-up ip addr del 127.0.0.1/8 dev lo
down ip addr add 127.0.0.1/8 dev lo

# The management network interface
auto eth0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ iface lo inet loopback
address 127.0.0.1
netmask 255.255.0.0
scope host
post-up ip addr del 127.0.0.1/8 dev lo
down ip addr add 127.0.0.1/8 dev lo

# The management network interface
auto eth0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ iface lo inet loopback
address 127.0.0.1
netmask 255.255.0.0
scope host
post-up ip addr del 127.0.0.1/8 dev lo
down ip addr add 127.0.0.1/8 dev lo

# The management network interface
auto eth0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ iface lo inet loopback
address 127.0.0.1
netmask 255.255.0.0
scope host
post-up ip addr del 127.0.0.1/8 dev lo
down ip addr add 127.0.0.1/8 dev lo

# The management network interface
auto eth0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ iface lo inet loopback
address 127.0.0.1
netmask 255.255.0.0
scope host
post-up ip addr del 127.0.0.1/8 dev lo
down ip addr add 127.0.0.1/8 dev lo

# The management network interface
auto eth0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ iface lo inet loopback
address 127.0.0.1
netmask 255.255.0.0
scope host
post-up ip addr del 127.0.0.1/8 dev lo
down ip addr add 127.0.0.1/8 dev lo

# The management network interface
auto eth1
Expand Down
2 changes: 0 additions & 2 deletions src/sonic-config-engine/tests/sample_output/py3/interfaces
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ iface lo inet loopback
address 127.0.0.1
netmask 255.255.0.0
scope host
post-up ip addr del 127.0.0.1/8 dev lo
down ip addr add 127.0.0.1/8 dev lo

# The management network interface
auto eth0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ iface lo inet loopback
address 127.0.0.1
netmask 255.255.0.0
scope host
post-up ip addr del 127.0.0.1/8 dev lo
down ip addr add 127.0.0.1/8 dev lo

# The management network interface
auto eth0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ iface lo inet loopback
address 127.0.0.1
netmask 255.255.0.0
scope host
post-up ip addr del 127.0.0.1/8 dev lo
down ip addr add 127.0.0.1/8 dev lo

# The management network interface
auto eth0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ iface lo inet loopback
address 127.0.0.1
netmask 255.255.0.0
scope host
post-up ip addr del 127.0.0.1/8 dev lo
down ip addr add 127.0.0.1/8 dev lo

# The management network interface
auto eth0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ iface lo inet loopback
address 127.0.0.1
netmask 255.255.0.0
scope host
post-up ip addr del 127.0.0.1/8 dev lo
down ip addr add 127.0.0.1/8 dev lo

# The management network interface
auto eth0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ iface lo inet loopback
address 127.0.0.1
netmask 255.255.0.0
scope host
post-up ip addr del 127.0.0.1/8 dev lo
down ip addr add 127.0.0.1/8 dev lo

# The management network interface
auto eth0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ iface lo inet loopback
address 127.0.0.1
netmask 255.255.0.0
scope host
post-up ip addr del 127.0.0.1/8 dev lo
down ip addr add 127.0.0.1/8 dev lo

# The management network interface
auto eth0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ iface lo inet loopback
address 127.0.0.1
netmask 255.255.0.0
scope host
post-up ip addr del 127.0.0.1/8 dev lo
down ip addr add 127.0.0.1/8 dev lo

# The management network interface
auto eth0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ iface lo inet loopback
address 127.0.0.1
netmask 255.255.0.0
scope host
post-up ip addr del 127.0.0.1/8 dev lo
down ip addr add 127.0.0.1/8 dev lo

# The management network interface
auto eth0
Expand Down

0 comments on commit f43fcd2

Please sign in to comment.