Commit e5f29769 by Brian Coca

ifconfig changed on FreeBSD, tested this on 8,9 and 10 latest stable

versions and it now works
parent ae29e43f
...@@ -1748,8 +1748,9 @@ class GenericBsdIfconfigNetwork(Network): ...@@ -1748,8 +1748,9 @@ class GenericBsdIfconfigNetwork(Network):
def parse_interface_line(self, words): def parse_interface_line(self, words):
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment