diff --git a/inventory_provider/routes/poller.py b/inventory_provider/routes/poller.py
index bb0b44c8be526baa715051c73e2c19f2a6585c77..a3f890e59ebc1f589ec2d4278a411830c0c848c6 100644
--- a/inventory_provider/routes/poller.py
+++ b/inventory_provider/routes/poller.py
@@ -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'))))