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

remove unnecessary regex

parent 75b43e24
Branches
Tags
No related merge requests found
......@@ -418,7 +418,7 @@ def _get_dashboards(interface):
router = interface.get('router', '').lower()
ifc_name = interface.get('name', '')
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
if 'SRV_CLS' in description:
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