diff --git a/inventory_provider/routes/classifier.py b/inventory_provider/routes/classifier.py index 2c9f7f415224944f5df175290a8d941275de0540..2e33ff6dbfe9483b401bd31bea48db1621cf6eda 100644 --- a/inventory_provider/routes/classifier.py +++ b/inventory_provider/routes/classifier.py @@ -68,6 +68,14 @@ def get_trap_metadata(source_equipment, interface): 'opsdb:interface_services:%s:%s' % (source_equipment, interface)) if services: result['services'] = json.loads(services.decode('utf=8')) + geant_lambdas = [] + for s in result['services']: + gl = r.get('opsdb:geant_lambdas:%s' % s['name']) + if gl: + geant_lambdas.append(json.loads(gl.decode('utf=8'))) + + if geant_lambdas: + result['geant_lambdas'] = geant_lambdas ifc_info = r.get( 'netconf-interfaces:%s:%s' % (source_equipment, interface))