Skip to content
Snippets Groups Projects
Commit 17961a81 authored by Robert Latta's avatar Robert Latta
Browse files

Removed additional names from BACKBONE info RE POL1-526

parent 0817572e
No related branches found
No related tags found
No related merge requests found
......@@ -475,7 +475,7 @@ def _get_dashboards(interface):
yield BRIAN_DASHBOARDS.NREN
def _get_dashboard_data(ifc, customers):
def _get_dashboard_data(ifc, names):
def _get_interface_type(description):
if re.match(r'^PHY', description):
......@@ -516,7 +516,7 @@ def _get_dashboard_data(ifc, customers):
if BRIAN_DASHBOARDS.INFRASTRUCTURE_BACKBONE.name in dashboards:
name = _get_backbone_name(description)
customers.add(name)
names = {name}
elif BRIAN_DASHBOARDS.GWS_PHY_UPSTREAM.name in dashboards:
name = _get_customer_name(description)
host = ifc['router']
......@@ -532,9 +532,9 @@ def _get_dashboard_data(ifc, customers):
'interface_type': interface_type.name
},
'dashboards_info': [{
'name': customer_name,
'name': name,
'interface_type': interface_type.name
} for customer_name in customers]
} for name in names]
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment