public static void updatePortAssociations(NetworkLite network,List<StoragePort> ports,DbClient dbClient){
  Set<String> varraySet=new HashSet<String>(network.getAssignedVirtualArrays());
  for (  StoragePort port : ports) {
    port.setNetwork(network.getId());
    port.replaceConnectedVirtualArray(varraySet);
    _log.info("Setting the connected virtual arrays for added port {} to {}",port.getPortNetworkId(),varraySet);
  }
  dbClient.updateAndReindexObject(ports);
}

public static void updatePortAssociations ( NetworkLite network , List < StoragePort > ports , DbClient dbClient ) { Set < String > varraySet = new HashSet < String > ( network . getAssignedVirtualArrays ( ) ) ; for ( StoragePort port : ports ) { port . setNetwork ( network . getId ( ) ) ; port . replaceConnectedVirtualArray ( varraySet ) ; _log . info ( "Setting the connected virtual arrays for added port {} to {}" , port . getPortNetworkId ( ) , varraySet ) ; } dbClient . updateAndReindexObject ( ports ) ; }
for a list of storage ports in a network , update the ports ' implicit ( connected ) varray associations .
