Exemplo n.º 1
0
 def __init__(
         self,
         id=None,
         name=None,
         systemVersionName=None,
         primaryMdmActorIpList=None,  #List
         primaryMdmActorPort=None,
         secondaryMdmActorIpList=None,  #List
         secondaryMdmActorPort=None,
         tiebreakerMdmIpList=None,  #List
         tiebreakerMdmPort=None,  # This one is defined in ScaleIO 1.30 API, but seem not present in 1.31??
         tiebreakerMdmActorPort=None,
         mdmMode=None,  #Single or Cluster
         mdmClusterState=None,  # NotClustered or ClusteredNormal or ClusteredDegraded or ClusteredTiebreakerDown or ClusteredDegradedTiebreakerDown
         mdmManagementIpList=None,  # List
         mdmManagementPort=None,
         capacityAlertHighThresholdPercent=None,
         capacityAlertCriticalThresholdPercent=None,
         installId=None,
         swid=None,  # This one seem not to return anything. Its define din 1.30. What about 1.31????
         daysInstalled=None,
         maxCapacityInGb=None,
         capacityTimeLeftInDays=None,
         enterpriseFeaturesEnabled=None,
         defaultIsVolumeObfuscated=None,
         isInitialLicense=None,
         restrictedSdcModeEnabled=None,
         remoteReadOnlyLimitState=None,
         links=None):
     self.id = id
     self.name = None
     self.system_version_name = systemVersionName
     self.primary_mdm_actor_ip_list = []
     for ip in primaryMdmActorIpList:
         self.primary_mdm_actor_ip_list.append(ip)
     self.primary_mdm_actor_port = primaryMdmActorPort
     self.secondary_mdm_actor_ip_list = secondaryMdmActorIpList
     self.secondary_mdm_actor_port = secondaryMdmActorPort
     self.tiebreaker_mdm_ip_list = tiebreakerMdmIpList
     self.tiebreaker_mdm_port = tiebreakerMdmPort
     self.tiebreaker_mdm_actor_port = tiebreakerMdmPort
     self.mdm_mode = mdmMode
     self.mdm_cluster_state = mdmClusterState
     self.mdm_management_ip_list = mdmManagementIpList
     self.mdm_management_port = mdmManagementPort
     self.capacity_alert_high_threshold_percent = capacityAlertHighThresholdPercent
     self.capacity_alert_critical_threshold_percent = capacityAlertCriticalThresholdPercent
     self.install_id = installId
     self.swid = swid
     self.days_installed = daysInstalled
     self.max_capacity_in_gb = maxCapacityInGb
     self.capacity_time_left_in_days = capacityTimeLeftInDays
     self.enterprise_features_enabled = enterpriseFeaturesEnabled
     self.default_is_volume_obfuscated = defaultIsVolumeObfuscated
     self.is_initial_license = isInitialLicense
     self.restricted_sdc_mode_enabled = restrictedSdcModeEnabled
     self.remote_readonly_limit_state = remoteReadOnlyLimitState
     self.links = []
     for link in links:
         self.links.append(SIO_Link(link['href'], link['rel']))
Exemplo n.º 2
0
 def __init__(self,
              id=None,
              links=None,
              name=None,
              overallIoNetworkThrottlingEnabled=None,
              overallIoNetworkThrottlingInKbps=None,
              protectionDomainState=None,
              rebalanceNetworkThrottlingEnabled=None,
              rebalanceNetworkThrottlingInKbps=None,
              rebuildNetworkThrottlingEnabled=None,
              rebuildNetworkThrottlingInKbps=None,
              systemId=None):
     self.id = id
     self.links = []
     for link in links:
         self.links.append(SIO_Link(link['href'], link['rel']))
     self.name = name
     self.overall_network_throttle_enabled = overallIoNetworkThrottlingEnabled
     self.overall_network_throttle_kbps = overallIoNetworkThrottlingInKbps
     self.protection_domain_state = protectionDomainState
     self.rebalance_network_throttle_enabled = rebalanceNetworkThrottlingEnabled
     self.rebalance_network_throttle_kbps = rebalanceNetworkThrottlingInKbps
     self.rebuild_network_throttle_enabled = rebuildNetworkThrottlingEnabled
     self.rebuild_network_throttle_kbps = rebuildNetworkThrottlingInKbps
     self.system_id = systemId
Exemplo n.º 3
0
 def __init__(self,
              ancestorVolumeId=None,
              consistencyGroupId=None,
              creationTime=None,
              id=None,
              isObfuscated=None,
              links=False,
              mappedScsiInitiatorInfo=None,
              mappedSdcInfo=None,
              mappingToAllSdcsEnabled=None,
              name=None,
              sizeInKb=0,
              storagePoolId=None,
              useRmcache=False,
              volumeType=None,
              vtreeId=None
 ):
     self.id = id
     self.links = []
     for link in links:
         self.links.append(SIO_Link(link['href'], link['rel']))
     self.ancestor_volume = ancestorVolumeId
     self.consistency_group_id=consistencyGroupId
     self.creation_time=time.gmtime(creationTime)
     self.id=id
     self.name = name
     self.is_obfuscated = isObfuscated
     self.mapped_scsi_initiators = mappedScsiInitiatorInfo
     self.mapped_sdcs = mappedSdcInfo
     self.size_kb = sizeInKb
     self.storage_pool_id = storagePoolId
     self.use_cache = useRmcache
     self.volume_type = volumeType
     self.vtree_id = vtreeId
     self.mappingToAllSdcsEnabled = mappingToAllSdcsEnabled
Exemplo n.º 4
0
 def __init__(
         self,
         id=None,
         name=None,
         links=None,
         sparePercentage=None,
         rebuildEnabled=None,
         rebalanceEnabled=None,
         rebuildIoPriorityPolicy=None,  #unlimited or limitNumOfConcurrentIos or favorAppIos or dynamicBwThrottling
         rebalanceIoPriorityPolicy=None,
         rebuildIoPriorityNumOfConcurrentIosPerDevice=None,
         rebalanceIoPriorityNumOfConcurrentIosPerDevice=None,
         rebuildIoPriorityBwLimitPerDeviceInKbps=None,
         rebalanceIoPriorityBwLimitPerDeviceInKbps=None,
         rebuildIoPriorityAppIopsPerDeviceThreshold=None,
         rebalanceIoPriorityAppIopsPerDeviceThreshold=None,
         rebuildIoPriorityAppBwPerDeviceThresholdInKbps=None,
         rebalanceIoPriorityAppBwPerDeviceThresholdInKbps=None,
         rebuildIoPriorityQuietPeriodInMsec=None,
         rebalanceIoPriorityQuietPeriodInMsec=None,
         numOfParallelRebuildRebalanceJobsPerDevice=None,
         protectionDomainId=None,
         zeroPaddingEnabled=None,
         useRmcache=None,
         rmcacheWriteHandlingMode=None,  #Passthrough or Cached
         # v1.32 specific
     backgroundScannerMode=None,
         backgroundScannerBWLimitKBps=None):
     self.id = id
     self.name = name
     self.links = []
     for link in links:
         self.links.append(SIO_Link(link['href'], link['rel']))
     self.spare_percentage = sparePercentage
     self.rebuild_enabled = rebuildEnabled
     self.rebalance_enabled = rebalanceEnabled
     self.revuild_io_prioroti_policy = rebuildIoPriorityPolicy  #unlimited or limitNumOfConcurrentIos or favorAppIos or dynamicBwThrottling
     self.rebalance_prioritiy_policy = rebalanceIoPriorityPolicy
     self.rebuild_io_prioroity_num_of_concurrent_ios_per_device = rebuildIoPriorityNumOfConcurrentIosPerDevice
     self.rebalance_io_priority_num_of_concurrent_ios_per_device = rebalanceIoPriorityNumOfConcurrentIosPerDevice
     self.revuild_io_priority_bw_limits_per_device_in_kbps = rebuildIoPriorityBwLimitPerDeviceInKbps
     self.rebalance_io_priority_bw_limit_per_device_in_kbps = rebalanceIoPriorityBwLimitPerDeviceInKbps
     self.rebuild_io_priority_app_iops_per_device_threshold = rebuildIoPriorityAppIopsPerDeviceThreshold
     self.rebalance_io_priority_app_iops_per_devicE_threshold = rebalanceIoPriorityAppIopsPerDeviceThreshold
     self.rebuild_io_priority_app_bw_per_device_threshold_in_kbps = rebuildIoPriorityAppBwPerDeviceThresholdInKbps
     self.rebalance_priority_apps_bw_per_device_threshold_in_kbps = rebalanceIoPriorityAppBwPerDeviceThresholdInKbps
     self.rebuild_io_priority_quite_period_in_msec = rebuildIoPriorityQuietPeriodInMsec
     self.reabalance_io_priority_quiet_period_in_msec = rebalanceIoPriorityQuietPeriodInMsec
     self.num_of_parallel_rebuild_rebalance_job_per_device = numOfParallelRebuildRebalanceJobsPerDevice
     self.protection_domain_id = protectionDomainId
     self.zero_padding_enabled = zeroPaddingEnabled
     self.use_rm_cache = useRmcache
     self.rmcache_write_handling_mode = rmcacheWriteHandlingMode
     # v1.32 specific
     self.backgroundScanneMode = backgroundScannerMode
     self.backgroundScannerBWLimitKBps = backgroundScannerBWLimitKBps
Exemplo n.º 5
0
 def __init__(self,
              id=None,
              name=None,
              protectionDomainId=None,
              links=None):
     self.id = id
     self.name = name
     self.protectionDomainId = protectionDomainId
     self.links = []
     for link in links:
         self.links.append(SIO_Link(link['href'], link['rel']))
Exemplo n.º 6
0
 def __init__(self,
              id=None,
              name=None,
              baseVolumeId=None,
              storagePoolId=None,
              links=None):
     self.id = id
     self.name = name
     self.baseVolumeId = baseVolumeId
     self.storagePoolId = storagePoolId
     self.links = []
     for link in links:
         self.links.append(SIO_Link(link['href'], link['rel']))
Exemplo n.º 7
0
    def __init__(self,
                 id=None,
                 links=None,
                 mdmConnectionState=None,
                 name=None,
                 onVmWare=None,
                 sdcApproved=False,
                 sdcGuid=None,
                 sdcIp=None,
                 systemId=None):

        self.id = id
        self.name = name
        self.mdmConnectionState = mdmConnectionState
        self.sdcIp = sdcIp
        self.guid = sdcGuid
        self.links = []
        for link in links:
            self.links.append(SIO_Link(link['href'], link['rel']))
Exemplo n.º 8
0
 def __init__(self,
              drlMode=None,
              ipList=None,
              faultSetId=None,
              id=None,
              links=None,
              mdmConnectionState=None,
              membershipState=None,
              name=None,
              numOfIoBuffers=None,
              onVmWare=None,
              port=None,
              protectionDomainId=None,
              rmcacheEnabled=None,
              rmcacheFrozen=None,
              rmcacheMemoryAllocationState=None,
              rmcacheSizeInKb=None,
              sdsState=None):
     self.drl_mode = drlMode
     self.ip_list = []
     for ip in ipList:
         self.ip_list.append(SIO_IP_List(ip['ip'], ip['role']))
     self.fault_set_id = faultSetId
     self.id = id
     self.links = []
     for link in links:
         self.links.append(SIO_Link(link['href'], link['rel']))
     self.mdm_connection_state = mdmConnectionState
     self.membership_state = membershipState
     self.name = name
     self.number_io_buffers = int(numOfIoBuffers)
     self.on_vmware = onVmWare
     self.port = port
     self.protection_domain_id = protectionDomainId
     self.rm_cache_enabled = rmcacheEnabled
     self.rm_cache_frozen = rmcacheFrozen
     self.rm_cachem_memory_allocation = rmcacheMemoryAllocationState
     self.rm_cache_size_kb = rmcacheSizeInKb
     self.sds_state = sdsState