def __init__(self, config):
     self.config = config
     self.vendor_name = "HPMSA"
     self.backend_name = self.config.hpmsa_backend_name
     self.backend_type = self.config.hpmsa_backend_type
     self.client = hpmsa_client.HPMSAClient(self.config.san_ip,
                                            self.config.san_login,
                                            self.config.san_password,
                                            self.config.hpmsa_wbi_protocol)
예제 #2
0
    def __init__(self, config):
        self.config = config
        self.vendor_name = "HPMSA"
        self.backend_name = self.config.hpmsa_backend_name
        self.backend_type = self.config.hpmsa_backend_type
        self.api_protocol = self.config.hpmsa_api_protocol
        ssl_verify = False
        if (self.api_protocol == 'https'
                and self.config.hpmsa_verify_certificate):
            ssl_verify = self.config.hpmsa_verify_certificate_path or True

        self.client = hpmsa_client.HPMSAClient(self.config.san_ip,
                                               self.config.san_login,
                                               self.config.san_password,
                                               self.api_protocol, ssl_verify)
예제 #3
0
    def __init__(self, config):
        self.config = config
        self.vendor_name = "HPMSA"
        self.backend_name = self.config.hpmsa_pool_name
        self.backend_type = self.config.hpmsa_pool_type
        self.api_protocol = self.config.hpmsa_api_protocol
        ssl_verify = False
        # check deprecated vendor-specific options ...
        if (self.api_protocol == 'https'
                and self.config.hpmsa_verify_certificate):
            ssl_verify = self.config.hpmsa_verify_certificate_path or True
        # ... before newer common options
        if self.config.driver_use_ssl:
            self.api_protocol = 'https'
        if self.config.driver_ssl_cert_verify:
            ssl_verify = self.config.driver_ssl_cert_path or True

        self.client = hpmsa_client.HPMSAClient(self.config.san_ip,
                                               self.config.san_login,
                                               self.config.san_password,
                                               self.api_protocol, ssl_verify)