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);
}
}
Aggregations