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

fix handling of new data format

parent 0ace8e47
Branches
Tags
No related merge requests found
......@@ -32,7 +32,9 @@ def poller_interface_oids(hostname):
status=404,
mimetype='text/html')
snmp_indexes = json.loads(snmp_data_string.decode('utf-8'))
snmp_indexes = {}
for ifc in json.loads(snmp_data_string.decode('utf-8')):
snmp_indexes[ifc['name']] = ifc['index']
interfaces = list(juniper.list_interfaces(
etree.XML(netconf_string.decode('utf-8'))))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment