diff --git a/inventory_provider/routes/poller.py b/inventory_provider/routes/poller.py index 93179717b4ce524fac454964bacf2016e40d0ebd..a48de48bc17acc7e5e4536f3a3851277bed7517b 100644 --- a/inventory_provider/routes/poller.py +++ b/inventory_provider/routes/poller.py @@ -62,8 +62,14 @@ def poller_interface_oids(hostname): if not snmp_index: continue + bundle_parents = r.get('netconf-interface-bundles:%s:%s' % ( + hostname, ifc['name'].split('.')[0])) + ifc_data = { 'name': ifc['name'], + 'bundle': ifc['bundle'], + 'bundle-parents': + json.loads(bundle_parents) if bundle_parents else [], 'snmp-index': snmp_index, 'description': ifc['description'], 'circuits': []