|
|
@ -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:
|
|
|
|