From ab43db58acfe84e7c9dd79c0ead9036a0fa6e06c Mon Sep 17 00:00:00 2001
From: Robert Latta <robert.latta@geant.org>
Date: Tue, 17 Dec 2024 11:36:28 +0000
Subject: [PATCH] corrected community used for classifier. RE DBOARD3-1086

---
 inventory_provider/tasks/worker.py    | 2 +-
 test/per_router/test_celery_worker.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/inventory_provider/tasks/worker.py b/inventory_provider/tasks/worker.py
index 350ff2f..bd482a2 100644
--- a/inventory_provider/tasks/worker.py
+++ b/inventory_provider/tasks/worker.py
@@ -627,7 +627,7 @@ def _reload_router_config_nokia(
 def snmp_refresh_peerings_nokia(hostname, communities, update_callback=lambda S: None):
     get_peerings_func = functools.partial(
         snmp.get_peer_state_info_nokia,
-        community=communities['inventory-provider'],
+        community=communities['dashboard'],
     )
     snmp_refresh_peerings(
         get_peerings_func, hostname, 'nokia', update_callback=update_callback
diff --git a/test/per_router/test_celery_worker.py b/test/per_router/test_celery_worker.py
index 1fc7ec2..f60e875 100644
--- a/test/per_router/test_celery_worker.py
+++ b/test/per_router/test_celery_worker.py
@@ -81,7 +81,7 @@ def test_snmp_refresh_peerings_nokia(mocked_worker_module, nokia_router):
     for k in list(_ifc_keys()):
         del backend_db()[k]
 
-    communities = {'inventory-provider': 'fake-community'}
+    communities = {'dashboard': 'fake-community'}
 
     worker.snmp_refresh_peerings_nokia(nokia_router, communities)
     assert list(_ifc_keys())
-- 
GitLab