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

handled missing dashboards_info data

parent cfff9f10
No related branches found
No related tags found
No related merge requests found
......@@ -291,6 +291,11 @@ def _provision_interfaces(config, org_config, ds_name, token):
desc = interface['description'].lower()
lab = 'lab.office' in interface['router'].lower()
to_exclude = any(nren.lower() in desc for nren in excluded_nrens)
if not (to_exclude or lab):
if 'dashboards_info' not in interface:
to_exclude = True
logger.info(f'No "dashboards_info" for '
f'{interface["router"]}:{interface["name"]}')
return not (to_exclude or lab)
relevant_interfaces = list(filter(excluded, interfaces))
......
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