private VNFCInstance getVnfcInstance( VirtualNetworkFunctionRecord virtualNetworkFunctionRecord, VNFComponent component) { VNFCInstance vnfcInstance_new = null; boolean found = false; for (VirtualDeploymentUnit virtualDeploymentUnit : virtualNetworkFunctionRecord.getVdu()) { for (VNFCInstance vnfcInstance : virtualDeploymentUnit.getVnfc_instance()) { if (vnfcInstance.getVnfComponent().getId().equals(component.getId())) { vnfcInstance_new = vnfcInstance; fillProvidesVNFC(virtualNetworkFunctionRecord, vnfcInstance); found = true; log.debug("VNFComponentInstance FOUND : " + vnfcInstance_new.getVnfComponent()); break; } } if (found) { break; } } return vnfcInstance_new; }
@Override @Async public Future<Void> release( VirtualDeploymentUnit virtualDeploymentUnit, VNFCInstance vnfcInstance) throws VimException, ExecutionException, InterruptedException, PluginException { BaseVimInstance vimInstance = vimInstanceRepository.findFirstById(vnfcInstance.getVim_id()); org.openbaton.nfvo.vim_interfaces.resource_management.ResourceManagement vim = vimBroker.getVim(vimInstance.getType()); log.debug("Removing vnfcInstance: " + vnfcInstance); vim.release(vnfcInstance, vimInstance).get(); virtualDeploymentUnit.getVnfc().remove(vnfcInstance.getVnfComponent()); return new AsyncResult<>(null); }
log.debug("Launched VM with id: " + instance.getVc_id()); Map<String, String> floatingIps = new HashMap<>(); for (VNFDConnectionPoint connectionPoint : instance.getVnfComponent().getConnection_point()) { if (connectionPoint.getFloatingIp() != null) floatingIps.put(
log.debug("Launched VM with id: " + vnfc.getVc_id()); Map<String, String> floatingIps = new HashMap<>(); for (VNFDConnectionPoint connectionPoint : vnfc.getVnfComponent().getConnection_point()) { if (connectionPoint.getFloatingIp() != null) floatingIps.put(
vnfcInstance_nfvo.setVim_id(vnfcInstance_manager.getVim_id()); vnfcInstance_nfvo.setVc_id(vnfcInstance_manager.getVc_id()); vnfcInstance_nfvo.setVnfComponent(vnfcInstance_manager.getVnfComponent()); vnfcInstance_nfvo.setConnection_point( updateVNFDConnectionPoints(
virtualNetworkFunctionRecord.getVnf_address().remove(ip.getIp()); virtualDeploymentUnit.getVnfc().remove(vnfcInstance.getVnfComponent()); virtualDeploymentUnit.getVnfc_instance().remove(vnfcInstance);
boolean found = false; for (VNFCInstance vnfcInstance : virtualDeploymentUnit.getVnfc_instance()) { if (vnfComponent.getId().equals(vnfcInstance.getVnfComponent().getId())) { found = true; break;