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

added lambda info retrieval

parent f03319b6
Branches
Tags
No related merge requests found
...@@ -25,6 +25,28 @@ interface_generators = { ...@@ -25,6 +25,28 @@ interface_generators = {
} }
def get_geant_lambdas(ds: IMS):
circuit_nav_props = [
ims.CIRCUIT_PROPERTIES['Customer'],
]
for c in ds.get_filtered_entities(
'Circuit',
'product.name == "geant lambda"',
circuit_nav_props,
step_count=1000):
key = c['extrainfo'].rsplit(':')[-1].lower()
if not key:
continue
yield key, {
'id': c['id'],
'name': c['name'],
'status': IMS_OPSDB_STATUS_MAP.get(
InventoryStatus(c['inventorystatusid']), 'unknown'),
'project': c['customer']['name'],
'original_name': c['extrainfo']
}
def get_fibre_info(ds: IMS): def get_fibre_info(ds: IMS):
# get all the wdm ots circuits where each node is in a different location # get all the wdm ots circuits where each node is in a different location
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment