From 6504c0284cdb775a55dd2671d6e13f54b8d2bd31 Mon Sep 17 00:00:00 2001
From: Samuel Roberts <sam.roberts@geant.org>
Date: Wed, 23 Feb 2022 14:20:08 +0000
Subject: [PATCH] POL1-487 work only wants copernicus interfaces with SRV-L3VPN

---
 inventory_provider/routes/poller.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/inventory_provider/routes/poller.py b/inventory_provider/routes/poller.py
index 7ff8494c..2891b68b 100644
--- a/inventory_provider/routes/poller.py
+++ b/inventory_provider/routes/poller.py
@@ -418,7 +418,7 @@ def _get_dashboards(interface):
     router = interface.get('router', '').lower()
     ifc_name = interface.get('name', '')
     description = interface.get('description', '').strip()
-    if re.search(r'COPERNICUS.*?\|', description, flags=re.IGNORECASE):
+    if 'SRV_L3VPN' in description and re.search(r'COPERNICUS.*?\|', description, flags=re.IGNORECASE):
         yield BRIAN_DASHBOARDS.COPERNICUS
     if 'SRV_CLS' in description:
         yield BRIAN_DASHBOARDS.CLS
-- 
GitLab