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

fixed task name

parent 375c7b31
Branches
Tags
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment