mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fixed setup module to accomodate venet interfaces (OpenVZ)
This commit is contained in:
parent
4bea9a612f
commit
efc5a83f66
1 changed files with 1 additions and 1 deletions
|
@ -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.'):
|
||||||
|
|
Loading…
Reference in a new issue