Make sure that we can issue a request to each of the cluster nodes
Create a NVP Layer-2 Network Gateway Service.
| Parameters: |
|
|---|
the gateway service. :param display_name: Descriptive name of this gateway service :param devices: List of transport node uuids (and network interfaces on them) to use for the network gateway service :raise NvpApiException: if there is a problem while communicating with the NVP controller
Creates a logical port on the assigned logical switch
Create a NVP logical router on the specified cluster.
| Parameters: |
|
|---|
the logical router is being created :param display_name: Descriptive name of this logical router :param nexthop: External gateway IP address for the logical router :raise NvpApiException: if there is a problem while communicating with the NVP controller
Creates a logical port on the assigned logical router
Creates a logical port on the assigned logical router
Issue a request to all clusters
Convenience function wraps do_single_request.
| Parameters: |
|
|---|---|
| Returns: | the result of do_single_request loaded into a python object or None. |
Issue a request to a specified cluster if specified via kwargs (cluster=<cluster>).
Return (url, cluster_id) of port or (None, None) if port does not exist.
Retrieves the external gateway port for a NVP logical router
Consistent formatting for exceptions. :param etype: a string describing the exception type. :param e: the exception. :param request: the request object. :param execption_locals: calling context local variable dict. :returns: a formatted string.
Append the quantum network uuids we can find in the given cluster to “networks”
Return major/minor version #
Return (url, cluster_id) of port or raises ResourceNotFound
Return the NVP UUID of the logical port with tag q_port_id equal to quantum_port_id or None if the port is not Found.
Retrieve the operational status of the port
Convenience function creates and dumps dictionary to string.
| Parameters: | kwargs – the key/value pirs to be dumped into a json string. |
|---|---|
| Returns: | a json string. |
Plug a VIF Attachment object in a logical port
Plug a Layer-2 Gateway Attachment object in a logical port
Attach a router port to the given attachment. Current attachment types: - PatchAttachment [-> logical switch port uuid] - L3GatewayAttachment [-> L3GatewayService uuid] For the latter attachment type a VLAN ID can be specified as well
Convenience function to add tenant_id tag to taglist.
| Parameters: |
|
|---|---|
| Returns: | a new taglist that includes the old taglist with the new tenant_id tag set. |
Updates a logical port on the assigned logical router