Search in sources :

Example 1 with NetworkUpdate

use of com.emc.storageos.model.varray.NetworkUpdate in project coprhd-controller by CoprHD.

the class VirtualArrays method updateNetworks.

/**
 * Updates the given networks with the virtual array assignment changes.
 *
 * @param ids
 *            the network IDs.
 * @param changes
 *            the virtual array changes.
 */
private static void updateNetworks(List<URI> ids, VirtualArrayAssignmentChanges changes) {
    if (ids.isEmpty()) {
        return;
    }
    List<NetworkRestRep> networks = NetworkUtils.getNetworks(ids);
    for (NetworkRestRep network : networks) {
        NetworkUpdate update = new NetworkUpdate();
        update.setVarrayChanges(changes);
        NetworkUtils.update(network.getId(), update);
    }
}
Also used : NetworkRestRep(com.emc.storageos.model.varray.NetworkRestRep) NetworkUpdate(com.emc.storageos.model.varray.NetworkUpdate)

Aggregations

NetworkRestRep (com.emc.storageos.model.varray.NetworkRestRep)1 NetworkUpdate (com.emc.storageos.model.varray.NetworkUpdate)1