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
def __init__(self, *args, **kwargs): super(WindowsFCConnector, self).__init__(*args, **kwargs) self._fc_utils = utilsfactory.get_fc_utils()
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()
def __init__(self): self._fc_utils = utilsfactory.get_fc_utils() super(FCVolumeDriver, self).__init__()