From 492da6ce71aaf76d18d0af1b64289748745db47a Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Thu, 20 Oct 2016 23:50:22 +0200 Subject: [PATCH] Add support for NetBSD network fact (#18113) Like hostname, it use the same interface as FreeBSD so we bascailly reuse the same code. Only tested on NetBSD 7. --- lib/ansible/module_utils/facts.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/ansible/module_utils/facts.py b/lib/ansible/module_utils/facts.py index cb7ffb74e55..2c98d472b75 100644 --- a/lib/ansible/module_utils/facts.py +++ b/lib/ansible/module_utils/facts.py @@ -2876,6 +2876,13 @@ class OpenBSDNetwork(GenericBsdIfconfigNetwork): def parse_lladdr_line(self, words, current_if, ips): current_if['macaddress'] = words[1] +class NetBSDNetwork(GenericBsdIfconfigNetwork): + """ + This is the NetBSD Network Class. + It uses the GenericBsdIfconfigNetwork + """ + platform = 'NetBSD' + class SunOSNetwork(GenericBsdIfconfigNetwork): """ This is the SunOS Network Class.