diff --git a/inventory_provider/tasks/worker.py b/inventory_provider/tasks/worker.py index 00595f41fe70a93c07aa805288f8ef86d4b25647..7bd4f5252e98f7465a199d4995d95b7c1a55457b 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: