From f83bcf94fc18d05cd940ff017a02058e8875b3c0 Mon Sep 17 00:00:00 2001
From: Erik Reid <erik.reid@geant.org>
Date: Thu, 1 Apr 2021 08:43:31 +0200
Subject: [PATCH] fixed task name

---
 inventory_provider/tasks/worker.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/inventory_provider/tasks/worker.py b/inventory_provider/tasks/worker.py
index 00595f41..7bd4f525 100644
--- a/inventory_provider/tasks/worker.py
+++ b/inventory_provider/tasks/worker.py
@@ -469,7 +469,7 @@ def refresh_juniper_interface_list(hostname, netconf):
     rp.execute()
 
 
-@app.task(base=InventoryTask, bind=True, name='reload_router_config')
+@app.task(base=InventoryTask, bind=True, name='reload_lab_router_config')
 @log_task_entry_and_exit
 def reload_lab_router_config(self, hostname):
     self.log_info(f'loading netconf data for lab {hostname}')
@@ -479,6 +479,8 @@ def reload_lab_router_config(self, hostname):
 
     netconf_doc = load_netconf_data(hostname)
 
+    refresh_juniper_interface_list(hostname, netconf_doc)
+
     # load snmp indexes
     community = juniper.snmp_community_string(netconf_doc)
     if not community:
-- 
GitLab