Skip to content
Snippets Groups Projects

Feature/pol1 430 EAP NRENs

Merged Sam Roberts requested to merge feature/POL1-430-EAP-NRENs into develop
1 file
+ 16
0
Compare changes
  • Side-by-side
  • Inline
@@ -195,6 +195,11 @@ AGG_DASHBOARDS = {
'dashboard_name': 'ANA',
'interfaces': []
},
'EAP': {
'tag': 'eap',
'dashboard_name': 'EAP Aggregate',
'interfaces': []
}
}
NREN_CATEGORIES = {
@@ -239,7+244,7 @@
def _get_nren_category(_folder_name):
for category in NREN_CATEGORIES:
if _folder_name == NREN_CATEGORIES[category]['folder_name']:
return category
return None
# dashboard should include error panels
@@ -470,7+475,7 @@
ifaces = AGG_DASHBOARDS[dash_name]['interfaces']
ifaces.append(iface)
# aggregate dashboards based on dashboards_info
# there is no way for inventory provider to identify an interface as
# belonging to an EAP NREN at the level 'dashboards' is set
# (based on description and without access to service data)
# so we have to do this as an extra check on 'dashboards_info'
for dashboard in iface['dashboards_info']:
dash_name = dashboard['name']
if dash_name in AGG_DASHBOARDS:
ifaces = AGG_DASHBOARDS[dash_name]['interfaces']
ifaces.append(iface)
# provision dashboards and their folders
with ThreadPoolExecutor(max_workers=MAX_WORKERS) as executor:
provisioned = []
Loading