mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix docstring for GenericBsdIfconfogNetwork. (#17008)
default_ipv4/default_ipv6 and type/mtu/network were listed as not defined, but they are usually defined now.
This commit is contained in:
parent
f4f84639bb
commit
0b070a04d0
1 changed files with 3 additions and 4 deletions
|
@ -2408,6 +2408,7 @@ class LinuxNetwork(Network):
|
||||||
features[key.strip().replace('-','_')] = value.strip()
|
features[key.strip().replace('-','_')] = value.strip()
|
||||||
return features
|
return features
|
||||||
|
|
||||||
|
|
||||||
class GenericBsdIfconfigNetwork(Network):
|
class GenericBsdIfconfigNetwork(Network):
|
||||||
"""
|
"""
|
||||||
This is a generic BSD subclass of Network using the ifconfig command.
|
This is a generic BSD subclass of Network using the ifconfig command.
|
||||||
|
@ -2415,9 +2416,6 @@ class GenericBsdIfconfigNetwork(Network):
|
||||||
- interfaces (a list of interface names)
|
- interfaces (a list of interface names)
|
||||||
- interface_<name> dictionary of ipv4, ipv6, and mac address information.
|
- interface_<name> dictionary of ipv4, ipv6, and mac address information.
|
||||||
- all_ipv4_addresses and all_ipv6_addresses: lists of all configured addresses.
|
- all_ipv4_addresses and all_ipv6_addresses: lists of all configured addresses.
|
||||||
It currently does not define
|
|
||||||
- default_ipv4 and default_ipv6
|
|
||||||
- type, mtu and network on interfaces
|
|
||||||
"""
|
"""
|
||||||
platform = 'Generic_BSD_Ifconfig'
|
platform = 'Generic_BSD_Ifconfig'
|
||||||
|
|
||||||
|
@ -2532,7 +2530,7 @@ class GenericBsdIfconfigNetwork(Network):
|
||||||
current_if['flags'] = self.get_options(words[1])
|
current_if['flags'] = self.get_options(words[1])
|
||||||
current_if['macaddress'] = 'unknown' # will be overwritten later
|
current_if['macaddress'] = 'unknown' # will be overwritten later
|
||||||
|
|
||||||
if len(words) >= 5 : # Newer FreeBSD versions
|
if len(words) >= 5 : # Newer FreeBSD versions
|
||||||
current_if['metric'] = words[3]
|
current_if['metric'] = words[3]
|
||||||
current_if['mtu'] = words[5]
|
current_if['mtu'] = words[5]
|
||||||
else:
|
else:
|
||||||
|
@ -2630,6 +2628,7 @@ class GenericBsdIfconfigNetwork(Network):
|
||||||
for item in ifinfo[ip_type][0].keys():
|
for item in ifinfo[ip_type][0].keys():
|
||||||
defaults[item] = ifinfo[ip_type][0][item]
|
defaults[item] = ifinfo[ip_type][0][item]
|
||||||
|
|
||||||
|
|
||||||
class HPUXNetwork(Network):
|
class HPUXNetwork(Network):
|
||||||
"""
|
"""
|
||||||
HP-UX-specifig subclass of Network. Defines networking facts:
|
HP-UX-specifig subclass of Network. Defines networking facts:
|
||||||
|
|
Loading…
Reference in a new issue