while (i.hasNext()) { NeutronRouter oSS = i.next(); if ((queryID == null || queryID.equals(oSS.getID())) && (queryName == null || queryName.equals(oSS.getName())) && (queryAdminStateUp == null || queryAdminStateUp.equals(oSS.getAdminStateUp())) &&
if (routerInterface.routerExists(singleton.getID())) throw new BadRequestException("router UUID already exists"); if (singleton.getExternalGatewayInfo() != null) {
if (singleton.getID() != null || singleton.getTenantID() != null || singleton.getStatus() != null) throw new BadRequestException("Request attribute change not allowed");
throw new ResourceNotFoundException("Port UUID not found"); input.setPortUUID(port.getID()); input.setID(target.getID()); input.setTenantID(target.getTenantID()); input.setID(target.getID()); input.setTenantID(target.getTenantID()); Object[] instances = ServiceHelper.getGlobalInstances(INeutronRouterAware.class, this, null); throw new ServiceUnavailableException("Couldn't get providers list. Please try again later"); input.setID(target.getID()); input.setTenantID(target.getTenantID()); if (instances != null) {