Skip to content
Snippets Groups Projects
Commit aab29c60 authored by Robert Latta's avatar Robert Latta
Browse files

Added 'geant lamdas' to cached info

parent a7451cce
No related branches found
No related tags found
No related merge requests found
......@@ -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))
......
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