Exemple #1
0
    def get_connector_properties(*args, **kwargs):
        props = {}

        fc_utils = utilsfactory.get_fc_utils()
        fc_utils.refresh_hba_configuration()
        fc_hba_ports = fc_utils.get_fc_hba_ports()

        if fc_hba_ports:
            wwnns = []
            wwpns = []
            for port in fc_hba_ports:
                wwnns.append(port['node_name'])
                wwpns.append(port['port_name'])
            props['wwpns'] = wwpns
            props['wwnns'] = list(set(wwnns))
        return props
Exemple #2
0
    def get_connector_properties(*args, **kwargs):
        props = {}

        fc_utils = utilsfactory.get_fc_utils()
        fc_utils.refresh_hba_configuration()
        fc_hba_ports = fc_utils.get_fc_hba_ports()

        if fc_hba_ports:
            wwnns = []
            wwpns = []
            for port in fc_hba_ports:
                wwnns.append(port['node_name'])
                wwpns.append(port['port_name'])
            props['wwpns'] = wwpns
            props['wwnns'] = list(set(wwnns))
        return props
Exemple #3
0
 def __init__(self, *args, **kwargs):
     super(WindowsFCConnector, self).__init__(*args, **kwargs)
     self._fc_utils = utilsfactory.get_fc_utils()
Exemple #4
0
 def __init__(self, *args, **kwargs):
     super(WindowsFCConnector, self).__init__(*args, **kwargs)
     self._fc_utils = utilsfactory.get_fc_utils()
Exemple #5
0
    def __init__(self, *args, **kwargs):
        super(WindowsFCConnector, self).__init__(*args, **kwargs)

        self.use_multipath = kwargs.get('use_multipath', False)

        self._fc_utils = utilsfactory.get_fc_utils()
Exemple #6
0
 def __init__(self):
     self._fc_utils = utilsfactory.get_fc_utils()
     super(FCVolumeDriver, self).__init__()
Exemple #7
0
 def __init__(self):
     self._fc_utils = utilsfactory.get_fc_utils()
     super(FCVolumeDriver, self).__init__()