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

Add all 'access' interfaces to panel aggregates

parent fbe0d593
No related branches found
No related tags found
No related merge requests found
......@@ -207,6 +207,7 @@ def get_nren_interface_data(services, interfaces, excluded_dashboards):
description = interface['description'].strip()
interface_name = interface['name']
host = interface['router']
port_type = interface.get('port_type', 'unknown').lower()
router = host.replace('.geant.net', '')
location = host.split('.')[1].upper()
......@@ -223,6 +224,15 @@ def get_nren_interface_data(services, interfaces, excluded_dashboards):
'PHYSICAL': []
})
if port_type == 'access':
logger.info(f'{f"{location} - {dashboard_name} ({interface_name})"} #### {description}')
dashboard['AGGREGATES'].append({
'interface': interface_name,
'hostname': host,
'alias':
f"{location} - {dashboard_name} ({interface_name})"
})
if info['interface_type'] == 'AGGREGATE':
# link aggregates are also shown
# under the physical dropdown
......
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