/** * @see com.att.cdp.zones.ComputeService#releaseIpAddress(java.lang.String, java.lang.String) */ @SuppressWarnings("nls") @Override public void releaseIpAddress(String serverId, String address) throws ZoneException { checkArg(serverId, "serverId"); checkArg(address, "address"); connect(); trackRequest(); RequestState.put(RequestState.SERVER, serverId); RequestState.put(RequestState.IPADDRESS, address); RequestState.put(RequestState.SERVICE, "Compute"); RequestState.put(RequestState.SERVICE_URL, nova.getEndpoint()); try { nova.getClient().servers().disassociateFloatingIp(serverId, address).execute(); } catch (OpenStackBaseException ex) { ExceptionMapper.mapException(ex); } }
/** * @see com.att.cdp.zones.ComputeService#releaseIpAddress(java.lang.String, * java.lang.String) */ @SuppressWarnings("nls") @Override public void releaseIpAddress(String serverId, String address) throws ZoneException { checkArg(serverId, "serverId"); checkArg(address, "address"); connect(); Context context = getContext(); trackRequest(); RequestState.put(RequestState.SERVER, serverId); RequestState.put(RequestState.IPADDRESS, address); RequestState.put(RequestState.SERVICE, "Compute"); RequestState.put(RequestState.SERVICE_URL, nova.getEndpoint()); try { nova.getClient().servers() .disassociateFloatingIp(serverId, address).execute(); } catch (OpenStackBaseException ex) { ExceptionMapper.mapException(ex); } }