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

Fix a bug with services that have no endpoints

parent 4acdf338
No related branches found
No related tags found
No related merge requests found
......@@ -107,6 +107,8 @@ def get_nren_interface_data(services, interfaces, excluded_dashboards):
lag_service = service['service_type'] == 'ETHERNET'
if lag_service:
if len(_interfaces) == 0:
continue
if len(_interfaces) > 1:
logger.info(
f'{sid} {name} aggregate service has > 1 interface')
......
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