diff --git a/inventory_provider/db/ims_data.py b/inventory_provider/db/ims_data.py index fa1a4032de18ee5ae2cd8a297e54d4792b022815..d6c82aa882548ec82b14a3fd5cda54bdffa0fc76 100644 --- a/inventory_provider/db/ims_data.py +++ b/inventory_provider/db/ims_data.py @@ -23,7 +23,8 @@ IMS_OPSDB_STATUS_MAP = { InventoryStatus.READY_FOR_CEASURE: 'disposed' } STATUSES_TO_IGNORE = \ - [InventoryStatus.OUT_OF_SERVICE, InventoryStatus.READY_FOR_CEASURE] + [InventoryStatus.OUT_OF_SERVICE.value, + InventoryStatus.READY_FOR_CEASURE.value] @lru_cache(64, typed=False) @@ -34,6 +35,8 @@ def get_service_types(ds: IMS): yield d['selection'] + +# http://test-inventory-provider-ims.geant.org:8080/classifier/infinera-lambda-info/VEN-OLA1/1-A-3-L1/wibble def get_fibre_info(ds: IMS): # get all the wdm ots circuits where each node is in a different location