Ejemplo n.º 1
0
def GetVsanVcMos(vcStub, context=None):
    vsanStub = GetVsanVcStub(vcStub, context)
    vcMos = {
        'vsan-disk-management-system':
        vim.cluster.VsanVcDiskManagementSystem('vsan-disk-management-system',
                                               vsanStub),
        'vsan-stretched-cluster-system':
        vim.cluster.VsanVcStretchedClusterSystem(
            'vsan-stretched-cluster-system', vsanStub),
        'vsan-cluster-config-system':
        vim.cluster.VsanVcClusterConfigSystem('vsan-cluster-config-system',
                                              vsanStub),
        'vsan-performance-manager':
        vim.cluster.VsanPerformanceManager('vsan-performance-manager',
                                           vsanStub),
        'vsan-cluster-health-system':
        vim.cluster.VsanVcClusterHealthSystem('vsan-cluster-health-system',
                                              vsanStub),
        'vsan-upgrade-systemex':
        vim.VsanUpgradeSystemEx('vsan-upgrade-systemex', vsanStub),
        'vsan-cluster-space-report-system':
        vim.cluster.VsanSpaceReportSystem('vsan-cluster-space-report-system',
                                          vsanStub),
        'vsan-cluster-object-system':
        vim.cluster.VsanObjectSystem('vsan-cluster-object-system', vsanStub),
    }

    return vcMos
def GetVsanVcMos(vcStub, context=None, version=VSAN_VMODL_VERSION):
    vsanStub = GetVsanVcStub(vcStub, context, version=version)
    vcMos = {
        'vsan-disk-management-system':
        vim.cluster.VsanVcDiskManagementSystem('vsan-disk-management-system',
                                               vsanStub),
        'vsan-stretched-cluster-system':
        vim.cluster.VsanVcStretchedClusterSystem(
            'vsan-stretched-cluster-system', vsanStub),
        'vsan-cluster-config-system':
        vim.cluster.VsanVcClusterConfigSystem('vsan-cluster-config-system',
                                              vsanStub),
        'vsan-performance-manager':
        vim.cluster.VsanPerformanceManager('vsan-performance-manager',
                                           vsanStub),
        'vsan-cluster-health-system':
        vim.cluster.VsanVcClusterHealthSystem('vsan-cluster-health-system',
                                              vsanStub),
        'vsan-upgrade-systemex':
        vim.VsanUpgradeSystemEx('vsan-upgrade-systemex', vsanStub),
        'vsan-cluster-space-report-system':
        vim.cluster.VsanSpaceReportSystem('vsan-cluster-space-report-system',
                                          vsanStub),
        'vsan-cluster-object-system':
        vim.cluster.VsanObjectSystem('vsan-cluster-object-system', vsanStub),
        'vsan-cluster-iscsi-target-system':
        vim.cluster.VsanIscsiTargetSystem('vsan-cluster-iscsi-target-system',
                                          vsanStub),
        'vsan-vcsa-deployer-system':
        vim.host.VsanVcsaDeployerSystem('vsan-vcsa-deployer-system', vsanStub),
        'vsan-vds-system':
        vim.vsan.VsanVdsSystem('vsan-vds-system', vsanStub),
        'vsan-vc-capability-system':
        vim.cluster.VsanCapabilitySystem('vsan-vc-capability-system',
                                         vsanStub),
        'vsan-mass-collector':
        vim.VsanMassCollector('vsan-mass-collector', vsanStub),
        'vsan-phonehome-system':
        vim.VsanPhoneHomeSystem('vsan-phonehome-system', vsanStub),
        'vsan-vum-system':
        vim.cluster.VsanVumSystem('vsan-vum-system', vsanStub),
        'vsan-cluster-resource-check-system':
        vim.vsan.VsanResourceCheckSystem('vsan-cluster-resource-check-system',
                                         vsanStub),
        'cns-volume-manager':
        vim.cns.VolumeManager('cns-volume-manager', vsanStub),
    }

    return vcMos