diff --git a/inventory_provider/routes/poller.py b/inventory_provider/routes/poller.py
index a48de48bc17acc7e5e4536f3a3851277bed7517b..bb0b44c8be526baa715051c73e2c19f2a6585c77 100644
--- a/inventory_provider/routes/poller.py
+++ b/inventory_provider/routes/poller.py
@@ -32,17 +32,7 @@ def poller_interface_oids(hostname):
             status=404,
             mimetype='text/html')
 
-    def _ifc_name(ifc):
-        if 'v4InterfaceName' in ifc:
-            return ifc['v4InterfaceName']
-        if 'v6InterfaceName' in ifc:
-            return ifc['v6InterfaceName']
-        assert False, 'sanity failure: no interface name found'
-
-    snmp_indexes = dict([
-        (_ifc_name(ifc), int(ifc['index'])) for ifc in
-        json.loads(snmp_data_string.decode('utf-8'))
-    ])
+    snmp_indexes = json.loads(snmp_data_string.decode('utf-8'))
 
     interfaces = list(juniper.list_interfaces(
         etree.XML(netconf_string.decode('utf-8'))))