This Page

The quantum.plugins.nicira.nicira_nvp_plugin.nvp_cluster Module

class quantum.plugins.nicira.nicira_nvp_plugin.nvp_cluster.NVPCluster(name)

Bases: object

Encapsulates controller connection and api_client for a cluster.

Accessed within the NvpPluginV2 class.

Each element in the self.controllers list is a dictionary that contains the following keys:

ip, port, user, password, default_tz_uuid, uuid, zone

There may be some redundancy here, but that has been done to provide future flexibility.

add_controller(ip, port, user, password, request_timeout, http_timeout, retries, redirects, default_tz_uuid, uuid=None, zone=None, default_l3_gw_service_uuid=None, default_l2_gw_service_uuid=None, default_interface_name=None)

Add a new set of controller parameters.

Parameters:
  • ip – IP address of controller.
  • port – port controller is listening on.
  • user – user name.
  • password – user password.
  • request_timeout – timeout for an entire API request.
  • http_timeout – timeout for a connect to a controller.
  • retries – maximum number of request retries.
  • redirects – maximum number of server redirect responses to follow.
  • default_tz_uuid – default transport zone uuid.
  • uuid – UUID of this cluster (used in MDI configs).
  • zone – Zone of this cluster (used in MDI configs).
  • default_l3_gw_service_uuid – Default l3 gateway service
  • default_l2_gw_service_uuid – Default l2 gateway service
  • default_interface_name – Default interface name for l2 gateways
default_interface_name
default_l2_gw_service_uuid
default_l3_gw_service_uuid
default_tz_uuid
get_controller(idx)
get_num_controllers()
host
http_timeout
name
password
port
redirects
request_timeout
retries
user
uuid
zone