Skip to content
Snippets Groups Projects
Commit 8b1f511b authored by Erik Reid's avatar Erik Reid
Browse files

check unit['inactive'] before returning interface

parent 20e7b8f9
No related branches found
No related tags found
No related merge requests found
......@@ -240,6 +240,8 @@ def list_interfaces(netconf_config):
def _units(base_name, node):
for u in node.xpath('./unit'):
if u.get('inactive', None) == 'inactive':
continue
unit_info = _ifc_info(u)
unit_info['name'] = "%s.%s" % (base_name, unit_info['name'])
yield unit_info
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment