1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Duplicate pull #2803 in ipv6, fixing setup module's handling of venet & unknown interface types.

This commit is contained in:
rektide 2013-05-02 17:19:22 -04:00
parent ce67588dcf
commit 4f21dc4cd1

View file

@ -1157,7 +1157,7 @@ class LinuxNetwork(Network):
default_ipv6['scope'] = scope
default_ipv6['macaddress'] = macaddress
default_ipv6['mtu'] = interfaces[device]['mtu']
default_ipv6['type'] = interfaces[device]['type']
default_ipv6['type'] = interfaces[device].get("type", "unknown")
if not address == '::1':
ips['all_ipv6_addresses'].append(address)