} catch (InterruptedException | ExecutionException e) {
LOG.error("readMdSal: Error reading Operational Mode Catalog {} , Mode does not exist", omCatalogIid);
throw new RuntimeException("Operational mode not populated in Catalog : " + omCatalogIid + " :" + e);
- } finally {
- networkTransactionService.close();
}
} else {
// In other cases, means the mode is a non OpenROADM specific Operational Mode
} catch (InterruptedException | ExecutionException e) {
LOG.error("readMdSal: Error reading Operational Mode Catalog {} , Mode does not exist", omCatalogIid);
throw new RuntimeException("Operational mode not populated in Catalog : " + omCatalogIid + " :" + e);
- } finally {
- networkTransactionService.close();
}
}
if (maxRollOff == 0) {
throw new RuntimeException(
"readMdSal: Error reading from operational store, Operational Mode Catalog : "
+ omCatalogIid + " :" + e);
- } finally {
- networkTransactionService.close();
}
} else {
// In other cases, means the mode is a non OpenROADM specific Operational Mode
throw new RuntimeException(
"readMdSal: Error reading from operational store, Operational Mode Catalog : " + omCatalogIid + " :"
+ e);
- } finally {
- networkTransactionService.close();
}
}
if (minOOBOsnrSingleChannelValue != null) {
throw new RuntimeException(
"readMdSal: Error reading from operational store, Operational Mode Catalog : " + omCatalogIid + " :"
+ e);
- } finally {
- networkTransactionService.close();
}
} else {
// In other cases, means the mode is a non OpenROADM specific Operational Mode
throw new RuntimeException(
"readMdSal: Error reading from operational store, Operational Mode Catalog : " + omCatalogIid + " :"
+ e);
- } finally {
- networkTransactionService.close();
}
}
if (penaltiesMap == null) {
}
var orAddOM = omOptional.get();
LOG.debug("readMdSal: Operational Mode Catalog: omOptional.isPresent = true {}", orAddOM);
- networkTransactionService.close();
maxIntroducedCd = orAddOM.getMaxIntroducedCd().doubleValue();
// As per current OpenROADM Spec
//maxIntroducedPdl = orAddOM.getMaxIntroducedPdl().getValue().doubleValue();
throw new RuntimeException(
"readMdSal: Error reading from operational store, Operational Mode Catalog : "
+ omCatalogIid + " :" + e);
- } finally {
- networkTransactionService.close();
}
break;
}
var orDropOM = omOptional.get();
LOG.debug("readMdSal: Operational Mode Catalog: omOptional.isPresent = true {}", orDropOM);
- networkTransactionService.close();
maxIntroducedCd = orDropOM.getMaxIntroducedCd().doubleValue();
// As per current OpenROADM Spec
// maxIntroducedPdl = orDropOM.getMaxIntroducedPdl().getValue().doubleValue();
throw new RuntimeException(
"readMdSal: Error reading from operational store, Operational Mode Catalog : "
+ omCatalogIid1 + " :" + e);
- } finally {
- networkTransactionService.close();
}
break;
throw new RuntimeException(
"readMdSal: Error reading from operational store, Operational Mode Catalog : "
+ omCatalogIid2 + " :" + e);
- } finally {
- networkTransactionService.close();
}
break;
}
var orAmpOM = omOptional.get();
LOG.debug("readMdSal: Operational Mode Catalog: omOptional.isPresent = true {}", orAmpOM);
- networkTransactionService.close();
maxIntroducedCd = orAmpOM.getMaxIntroducedCd().doubleValue();
// As per current OpenROADM Spec
// maxIntroducedPdl = orAmpOM.getMaxIntroducedPdl().getValue().doubleValue();
throw new RuntimeException(
"readMdSal: Error reading from operational store, Operational Mode Catalog : "
+ omCatalogIid3 + " :" + e);
- } finally {
- networkTransactionService.close();
}
break;
default:
}
var orAddOM = omOptional.get();
LOG.debug("readMdSal: Operational Mode Catalog: omOptional.isPresent = true {}", orAddOM);
- networkTransactionService.close();
var mask = orAddOM.getMaskPowerVsPin();
for (Map.Entry<MaskPowerVsPinKey, MaskPowerVsPin> pw : mask.entrySet()) {
if (spanLoss >= pw.getKey().getLowerBoundary().doubleValue()
throw new RuntimeException(
"readMdSal: Error reading from operational store, Operational Mode Catalog : "
+ omCatalogIid + " :" + e);
- } finally {
- networkTransactionService.close();
}
break;
throw new RuntimeException(
"readMdSal: Error reading from operational store, Operational Mode Catalog : "
+ omCatalogIid2 + " :" + e);
- } finally {
- networkTransactionService.close();
}
break;
LOG.error("Operational Mode catalog is not filled");
return false;
}
- networkTransactionService.close();
return true;
} catch (InterruptedException | ExecutionException e) {
LOG.error("readMdSal: Error reading Operational Mode Catalog, catalog not filled");
throw new RuntimeException(
"readMdSal: Error reading from operational store, Operational Mode Catalog not filled" + e);
- } finally {
- networkTransactionService.close();
}
}