Commit ad3931bf authored by Stauros Kroustouris's avatar Stauros Kroustouris

show ununsed interfaces for a device in the inventory

parent 1e6ad64c
......@@ -64,7 +64,7 @@ def site_devices(request, site_id):
'name': ifce.name.name,
'ifces': [ifce.to_node_dict()],
# as andreas about that
'free_ports': [interface.name for interface in ifce.name.ifce_set.filter(description='', status='free')],
'free_ports': [interface.name for interface in ifce.name.ifce_set.filter(taggedifce__isnull=True, status='down').exclude(name__contains='.').exclude(name__contains='ae')],
# colocated or not
'role': role,
'id': ifce.name.pk
......
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