The vmware_nsx.nsxlib.v3.config Module

class vmware_nsx.nsxlib.v3.config.NsxLibConfig(nsx_api_managers=None, username=None, password=None, insecure=True, ca_file=None, concurrent_connections=10, retries=3, http_timeout=10, http_read_timeout=180, conn_idle_timeout=10, http_provider=None, max_attempts=10, plugin_scope=None, plugin_tag=None, plugin_ver=None, dns_nameservers=None, dns_domain='openstacklocal', dhcp_profile_uuid=None)

Bases: object

Class holding all the configuration parameters used by the nsxlib code.

Parameters:
  • nsx_api_managers – List of IP addresses of the NSX managers. Each IP address should be of the form: [<scheme>://]<ip_adress>[:<port>] If scheme is not provided https is used. If port is not provided port 80 is used for http and port 443 for https.
  • username – User name for the NSX manager
  • password – Password for the NSX manager
  • insecure – If true, the NSX Manager server certificate is not verified. If false the CA bundle specified via “ca_file” will be used or if unsest the default system root CAs will be used.
  • ca_file – Specify a CA bundle file to use in verifying the NSX Manager server certificate. This option is ignored if “insecure” is set to True. If “insecure” is set to False and ca_file is unset, the system root CAs will be used to verify the server certificate.
  • concurrent_connections – Maximum concurrent connections to each NSX manager.
  • retries – Maximum number of times to retry a HTTP connection.
  • http_timeout – The time in seconds before aborting a HTTP connection to a NSX manager.
  • http_read_timeout – The time in seconds before aborting a HTTP read response from a NSX manager.
  • conn_idle_timeout – The amount of time in seconds to wait before ensuring connectivity to the NSX manager if no manager connection has been used.
  • http_provider – HTTPProvider object, or None.
  • max_attempts – Maximum number of times to retry API requests upon stale revision errors.
  • plugin_scope – The default scope for the v3 api-version tag
  • plugin_tag – The value for the v3 api-version tag
  • plugin_ver – The version of the plugin used as the ‘os-api-version’ tag value in the v3 api-version tag
  • dns_nameservers – List of nameservers to configure for the DHCP binding entries. These will be used if there are no nameservers defined on the subnet.
  • dns_domain – Domain to use for building the hostnames.
  • dhcp_profile_uuid – The UUID of the NSX DHCP Profile that will be used to enable native DHCP service.
ca_file(index)
password(index)
username(index)

Previous topic

The vmware_nsx.nsxlib.v3.cluster Module

Next topic

The vmware_nsx.nsxlib.v3.exceptions Module

This Page