From 4c25cfbe3c6f7829dd2e25fd13abfc17ebe6fc66 Mon Sep 17 00:00:00 2001 From: Samuel Roberts <sam.roberts@geant.org> Date: Tue, 22 Feb 2022 07:52:51 +0000 Subject: [PATCH] rename tag --- inventory_provider/routes/poller.py | 4 ++-- test/test_general_poller_routes.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/inventory_provider/routes/poller.py b/inventory_provider/routes/poller.py index 3e3146a2..8c3c11f1 100644 --- a/inventory_provider/routes/poller.py +++ b/inventory_provider/routes/poller.py @@ -105,7 +105,7 @@ class BRIAN_DASHBOARDS(Enum): IAS_CUSTOMER = auto() IAS_UPSTREAM = auto() GWS_PHY_UPSTREAM = auto() - TENG_GBS = auto() + GBS_10G = auto() # aggregate dashboards CLS_PEERS = auto() @@ -434,7 +434,7 @@ def _get_dashboards(interface): if 'SRV_IAS UPSTREAM' in description: yield BRIAN_DASHBOARDS.IAS_UPSTREAM if 'SRV_10GGBS CUSTOMER' in description: - yield BRIAN_DASHBOARDS.TENG_GBS + yield BRIAN_DASHBOARDS.GBS_10G if re.match('(SRV_GLOBAL|SRV_L3VPN|LAG) RE_INTERCONNECT', description): yield BRIAN_DASHBOARDS.RE_PEER if re.match(r'(PHY|LAG|SRV_GLOBAL) CUSTOMER', description): diff --git a/test/test_general_poller_routes.py b/test/test_general_poller_routes.py index 25dfd322..01e17d43 100644 --- a/test/test_general_poller_routes.py +++ b/test/test_general_poller_routes.py @@ -300,7 +300,7 @@ def test_fw_counter_bytes_oid_values(customer, interface_name, expected_oid): ('SRV_L3VPN RE_INTERCONNECT REDCLARA #REDCLARA-MAD-COPERNICUS | ASN27750', ['LHCONE', 'COPERNICUS', 'RE_PEER']), ('SRV_10GGBS CUSTOMER REDIRIS CERN #gen-mad-LHC-CERN-REDIRIS-07003 |', - ['TENG_GBS']) + ['GBS_10G']) ]) def test_interface_dashboard_mapping(description, expected_dashboards): interface = { -- GitLab