Fixed setup module to accomodate venet interfaces (OpenVZ)

This commit is contained in:
James Mills 2013-04-29 10:08:24 +10:00
parent cd97a4cb14
commit ced36f3e81

View file

@ -1128,7 +1128,7 @@ class LinuxNetwork(Network):
default_ipv4['network'] = network
default_ipv4['macaddress'] = macaddress
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]
if not address.startswith('127.'):