use of org.ovirt.engine.core.common.businessentities.network.ExternalSubnet in project ovirt-engine by oVirt.
the class AddNetworkWithSubnetOnProviderCommand method postAddNetwork.
@Override
protected void postAddNetwork(Guid providerId, String externalId) {
ExternalSubnet externalSubnet = getParameters().getExternalSubnet();
if (externalSubnet != null) {
AddExternalSubnetParameters subnetParameters = new AddExternalSubnetParameters(externalSubnet, providerId, externalId);
backend.runInternalMultipleActions(ActionType.AddSubnetToProvider, Arrays.asList(subnetParameters));
}
}
use of org.ovirt.engine.core.common.businessentities.network.ExternalSubnet in project ovirt-engine by oVirt.
the class RemoveExternalSubnetModel method onRemove.
private void onRemove() {
ArrayList<ActionParametersBase> list = new ArrayList<>();
for (ExternalSubnet subnet : getSubnets()) {
ActionParametersBase parameters = new ExternalSubnetParameters(subnet);
list.add(parameters);
}
startProgress();
Frontend.getInstance().runMultipleAction(ActionType.RemoveSubnetFromProvider, list, false, result -> {
stopProgress();
sourceListModel.getSearchCommand().execute();
cancel();
}, null);
}
Aggregations