Commit efc5a83f by James Mills

Fixed setup module to accomodate venet interfaces (OpenVZ)

parent 4bea9a61
...@@ -1128,7 +1128,7 @@ class LinuxNetwork(Network): ...@@ -1128,7 +1128,7 @@ class LinuxNetwork(Network):
default_ipv4['network'] = network default_ipv4['network'] = network
default_ipv4['macaddress'] = macaddress default_ipv4['macaddress'] = macaddress
default_ipv4['mtu'] = interfaces[device]['mtu'] default_ipv4['mtu'] = interfaces[device]['mtu']
default_ipv4['type'] = interfaces[device]['type'] default_ipv4['type'] = interfaces[device].get("type", "unknown")
default_ipv4['alias'] = words[-1] default_ipv4['alias'] = words[-1]
if not address.startswith('127.'): if not address.startswith('127.'):
......
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