@Override public String getEventDescription() { return "creating Physical Network. Id: " + getEntityId(); }
@Override public String getEventDescription() { return "Update storage ip range " + getId() + " [StartIp=" + getStartIp() + ", EndIp=" + getEndIp() + ", vlan=" + getVlan() + ", netmask=" + getNetmask() + ']'; }
@Override public String getEventDescription() { return "Adding physical network ServiceProvider: " + getEntityId(); }
@Override public String getEventDescription() { return "Creating management ip range from " + getStartIp() + " to " + getEndIp() + " and gateway=" + getGateWay() + ", netmask=" + getNetmask() + " of pod=" + getPodId(); }
@Override public void create() throws ResourceAllocationException { PhysicalNetwork result = _networkService.createPhysicalNetwork(getZoneId(), getVlan(), getNetworkSpeed(), getIsolationMethods(), getBroadcastDomainRange(), getDomainId(), getTags(), getNetworkName()); if (result != null) { setEntityId(result.getId()); setEntityUuid(result.getUuid()); } else { throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Failed to create physical network entity"); } }
@Override public String getEventDescription() { return "Deleting management ip range from " + getStartIp() + " to " + getEndIp() + " of Pod: " + getPodId(); }
@Override public String getEventDescription() { return "Creating storage ip range from " + getStartIp() + " to " + getEndIp() + " with vlan " + getVlan(); }
@Override public void execute() { PhysicalNetwork result = _networkService.updatePhysicalNetwork(getId(), getNetworkSpeed(), getTags(), getVlan(), getState()); if (result != null) { PhysicalNetworkResponse response = _responseGenerator.createPhysicalNetworkResponse(result); response.setResponseName(getCommandName()); this.setResponseObject(response); } }
@Override public void create() throws ResourceAllocationException { PhysicalNetworkServiceProvider result = _networkService.addProviderToPhysicalNetwork(getPhysicalNetworkId(), getProviderName(), getDestinationPhysicalNetworkId(), getEnabledServices()); if (result != null) { setEntityId(result.getId()); setEntityUuid(result.getUuid()); } else { throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Failed to add service provider entity to physical network"); } }
@Override public List<StorageNetworkIpRange> listIpRange(ListStorageNetworkIpRangeCmd cmd) { Long rangeId = cmd.getRangeId(); Long podId = cmd.getPodId(); Long zoneId = cmd.getZoneId(); List result = null; if (rangeId != null) { result = _sNwIpRangeDao.listByRangeId(rangeId); } else if (podId != null) { result = _sNwIpRangeDao.listByPodId(podId); } else if (zoneId != null) { result = _sNwIpRangeDao.listByDataCenterId(zoneId); } else { result = _sNwIpRangeDao.listAll(); } return result; }
@Override public String getEventDescription() { return "Deleting storage ip range " + getId(); }
public String getServicePackageId() { Map<String, String> data = getDetails(); if (data == null) return null; return data.get(NetworkOffering.Detail.servicepackageuuid+ ""); }
@Override public boolean deleteNetworkDevice(DeleteNetworkDeviceCmd cmd) { HostVO device = _hostDao.findById(cmd.getId()); return true; } }
@Override public void execute() { boolean result = _configService.deleteNetworkOffering(this); if (result) { SuccessResponse response = new SuccessResponse(getCommandName()); this.setResponseObject(response); } else { throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Failed to delete service offering"); } } }
@Override public String getEventDescription() { return "Deleting Physical network ServiceProvider: " + getId(); }
@Override public String getEventDescription() { return "Updating physical network ServiceProvider: " + getId(); }
@Override public String getEventDescription() { return "Updating Physical network: " + getId(); }
@Override public String getEventDescription() { return "Deleting Physical network: " + getId(); }
@Override public String getEventDescription() { return "Migrating vpc: " + getId() + " to new vpc offering (" + vpcOfferingId + ")"; }
@Override public Host addNetworkDevice(AddNetworkDeviceCmd cmd) { Map paramList = cmd.getParamList(); if (paramList == null) { throw new CloudRuntimeException("Parameter list is null"); } Collection paramsCollection = paramList.values(); HashMap params = (HashMap)(paramsCollection.toArray())[0]; return null; }