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
+ 0
11
Compare changes
  • Side-by-side
  • Inline
@@ -239,7+239,7 @@
customers = []
region_lookup = {region['nren']: region['region'] for region in regions}
for service in services:
service_customers = service.get('customers')
for cust in service_customers:
cust_region = region_lookup.get(cust, None)
if cust_region == region:
@@ -449,7+449,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