Commit edb08b56 by Stefan Lapers Committed by James Cammarata

fix incorrect secondary ip handling, fixes #7724

parent c783c675
...@@ -1581,7 +1581,7 @@ class LinuxNetwork(Network): ...@@ -1581,7 +1581,7 @@ class LinuxNetwork(Network):
iface = words[-1] iface = words[-1]
if iface != device: if iface != device:
interfaces[iface] = {} interfaces[iface] = {}
if not secondary or "ipv4" not in interfaces[iface]: if not secondary and "ipv4" not in interfaces[iface]:
interfaces[iface]['ipv4'] = {'address': address, interfaces[iface]['ipv4'] = {'address': address,
'netmask': netmask, 'netmask': netmask,
'network': network} 'network': network}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment