Commit f1ce9abe by James Cammarata

Merge pull request #7099 from faust64/patch-2

Update facts.py
parents 149339f6 78b9a11c
...@@ -1721,7 +1721,9 @@ class GenericBsdIfconfigNetwork(Network): ...@@ -1721,7 +1721,9 @@ class GenericBsdIfconfigNetwork(Network):
if line: if line:
words = line.split() words = line.split()
if re.match('^\S', line) and len(words) > 3: if words[0] == 'pass':
continue
elif re.match('^\S', line) and len(words) > 3:
current_if = self.parse_interface_line(words) current_if = self.parse_interface_line(words)
interfaces[ current_if['device'] ] = current_if interfaces[ current_if['device'] ] = current_if
elif words[0].startswith('options='): elif words[0].startswith('options='):
......
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