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

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.
This commit is contained in:
Michael Scherer 2016-10-20 23:50:22 +02:00 committed by jctanner
parent 9a5be38a22
commit 492da6ce71

View file

@ -2876,6 +2876,13 @@ class OpenBSDNetwork(GenericBsdIfconfigNetwork):
def parse_lladdr_line(self, words, current_if, ips): def parse_lladdr_line(self, words, current_if, ips):
current_if['macaddress'] = words[1] current_if['macaddress'] = words[1]
class NetBSDNetwork(GenericBsdIfconfigNetwork):
"""
This is the NetBSD Network Class.
It uses the GenericBsdIfconfigNetwork
"""
platform = 'NetBSD'
class SunOSNetwork(GenericBsdIfconfigNetwork): class SunOSNetwork(GenericBsdIfconfigNetwork):
""" """
This is the SunOS Network Class. This is the SunOS Network Class.