@Override public CiscoAsa1000vResourceResponse createCiscoAsa1000vResourceResponse( CiscoAsa1000vDevice ciscoAsa1000vDeviceVO) { CiscoAsa1000vResourceResponse response = new CiscoAsa1000vResourceResponse(); response.setId(ciscoAsa1000vDeviceVO.getUuid()); response.setManagementIp(ciscoAsa1000vDeviceVO.getManagementIp()); response.setInPortProfile(ciscoAsa1000vDeviceVO.getInPortProfile()); NetworkAsa1000vMapVO networkAsaMap = _networkAsa1000vMapDao.findByAsa1000vId(ciscoAsa1000vDeviceVO.getId()); if (networkAsaMap != null) { response.setGuestNetworkId(networkAsaMap.getNetworkId()); } return response; }
private void unassignAsa1000vFromNetwork(Network network) { NetworkAsa1000vMapVO networkAsaMap = _networkAsa1000vMapDao.findByNetworkId(network.getId()); if (networkAsaMap != null) { _networkAsa1000vMapDao.remove(networkAsaMap.getId()); } }