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
No related branches found
No related tags found
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.
Finish editing this message first!
Please register or to comment