示例#1
0
            description: Whether any of the initiator's port flags are
                         overridden.
            type: bool
        type:
            description: Type of initiator of the hosts of the host group.
            type: str
'''

import re
import copy
import logging
from ansible.module_utils.basic import AnsibleModule
from ansible_collections.dellemc.powermax.plugins.module_utils.storage.dell \
    import utils

LOG = utils.get_logger('hostgroup')

HAS_PYU4V = utils.has_pyu4v_sdk()

PYU4V_VERSION_CHECK = utils.pyu4v_version_check()

# Application Type
APPLICATION_TYPE = 'ansible_v1.8.0'

BASE_FLAGS = {'volume_set_addressing': {'enabled': False, 'override': False},
              'disable_q_reset_on_ua': {'enabled': False, 'override': False},
              'environ_set': {'enabled': False, 'override': False},
              'avoid_reset_broadcast': {'enabled': False, 'override': False},
              'openvms': {'enabled': False, 'override': False},
              'scsi_3': {'enabled': False, 'override': False},
              'spc2_protocol_version': {'enabled': False, 'override': False},
示例#2
0
                directorId:
                    description: Director ID of the port.
                    type: str
                portId:
                    description: Port number of the port.
                    type: str
        type:
            description: Type of ports in port group.
            type: str
'''

from ansible_collections.dellemc.powermax.plugins.module_utils.storage.dell \
    import utils
from ansible.module_utils.basic import AnsibleModule

LOG = utils.get_logger('portgroup')

HAS_PYU4V = utils.has_pyu4v_sdk()

PYU4V_VERSION_CHECK = utils.pyu4v_version_check()

# Application Type
APPLICATION_TYPE = 'ansible_v1.8.0'


class PortGroup(object):
    """Class with port group operations"""

    u4v_conn = None

    def __init__(self):
示例#3
0
    type: list
SnapshotPolicies:
    description: List of snapshot policies on the array.
    returned: When snapshot policy exists.
    type: list
Initiators:
    description: List of initiators on the array.
    returned: When initiator exists.
    type: list
'''

from ansible_collections.dellemc.powermax.plugins.module_utils.storage.dell \
    import utils
from ansible.module_utils.basic import AnsibleModule

LOG = utils.get_logger('info')

HAS_PYU4V = utils.has_pyu4v_sdk()
PYU4V_VERSION_CHECK = utils.pyu4v_version_check()

# Application Type
APPLICATION_TYPE = 'ansible_v1.8.0'


class Info(object):
    """Class with Gather Fact operations"""

    u4v_conn = None

    def __init__(self):
        """Define all the parameters required by this module"""
示例#4
0
        host:
            description: Host associated with the initiator.
            type: str
        hostGroup:
            description: Host groups associated with the initiator.
            type: list
        logged_in:
            description: States whether the initiator is logged in.
            type: bool
'''

from ansible_collections.dellemc.powermax.plugins.module_utils.storage.dell \
    import utils
from ansible.module_utils.basic import AnsibleModule

LOG = utils.get_logger('initiator')

HAS_PYU4V = utils.has_pyu4v_sdk()
PYU4V_VERSION_CHECK = utils.pyu4v_version_check()

# Application Type
APPLICATION_TYPE = 'ansible_v1.8.0'


class Initiator(object):
    '''Class with initiator operations'''
    u4v_conn = None

    def __init__(self):
        ''' Define all parameters required by this module'''
        self.module_params = utils.get_powermax_management_host_parameters()
示例#5
0
        timestamp:
            description: Snapshot time stamp.
            type: str
        timestamp_utc:
            description: Snapshot time stamp specified in UTC.
            type: int
        tracks:
            description: Number of tracks.
            type: int
'''

from ansible.module_utils.basic import AnsibleModule
from ansible_collections.dellemc.powermax.plugins.module_utils.storage.dell \
    import utils

LOG = utils.get_logger('snapshot')

HAS_PYU4V = utils.has_pyu4v_sdk()

PYU4V_VERSION_CHECK = utils.pyu4v_version_check()

# Application Type
APPLICATION_TYPE = 'ansible_v1.8.0'


class Snapshot(object):
    """Class with Snapshot operations"""

    u4v_conn = None

    def __init__(self):
示例#6
0
            description: Primary symmetrix ID.
            type: str
        totalTracks:
            description: Total number of tracks in the volume.
            type: int
        volumeRdfTypes:
            description: RDF type of volume.
            type: str
'''

import logging
from ansible_collections.dellemc.powermax.plugins.module_utils.storage.dell \
    import utils
