diff --git a/brian_dashboard_manager/templating/helpers.py b/brian_dashboard_manager/templating/helpers.py index d026cb62c794f5e0ae0d65fbe9173a0be34fee91..a55b09553609de583f8679874671b62e63f4cb02 100644 --- a/brian_dashboard_manager/templating/helpers.py +++ b/brian_dashboard_manager/templating/helpers.py @@ -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