Пример #1
0
 def __init__(self, address, user, password, ca_file, insecure):
     self.address = address
     self.user = user
     self.password = password
     self.ca_file = ca_file
     self.insecure = insecure
     self.jsonapi_client = VcnsApiClient.VcnsApiHelper(
         address, user, password, format='json', ca_file=ca_file,
         insecure=insecure, timeout=cfg.CONF.nsxv.nsx_transaction_timeout)
     self.xmlapi_client = VcnsApiClient.VcnsApiHelper(
         address, user, password, format='xml', ca_file=ca_file,
         insecure=insecure, timeout=cfg.CONF.nsxv.nsx_transaction_timeout)
     self._nsx_version = None
     self._normalized_scoping_objects = None
Пример #2
0
 def __init__(self, address, user, password, ca_file, insecure):
     self.address = address
     self.user = user
     self.password = password
     self.ca_file = ca_file
     self.insecure = insecure
     self.jsonapi_client = VcnsApiClient.VcnsApiHelper(address, user,
                                                       password,
                                                       format='json',
                                                       ca_file=ca_file,
                                                       insecure=insecure)
     self.xmlapi_client = VcnsApiClient.VcnsApiHelper(address, user,
                                                      password,
                                                      format='xml',
                                                      ca_file=ca_file,
                                                      insecure=insecure)