use of org.ovirt.engine.core.common.action.NetworkClusterParameters in project ovirt-engine by oVirt.
the class ClusterNetworkListModel method setAsDisplay.
public void setAsDisplay() {
final Network network = (Network) Cloner.clone(getSelectedItem());
network.getCluster().setDisplay(true);
final NetworkClusterParameters networkClusterParameters = new NetworkClusterParameters(network.getCluster());
Frontend.getInstance().runAction(ActionType.UpdateNetworkOnCluster, networkClusterParameters);
}
use of org.ovirt.engine.core.common.action.NetworkClusterParameters in project ovirt-engine by oVirt.
the class BackendClusterNetworkResource method update.
@Override
public Network update(Network incoming) {
org.ovirt.engine.core.common.businessentities.network.Network network = map(incoming, map(get()));
network.getCluster().setNetworkId(network.getId());
network.getCluster().setClusterId(cluster.getCluster().getId());
performAction(ActionType.UpdateNetworkOnCluster, new NetworkClusterParameters(network.getCluster()));
return get();
}
Aggregations