+ RestMessages.SERVICEUNAVAILABLE.toString()); if (!portInterface.portExists(portUUID)) { throw new ResourceNotFoundException("port UUID does not exist.");
if (!portInterface.portExists(portUUID)) { throw new ResourceNotFoundException("port UUID does not exist.");
if (!portInterface.portExists(portUUID)) { throw new ResourceNotFoundException("port UUID does not exist.");
if (port_id != null) { if (!portInterface.portExists(port_id)) throw new ResourceNotFoundException("Port UUID doesn't exist."); NeutronPort port = portInterface.getPort(port_id);
throw new BadRequestException("network UUID musy be specified"); if (portInterface.portExists(singleton.getID())) { throw new BadRequestException("port UUID already exists"); if (portInterface.portExists(test.getID())) { throw new BadRequestException("port UUID already exists");
if (port_id != null) { if (!portInterface.portExists(port_id)) throw new ResourceNotFoundException("Port UUID doesn't exist."); NeutronPort port = portInterface.getPort(port_id);