Commit 7cd1bc96 by Michael DeHaan

Merge pull request #2832 from rektide/fix-openvz-venet-ipv6

Fix setup module's handling of venet & unknown ipv6 interfaces
parents ce67588d 4f21dc4c
...@@ -1157,7 +1157,7 @@ class LinuxNetwork(Network): ...@@ -1157,7 +1157,7 @@ class LinuxNetwork(Network):
default_ipv6['scope'] = scope default_ipv6['scope'] = scope
default_ipv6['macaddress'] = macaddress default_ipv6['macaddress'] = macaddress
default_ipv6['mtu'] = interfaces[device]['mtu'] default_ipv6['mtu'] = interfaces[device]['mtu']
default_ipv6['type'] = interfaces[device]['type'] default_ipv6['type'] = interfaces[device].get("type", "unknown")
if not address == '::1': if not address == '::1':
ips['all_ipv6_addresses'].append(address) ips['all_ipv6_addresses'].append(address)
......
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