From e6a577a64dd34434abf89499fa54dc280b582ccd Mon Sep 17 00:00:00 2001
From: Erik Reid <erik.reid@geant.org>
Date: Wed, 23 Jun 2021 15:12:25 +0200
Subject: [PATCH] POL1-443: use new firewall counter names

---
 inventory_provider/routes/poller.py | 6 +-----
 test/test_general_poller_routes.py  | 4 ++--
 2 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/inventory_provider/routes/poller.py b/inventory_provider/routes/poller.py
index 3e30751c..e46bae0a 100644
--- a/inventory_provider/routes/poller.py
+++ b/inventory_provider/routes/poller.py
@@ -804,11 +804,7 @@ def _jnx_fw_counter_bytes_oid(
     if filter_name is None:
         filter_name = f'nren_IAS_{customer}_OUT-{interface_name}-o'
     if counter_name is None:
-        # TODO: Niall might remove this inconsistency!!!
-        if customer == 'GRNET':
-            counter_name = f'DWS-GRnet-out-{interface_name}-o'
-        else:
-            counter_name = f'DWS-out-{interface_name}-o'
+        counter_name = f'DWS-out-{interface_name}-o'
 
     return '.'.join([
         JNX_FW_COUNTER_BYTES_OID,
diff --git a/test/test_general_poller_routes.py b/test/test_general_poller_routes.py
index f8674225..7373ac26 100644
--- a/test/test_general_poller_routes.py
+++ b/test/test_general_poller_routes.py
@@ -191,8 +191,8 @@ def test_dcu_oid_values(ifIndex, expected_oid):
 @pytest.mark.parametrize('customer, interface_name, expected_oid', [
     ('ASREN', 'ae17.333', '1.3.6.1.4.1.2636.3.5.2.1.5.29.110.114.101.110.95.73.65.83.95.65.83.82.69.78.95.79.85.84.45.97.101.49.55.46.51.51.51.45.111.18.68.87.83.45.111.117.116.45.97.101.49.55.46.51.51.51.45.111.2'),  # noqa: E501
     ('FCCN', 'ae10.333', '1.3.6.1.4.1.2636.3.5.2.1.5.28.110.114.101.110.95.73.65.83.95.70.67.67.78.95.79.85.84.45.97.101.49.48.46.51.51.51.45.111.18.68.87.83.45.111.117.116.45.97.101.49.48.46.51.51.51.45.111.2'),  # noqa: E501
-    ('GRNET', 'ae11.333', '1.3.6.1.4.1.2636.3.5.2.1.5.29.110.114.101.110.95.73.65.83.95.71.82.78.69.84.95.79.85.84.45.97.101.49.49.46.51.51.51.45.111.24.68.87.83.45.71.82.110.101.116.45.111.117.116.45.97.101.49.49.46.51.51.51.45.111.2'),  # noqa: E501
-    ('GRNET', 'ae10.333', '1.3.6.1.4.1.2636.3.5.2.1.5.29.110.114.101.110.95.73.65.83.95.71.82.78.69.84.95.79.85.84.45.97.101.49.48.46.51.51.51.45.111.24.68.87.83.45.71.82.110.101.116.45.111.117.116.45.97.101.49.48.46.51.51.51.45.111.2'),  # noqa: E501
+    ('GRNET', 'ae11.333', '1.3.6.1.4.1.2636.3.5.2.1.5.29.110.114.101.110.95.73.65.83.95.71.82.78.69.84.95.79.85.84.45.97.101.49.49.46.51.51.51.45.111.18.68.87.83.45.111.117.116.45.97.101.49.49.46.51.51.51.45.111.2'),  # noqa: #E501
+    ('GRNET', 'ae10.333', '1.3.6.1.4.1.2636.3.5.2.1.5.29.110.114.101.110.95.73.65.83.95.71.82.78.69.84.95.79.85.84.45.97.101.49.48.46.51.51.51.45.111.18.68.87.83.45.111.117.116.45.97.101.49.48.46.51.51.51.45.111.2'),  # noqa: #E501
     ('ULAKBIM', 'ae11.333', '1.3.6.1.4.1.2636.3.5.2.1.5.31.110.114.101.110.95.73.65.83.95.85.76.65.75.66.73.77.95.79.85.84.45.97.101.49.49.46.51.51.51.45.111.18.68.87.83.45.111.117.116.45.97.101.49.49.46.51.51.51.45.111.2'),  # noqa: E501
     ('UOM', 'xe-11/0/0.333', '1.3.6.1.4.1.2636.3.5.2.1.5.32.110.114.101.110.95.73.65.83.95.85.79.77.95.79.85.84.45.120.101.45.49.49.47.48.47.48.46.51.51.51.45.111.23.68.87.83.45.111.117.116.45.120.101.45.49.49.47.48.47.48.46.51.51.51.45.111.2'),  # noqa: E501
     ('LITNET', 'xe-0/1/1.333', '1.3.6.1.4.1.2636.3.5.2.1.5.34.110.114.101.110.95.73.65.83.95.76.73.84.78.69.84.95.79.85.84.45.120.101.45.48.47.49.47.49.46.51.51.51.45.111.22.68.87.83.45.111.117.116.45.120.101.45.48.47.49.47.49.46.51.51.51.45.111.2'),  # noqa: E501
-- 
GitLab