Search in sources :

Example 1 with NetworkClusterParameters

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);
}
Also used : NetworkClusterParameters(org.ovirt.engine.core.common.action.NetworkClusterParameters) Network(org.ovirt.engine.core.common.businessentities.network.Network)

Example 2 with 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();
}
Also used : NetworkClusterParameters(org.ovirt.engine.core.common.action.NetworkClusterParameters)

Aggregations

NetworkClusterParameters (org.ovirt.engine.core.common.action.NetworkClusterParameters)2 Network (org.ovirt.engine.core.common.businessentities.network.Network)1