From 0b070a04d03d7cef544236bc5acad80c418248f1 Mon Sep 17 00:00:00 2001 From: Adrian Likins Date: Tue, 23 Aug 2016 11:05:09 -0400 Subject: [PATCH] Fix docstring for GenericBsdIfconfogNetwork. (#17008) default_ipv4/default_ipv6 and type/mtu/network were listed as not defined, but they are usually defined now. --- lib/ansible/module_utils/facts.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/ansible/module_utils/facts.py b/lib/ansible/module_utils/facts.py index 820e99857c..efe274cbad 100644 --- a/lib/ansible/module_utils/facts.py +++ b/lib/ansible/module_utils/facts.py @@ -2408,6 +2408,7 @@ class LinuxNetwork(Network): features[key.strip().replace('-','_')] = value.strip() return features + class GenericBsdIfconfigNetwork(Network): """ 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) - interface_ dictionary of ipv4, ipv6, and mac address information. - 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' @@ -2532,7 +2530,7 @@ class GenericBsdIfconfigNetwork(Network): current_if['flags'] = self.get_options(words[1]) 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['mtu'] = words[5] else: @@ -2630,6 +2628,7 @@ class GenericBsdIfconfigNetwork(Network): for item in ifinfo[ip_type][0].keys(): defaults[item] = ifinfo[ip_type][0][item] + class HPUXNetwork(Network): """ HP-UX-specifig subclass of Network. Defines networking facts: