Skip to content
Snippets Groups Projects
Commit f83bcf94 authored by Erik Reid's avatar Erik Reid
Browse files

fixed task name

parent 375c7b31
No related branches found
No related tags found
No related merge requests found
...@@ -469,7 +469,7 @@ def refresh_juniper_interface_list(hostname, netconf): ...@@ -469,7 +469,7 @@ def refresh_juniper_interface_list(hostname, netconf):
rp.execute() 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 @log_task_entry_and_exit
def reload_lab_router_config(self, hostname): def reload_lab_router_config(self, hostname):
self.log_info(f'loading netconf data for lab {hostname}') self.log_info(f'loading netconf data for lab {hostname}')
...@@ -479,6 +479,8 @@ def reload_lab_router_config(self, hostname): ...@@ -479,6 +479,8 @@ def reload_lab_router_config(self, hostname):
netconf_doc = load_netconf_data(hostname) netconf_doc = load_netconf_data(hostname)
refresh_juniper_interface_list(hostname, netconf_doc)
# load snmp indexes # load snmp indexes
community = juniper.snmp_community_string(netconf_doc) community = juniper.snmp_community_string(netconf_doc)
if not community: if not community:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment