+ RestMessages.SERVICEUNAVAILABLE.toString()); OpenDoveServiceAppliance dgwAppliance = sbInterface.getDoveServiceAppliance(odgwUUID);
+ RestMessages.SERVICEUNAVAILABLE.toString()); OpenDoveServiceAppliance dgwAppliance = sbInterface.getDoveServiceAppliance(odgwUUID);
OpenDoveServiceAppliance dgwAppliance = sbInterface.getDoveServiceAppliance(odgwUUID); if (!sbInterface.applianceExists(odgwUUID)) { throw new ResourceNotFoundException("oDGW doesn't exist");
throw new ResourceNotFoundException("service appliance doesn't exist"); return Response.status(200).entity(new OpenDoveServiceApplianceRequest(sbInterface.getDoveServiceAppliance(saUUID))).build();
throw new ResourceNotFoundException("Service appliance doesn't exist"); OpenDoveServiceAppliance appliance = sbInterface.getDoveServiceAppliance(saUUID); if (appliance.get_isDCS() || appliance.get_isDGW()) { throw new ResourceConflictException("cannot delete role assigned service appliance");
OpenDoveServiceAppliance dcsAppliance = sbInterface.getDoveServiceAppliance(dsaUUID); if (delta.get_isDCS() == null) throw new BadRequestException("request missing required field"); return Response.status(200).entity(new OpenDoveServiceApplianceRequest(sbInterface.getDoveServiceAppliance(dsaUUID))).build(); } else return Response.status(http_response).build(); return Response.status(200).entity(new OpenDoveServiceApplianceRequest(sbInterface.getDoveServiceAppliance(dsaUUID))).build(); } else return Response.status(http_response).build();
OpenDoveServiceAppliance dgwAppliance = sbInterface.getDoveServiceAppliance(odgwUUID); if (!dgwAppliance.get_canBeDGW()) return Response.status(200).entity(new OpenDoveServiceApplianceRequest(sbInterface.getDoveServiceAppliance(odgwUUID))).build();
public static void tombstoneEGWs( IfOpenDoveServiceApplianceCRUD serviceApplianceDB, IfSBDoveGwIpv4CRUD gatewayIPDB, NeutronSubnet subnet, OpenDoveNetwork network) { for (OpenDoveGwIpv4 gwIP: gatewayIPDB.getGwIpv4Pool()) { if (subnet.isValidIP(gwIP.getIP())) { subnet.releaseIP(gwIP.getIP()); gwIP.setTombstoneFlag(true); gatewayIPDB.updateGwIpv4(gwIP); network.removeEGW(serviceApplianceDB.getDoveServiceAppliance(gwIP.getGWUUID())); } } } }
OpenDoveServiceAppliance dgwAppliance = sbInterface.getDoveServiceAppliance(odgwUUID); if (!dgwAppliance.get_canBeDGW()) { throw new BadRequestException("can't apply action to specified appliance");