diff --git a/inventory_provider/routes/poller.py b/inventory_provider/routes/poller.py index dcdaa0f9b369738bbd3e44a0a4941ad319bfa0f3..3e3146a2a0fd1210a1dec864471a6dd55a743ef8 100644 --- a/inventory_provider/routes/poller.py +++ b/inventory_provider/routes/poller.py @@ -105,6 +105,7 @@ class BRIAN_DASHBOARDS(Enum): IAS_CUSTOMER = auto() IAS_UPSTREAM = auto() GWS_PHY_UPSTREAM = auto() + TENG_GBS = auto() # aggregate dashboards CLS_PEERS = auto() @@ -118,7 +119,6 @@ class BRIAN_DASHBOARDS(Enum): NREN = auto() - # only used in INTERFACE_LIST_SCHEMA and sphinx docs _DASHBOARD_IDS = [d.name for d in list(BRIAN_DASHBOARDS)] @@ -433,6 +433,8 @@ def _get_dashboards(interface): yield BRIAN_DASHBOARDS.IAS_CUSTOMER if 'SRV_IAS UPSTREAM' in description: yield BRIAN_DASHBOARDS.IAS_UPSTREAM + if 'SRV_10GGBS CUSTOMER' in description: + yield BRIAN_DASHBOARDS.TENG_GBS 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 cda06e6b496aeea370a6b90c2f3025b69ce59d07..25dfd322d3f11c362ac4c3645007a43f377c5281 100644 --- a/test/test_general_poller_routes.py +++ b/test/test_general_poller_routes.py @@ -298,7 +298,9 @@ def test_fw_counter_bytes_oid_values(customer, interface_name, expected_oid): ('SRV_L2CIRCUIT CUSTOMER TENET PSNC #lon-lon-GEANTOPEN-PSNC-TENET-18067 |', # noqa: E501 ['GEANTOPEN', 'L2_CIRCUIT']), ('SRV_L3VPN RE_INTERCONNECT REDCLARA #REDCLARA-MAD-COPERNICUS | ASN27750', - ['LHCONE', 'COPERNICUS', 'RE_PEER']) + ['LHCONE', 'COPERNICUS', 'RE_PEER']), + ('SRV_10GGBS CUSTOMER REDIRIS CERN #gen-mad-LHC-CERN-REDIRIS-07003 |', + ['TENG_GBS']) ]) def test_interface_dashboard_mapping(description, expected_dashboards): interface = {