mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-31 17:11:23 -07:00
Merge pull request #7082 from bcoca/freebsd_mtu_fix
fixed issue with FreeBSD network facts
This commit is contained in:
commit
39c6141b4a
1 changed files with 3 additions and 2 deletions
|
@ -1749,7 +1749,8 @@ class GenericBsdIfconfigNetwork(Network):
|
||||||
device = words[0][0:-1]
|
device = words[0][0:-1]
|
||||||
current_if = {'device': device, 'ipv4': [], 'ipv6': [], 'type': 'unknown'}
|
current_if = {'device': device, 'ipv4': [], 'ipv6': [], 'type': 'unknown'}
|
||||||
current_if['flags'] = self.get_options(words[1])
|
current_if['flags'] = self.get_options(words[1])
|
||||||
current_if['mtu'] = words[3]
|
current_if['metric'] = words[3]
|
||||||
|
current_if['mtu'] = words[5]
|
||||||
current_if['macaddress'] = 'unknown' # will be overwritten later
|
current_if['macaddress'] = 'unknown' # will be overwritten later
|
||||||
return current_if
|
return current_if
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue