private void zonesetClone(MDSDialog dialog,Integer vsanId,Zoneset activeZoneset){
  boolean doZonesetClone=true;
  boolean allowZonesIfZonesetCloneFails=true;
  try {
    doZonesetClone=Boolean.valueOf(ControllerUtils.getPropertyValueFromCoordinator(_coordinator,"controller_mds_clone_zoneset"));
    allowZonesIfZonesetCloneFails=Boolean.valueOf(ControllerUtils.getPropertyValueFromCoordinator(_coordinator,"controller_mds_allow_zoneset_commit"));
  }
 catch (  Exception e) {
    _log.warn("Zoneset clone properties not set");
  }
  if (doZonesetClone) {
    _log.info(String.format("Cloning zoneset %s",activeZoneset.getName()));
    try {
      dialog.zonesetClone(vsanId,activeZoneset.getName());
    }
 catch (    NetworkDeviceControllerException nde) {
      _log.info("Failed to create zoneset clone. Reason : ",nde.getMessage());
      if (!allowZonesIfZonesetCloneFails) {
        throw nde;
      }
    }
  }
 else {
    _log.info(String.format("controller_mds_clone_zoneset is false, NOT Cloning zoneset %s",activeZoneset.getName()));
  }
}

private void zonesetClone ( MDSDialog dialog , Integer vsanId , Zoneset activeZoneset ) { boolean doZonesetClone = true ; boolean allowZonesIfZonesetCloneFails = true ; try { doZonesetClone = Boolean . valueOf ( ControllerUtils . getPropertyValueFromCoordinator ( _coordinator , "controller_mds_clone_zoneset" ) ) ; allowZonesIfZonesetCloneFails = Boolean . valueOf ( ControllerUtils . getPropertyValueFromCoordinator ( _coordinator , "controller_mds_allow_zoneset_commit" ) ) ; } catch ( Exception e ) { _log . warn ( "Zoneset clone properties not set" ) ; } if ( doZonesetClone ) { _log . info ( String . format ( "Cloning zoneset %s" , activeZoneset . getName ( ) ) ) ; try { dialog . zonesetClone ( vsanId , activeZoneset . getName ( ) ) ; } catch ( NetworkDeviceControllerException nde ) { _log . info ( "Failed to create zoneset clone. Reason : " , nde . getMessage ( ) ) ; if ( ! allowZonesIfZonesetCloneFails ) { throw nde ; } } } else { _log . info ( String . format ( "controller_mds_clone_zoneset is false, NOT Cloning zoneset %s" , activeZoneset . getName ( ) ) ) ; } }
perform a " zoneset clone " of the zoneset in the zoning operation
