mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-14 12:51:04 +00: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:
committed by
jctanner
parent
9a5be38a22
commit
492da6ce71
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user