from ansible.module_utils.basic import AnsibleModule

LOG = utils.get_logger(module_name='srdf')

HAS_PYU4V = utils.has_pyu4v_sdk()

PYU4V_VERSION_CHECK = utils.pyu4v_version_check()

# Application Type
APPLICATION_TYPE = 'ansible_v1.8.0'


class SRDF(object):
    '''Class with srdf operations'''

    u4v_conn = None

    def __init__(self):
示例#7
0
    contains:
        serial_no:
            description: The PowerMax array on which storage pool resides
            returned: when array satisfies the given criteria
            type: str
        storage_pool:
            description: The ID of the storage pool
            returned: when storage pool exists satisfying the given criteria
            type: str
'''

from ansible_collections.dellemc.powermax.plugins.module_utils.storage.dell \
    import utils
from ansible.module_utils.basic import AnsibleModule

LOG = utils.get_logger('process_storage_pool_dict')

# Application Type
APPLICATION_TYPE = 'ansible_v1.8.0'


class ProcessPoolDict(object):
    """Class for performing various search or sort operations on list of
       storage pool dictionary  """
    def __init__(self):
        """ Define all parameters required by this module"""

        self.module_params = utils.get_u4v_unisphere_connection_parameters()
        self.module_params.update(get_process_dict_parameters())

        # initialize the ansible module
示例#8
0
                    type: bool
                volume_set_addressing:
                    description: Indicates whether Volume Vet Addressing is
                                 enabled or disabled.
                    type: bool
                wwn_node:
                    description: WWN node of port.
                    type: str
'''

import logging
from ansible_collections.dellemc.powermax.plugins.module_utils.storage.dell \
    import utils
from ansible.module_utils.basic import AnsibleModule

LOG = utils.get_logger("port")

HAS_PYU4V = utils.has_pyu4v_sdk()

PYU4V_VERSION_CHECK = utils.pyu4v_version_check()

# Application Type
APPLICATION_TYPE = 'ansible_v1.8.0'


class Port(object):
    """ Class with port operations"""

    u4v_conn = None

    def __init__(self):
示例#9
0
                         associated with the snapshot policy.
            type: list
        suspended:
            description: The state of the snapshot policy, true indicates
                         policy is in suspend state.
            type: bool
        symmetrixID:
            description: The symmetrix on which snapshot policy exists.
            type: str
"""

from ansible_collections.dellemc.powermax.plugins.module_utils.storage.dell \
    import utils
from ansible.module_utils.basic import AnsibleModule

LOG = utils.get_logger("snapshotpolicy")

HAS_PYU4V = utils.has_pyu4v_sdk()
PYU4V_VERSION_CHECK = utils.pyu4v_version_check()

# Application Type
APPLICATION_TYPE = 'ansible_v1.8.0'

INTERVAL = ['10 Minutes', '12 Minutes', '15 Minutes', '20 Minutes',
            '30 Minutes', '1 Hour', '2 Hours', '3 Hours', '4 Hours',
            '6 Hours', '8 Hours', '12 Hours', '1 Day', '7 Days']


class SnapshotPolicy(object):

    def __init__(self):
示例#10
0
            description: Whether any of the initiator port flags are
                         overridden.
            type: bool
        type:
            description: Type of initiator.
            type: str
'''

import re
import copy
import logging
from ansible_collections.dellemc.powermax.plugins.module_utils.storage.dell \
    import utils
from ansible.module_utils.basic import AnsibleModule

LOG = utils.get_logger('host')

HAS_PYU4V = utils.has_pyu4v_sdk()

PYU4V_VERSION_CHECK = utils.pyu4v_version_check()

# Application Type
APPLICATION_TYPE = 'ansible_v1.8.0'

BASE_FLAGS = {'volume_set_addressing': {'enabled': False, 'override': False},
              'disable_q_reset_on_ua': {'enabled': False, 'override': False},
              'environ_set': {'enabled': False, 'override': False},
              'avoid_reset_broadcast': {'enabled': False, 'override': False},
              'openvms': {'enabled': False, 'override': False},
              'scsi_3': {'enabled': False, 'override': False},
              'spc2_protocol_version': {'enabled': False, 'override': False},
示例#11
0
                    description: Volume state at remote device.
                    type: str
                remote_wwn_external:
                    description: External WWN of volume at remote device.
                    type: int
                volumeConfig:
                    description: Type of volume.
                    type: str
'''

import logging
from ansible_collections.dellemc.powermax.plugins.module_utils.storage.dell \
    import utils
from ansible.module_utils.basic import AnsibleModule

LOG = utils.get_logger('rdfgroup')

HAS_PYU4V = utils.has_pyu4v_sdk()

PYU4V_VERSION_CHECK = utils.pyu4v_version_check()

# Application Type
APPLICATION_TYPE = 'ansible_v1.8.0'


class RDFGroup(object):
    """Class with RDF Group operations"""

    u4v_conn = None

    def __init__(self):
示例#12
0
            contains:
                compression_state:
                    description: Indicates whether compression is enabled or
                                 disabled for this storage resource pool.
                    type: str
        total_free_tb:
           description: Free capacity of the storage pool in TB
           type: str
'''

from ansible_collections.dellemc.powermax.plugins.module_utils.storage.dell \
    import utils
from ansible.module_utils.basic import AnsibleModule
import logging

LOG = utils.get_logger('storagepool')
HAS_PYU4V = utils.has_pyu4v_sdk()

PYU4V_VERSION_CHECK = utils.pyu4v_version_check()

# Application Type
APPLICATION_TYPE = 'ansible_v1.8.0'


class Pool(object):
    """Class with storage pool operations"""
    def __init__(self):
        """ Define all parameters required by this module"""
        self.module_params = utils.get_powermax_management_host_parameters()
        self.module_params.update(get_pool_parameters())
示例#13
0
        metro_witness_state:
            description: The witness state of the metro session.
            type: str
        name:
            description: The smart DR environment name.
            type: str
        valid:
            description: Flag to indicate whether valid environment or not.
            type: bool
"""

