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

Merge branch 'feature/pol1-855-more-changes' into 'develop'

just remove phy spare interfaces from showing up in any dashboards period

See merge request !46
parents 911ed5c9 712b7290
Branches
Tags
1 merge request!46just remove phy spare interfaces from showing up in any dashboards period
...@@ -492,6 +492,9 @@ def _get_dashboards(interface, region=None): ...@@ -492,6 +492,9 @@ def _get_dashboards(interface, region=None):
is_phy_upstream = re.match(r'PHY UPSTREAM\s', description) is_phy_upstream = re.match(r'PHY UPSTREAM\s', description)
if description.startswith('PHY SPARE'):
return []
if 'SRV_L3VPN' in description and 'COPERNICUS' in description: if 'SRV_L3VPN' in description and 'COPERNICUS' in description:
yield BRIAN_DASHBOARDS.COPERNICUS yield BRIAN_DASHBOARDS.COPERNICUS
if re.match(r'SRV_CLS\s', description): if re.match(r'SRV_CLS\s', description):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment