Fix how interfaces is updated with interface fact

Was broken when handling a bridge or bonded (possibly others) interface
reviewable/pr18780/r1
Stephen Fromm 12 years ago
parent bf9ca7fc4d
commit 60f85af91c

@ -1057,7 +1057,7 @@ class LinuxNetwork(Network):
iface = words[-1]
if iface != device:
interfaces[iface] = {}
interfaces[iface].update(facts[device])
interfaces[iface].update(interfaces[device])
interfaces[iface]['ipv4'] = {'address': address,
'netmask': netmask,
'network': network}

Loading…
Cancel
Save