from ansible_collections.dellemc.powermax.plugins.module_utils.storage.dell \
    import utils
from ansible.module_utils.basic import AnsibleModule

LOG = utils.get_logger(module_name="metro")

HAS_PYU4V = utils.has_pyu4v_sdk()
PYU4V_VERSION_CHECK = utils.pyu4v_version_check()

# Application Type
APPLICATION_TYPE = 'ansible_v1.8.0'

# DO NOT CHANGE BELOW REPLICATION_MODES SEQUENCE AS ITS USED IN SCRIPT
# USING INDEX
REPLICATION_MODES = ["Asynchronous", "Adaptive Copy"]

# ADAPTIVE_COPY_DISK used in SDK
ADAPTIVE_COPY_DISK = "AdaptiveCopyDisk"

# DO NOT CHANGE BELOW SRDF_STATES SEQUENCE AS ITS USED IN SCRIPT USING INDEX
示例#14
0
            description: Masking view ID.
            type: str
        portGroupId:
            description: Port group present in the masking view.
            type: str
        storageGroupId:
            description: Storage group present in the masking view.
            type: str
'''

import logging
from ansible_collections.dellemc.powermax.plugins.module_utils.storage.dell \
    import utils
from ansible.module_utils.basic import AnsibleModule

LOG = utils.get_logger('maskingview')
HAS_PYU4V = utils.has_pyu4v_sdk()

PYU4V_VERSION_CHECK = utils.pyu4v_version_check()

# Application Type
APPLICATION_TYPE = 'ansible_v1.8.0'


class MaskingView(object):
    """Class with masking view operations"""

    u4v_conn = None

    def __init__(self):
        """Define all the parameters required by this module"""
示例#15
0
            description: Status of the job.
            type: str
        task:
            description: Details about the job.
            type: list
        username:
            description: Unisphere username.
            type: str
'''

import logging
from ansible_collections.dellemc.powermax.plugins.module_utils.storage.dell \
    import utils
from ansible.module_utils.basic import AnsibleModule

LOG = utils.get_logger('job')

HAS_PYU4V = utils.has_pyu4v_sdk()

PYU4V_VERSION_CHECK = utils.pyu4v_version_check()

# Application Type
APPLICATION_TYPE = 'ansible_v1.8.0'


class Job(object):
    """Class with Job operations"""

    u4v_conn = None

    def __init__(self):
示例#16
0
            description: Unique ID of the volume.
            type: str
        volume_identifier:
            description: Name identifier for the volume.
            type: str
        wwn:
            description: WWN of the volume.
            type: str
'''

from ansible_collections.dellemc.powermax.plugins.module_utils.storage.dell \
    import utils
from ansible.module_utils.basic import AnsibleModule
import logging

LOG = utils.get_logger('volume')
HAS_PYU4V = utils.has_pyu4v_sdk()

PYU4V_VERSION_CHECK = utils.pyu4v_version_check()

# Application Type
APPLICATION_TYPE = 'ansible_v1.8.0'


class Volume(object):
    """Class with volume operations"""

    volume_id = None
    u4v_conn = None

    def __init__(self):