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

Merge branch 'POL1-487-fixes' into 'develop'

POL1-487 work only wants copernicus interfaces with SRV-L3VPN

See merge request live-projects/dashboardv3/inventory-provider!9
parents 20a2bfdf c0f6b72b
No related branches found
No related tags found
No related merge requests found
...@@ -418,7 +418,7 @@ def _get_dashboards(interface): ...@@ -418,7 +418,7 @@ def _get_dashboards(interface):
router = interface.get('router', '').lower() router = interface.get('router', '').lower()
ifc_name = interface.get('name', '') ifc_name = interface.get('name', '')
description = interface.get('description', '').strip() description = interface.get('description', '').strip()
if re.search(r'COPERNICUS.*?\|', description, flags=re.IGNORECASE): if 'SRV_L3VPN' in description and 'COPERNICUS' in description:
yield BRIAN_DASHBOARDS.COPERNICUS yield BRIAN_DASHBOARDS.COPERNICUS
if 'SRV_CLS' in description: if 'SRV_CLS' in description:
yield BRIAN_DASHBOARDS.CLS yield BRIAN_DASHBOARDS.CLS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment