private VNFCInstance getVnfcInSuchState(String state) { for (VirtualDeploymentUnit vdu : virtualNetworkFunctionRecord.getVdu()) { for (VNFCInstance vnfcInstance : vdu.getVnfc_instance()) { if (vnfcInstance.getState() != null && vnfcInstance.getState().equals(state)) { return vnfcInstance; } } } return null; }
VNFCInstance standByVNFCInstance = null; for (VNFCInstance vnfcInstance : virtualDeploymentUnit.getVnfc_instance()) { log.debug("current vnfcinstance " + vnfcInstance + " in state" + vnfcInstance.getState()); if (vnfcInstance.getState() != null && vnfcInstance.getState().equalsIgnoreCase(mode)) { standByVNFCInstance = vnfcInstance; log.debug("VNFComponentInstance in " + mode + " mode FOUND :" + standByVNFCInstance); + vnfcInstance.getHostname() + " is set to '" + vnfcInstance.getState() + "' state");
+ vnfcInstance.getId() + ". Status of unsaved VNFC instance is: " + vnfcInstance.getState()); for (VirtualDeploymentUnit vdu : virtualNetworkFunctionRecord.getVdu()) { for (VNFCInstance vnfcInstanceTmp : vdu.getVnfc_instance()) { if (vnfcInstanceTmp.getHostname().equals(vnfcInstance.getHostname()) && vnfcInstanceTmp.getVim_id().equals(vnfcInstance.getVim_id())) { if (vnfcInstanceTmp.getState() == null || !vnfcInstanceTmp.getState().equalsIgnoreCase("standby")) { vnfcInstanceTmp.setState("ACTIVE"); + vnfcInstance.getId() + ") is: " + vnfcInstance.getState()); } catch (Exception e) { e.printStackTrace(); if (vnfcInstance.getState() != null && vnfcInstance.getState().equalsIgnoreCase("standby")) { return null;
for (VNFCInstance instanceInVNFR : vdu.getVnfc_instance()) { log.debug("VNFCInstance status is: " + instanceInVNFR.getState()); if (instanceInVNFR.getState() != null) { if ((instanceInVNFR.getState().equalsIgnoreCase("active")) && (networkServiceRecord.getStatus().ordinal() != Status.ERROR.ordinal())) { stopVNFR = false;
if (instanceInVNFR.getState().equals("ACTIVE")) { stopVNFR = false;
+ vnfcInstance.getHostname() + " - STATE: " + vnfcInstance.getState() + ")"); if (vnfcInstance.getId().equals(idVNFCI)) {