use of org.ovirt.engine.core.common.action.ImportExternalNetworkParameters in project ovirt-engine by oVirt.
the class BaseImportNetworksModel method onImport.
public void onImport() {
if (!validate()) {
return;
}
List<ActionParametersBase> multipleActionParameters = new LinkedList<>();
for (final ExternalNetwork externalNetwork : importedNetworks.getItems()) {
final Network network = externalNetwork.getNetwork();
final Guid dcId = externalNetwork.getDataCenters().getSelectedItem().getId();
ImportExternalNetworkParameters params = new ImportExternalNetworkParameters(network.getProvidedBy().getProviderId(), network.getProvidedBy().getExternalId(), dcId, externalNetwork.isPublicUse(), true);
multipleActionParameters.add(params);
}
Frontend.getInstance().runMultipleActions(ActionType.ImportExternalNetwork, multipleActionParameters, result -> sourceListModel.getSearchCommand().execute());
cancel();
}
Aggregations