Skip to content
Snippets Groups Projects
Commit c0f6b72b authored by Sam Roberts's avatar Sam Roberts
Browse files

remove unnecessary regex

parent 75b43e24
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 'SRV_L3VPN' in description and 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