Skip to content
Snippets Groups Projects
Commit e0d2c616 authored by Bjarke Madsen's avatar Bjarke Madsen
Browse files

POL1-645:

Add interfaces to aggregate panel if they have GA- in SID
parent 11984541
No related branches found
No related tags found
No related merge requests found
...@@ -164,10 +164,11 @@ def get_nren_interface_data(services, interfaces, excluded_dashboards): ...@@ -164,10 +164,11 @@ def get_nren_interface_data(services, interfaces, excluded_dashboards):
name = service.get('name') name = service.get('name')
sid = service.get('sid') sid = service.get('sid')
scid = service.get('scid') scid = service.get('scid')
service_type = service.get('service_type')
measurement = 'scid_rates' measurement = 'scid_rates'
lag_service = service['service_type'] == 'ETHERNET' lag_service = 'GA-' in sid and service_type == 'ETHERNET'
if lag_service: if lag_service:
if len(_interfaces) == 0: if len(_interfaces) == 0:
...@@ -225,7 +226,6 @@ def get_nren_interface_data(services, interfaces, excluded_dashboards): ...@@ -225,7 +226,6 @@ def get_nren_interface_data(services, interfaces, excluded_dashboards):
}) })
if port_type == 'access': if port_type == 'access':
logger.info(f'{f"{location} - {dashboard_name} ({interface_name})"} #### {description}') # noqa: E501
dashboard['AGGREGATES'].append({ dashboard['AGGREGATES'].append({
'interface': interface_name, 'interface': interface_name,
'hostname': host, 'hostname': host,
......
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