fix incorrect secondary ip handling, fixes #7724

pull/7725/head
Stefan Lapers 10 years ago
parent 50364bb079
commit 78f4842982

@ -1558,7 +1558,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}

Loading…
Cancel
Save