Loopback ip addresses move to intfmgrd for supporting VRF
This commit is contained in:
parent
d8931db996
commit
c07ae3b16f
@ -14,13 +14,6 @@ iface mgmt
|
|||||||
# The loopback network interface
|
# The loopback network interface
|
||||||
auto lo
|
auto lo
|
||||||
iface lo inet loopback
|
iface lo inet loopback
|
||||||
# Use command 'ip addr list dev lo' to check all addresses
|
|
||||||
{% for (name, prefix) in LOOPBACK_INTERFACE|pfx_filter %}
|
|
||||||
iface lo {{ 'inet' if prefix | ipv4 else 'inet6' }} static
|
|
||||||
address {{ prefix | ip }}
|
|
||||||
netmask {{ prefix | netmask if prefix | ipv4 else prefix | prefixlen }}
|
|
||||||
#
|
|
||||||
{% endfor %}
|
|
||||||
{% if (MGMT_VRF_CONFIG) and (MGMT_VRF_CONFIG['vrf_global']['mgmtVrfEnabled'] == "true") %}
|
{% if (MGMT_VRF_CONFIG) and (MGMT_VRF_CONFIG['vrf_global']['mgmtVrfEnabled'] == "true") %}
|
||||||
# The loopback network interface for mgmt VRF that is required for applications like NTP
|
# The loopback network interface for mgmt VRF that is required for applications like NTP
|
||||||
up ip link add lo-m type dummy
|
up ip link add lo-m type dummy
|
||||||
|
@ -6,19 +6,6 @@
|
|||||||
# The loopback network interface
|
# The loopback network interface
|
||||||
auto lo
|
auto lo
|
||||||
iface lo inet loopback
|
iface lo inet loopback
|
||||||
# Use command 'ip addr list dev lo' to check all addresses
|
|
||||||
iface lo inet static
|
|
||||||
address 10.1.0.32
|
|
||||||
netmask 255.255.255.255
|
|
||||||
#
|
|
||||||
iface lo inet6 static
|
|
||||||
address fc00:1::32
|
|
||||||
netmask 128
|
|
||||||
#
|
|
||||||
iface lo inet static
|
|
||||||
address 10.10.0.99
|
|
||||||
netmask 255.255.255.255
|
|
||||||
#
|
|
||||||
|
|
||||||
# The management network interface
|
# The management network interface
|
||||||
auto eth0
|
auto eth0
|
||||||
|
@ -9,19 +9,6 @@ iface mgmt
|
|||||||
# The loopback network interface
|
# The loopback network interface
|
||||||
auto lo
|
auto lo
|
||||||
iface lo inet loopback
|
iface lo inet loopback
|
||||||
# Use command 'ip addr list dev lo' to check all addresses
|
|
||||||
iface lo inet static
|
|
||||||
address 10.1.0.32
|
|
||||||
netmask 255.255.255.255
|
|
||||||
#
|
|
||||||
iface lo inet6 static
|
|
||||||
address fc00:1::32
|
|
||||||
netmask 128
|
|
||||||
#
|
|
||||||
iface lo inet static
|
|
||||||
address 10.10.0.99
|
|
||||||
netmask 255.255.255.255
|
|
||||||
#
|
|
||||||
# The loopback network interface for mgmt VRF that is required for applications like NTP
|
# The loopback network interface for mgmt VRF that is required for applications like NTP
|
||||||
up ip link add lo-m type dummy
|
up ip link add lo-m type dummy
|
||||||
up ip addr add 127.0.0.1/8 dev lo-m
|
up ip addr add 127.0.0.1/8 dev lo-m
|
||||||
|
Loading…
Reference in New Issue
Block a user