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:
parent
9a5be38a22
commit
492da6ce71
1 changed files with 7 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue