The vmware_nsx.nsxlib.v3.utils Module

class vmware_nsx.nsxlib.v3.utils.NsxLibApiBase(client, nsxlib_config)

Bases: object

Base class for nsxlib api

build_v3_api_version_tag()

Some resources are created on the manager that do not have a corresponding plugin resource.

build_v3_tags_payload(resource, resource_type, project_name)

Construct the tags payload that will be pushed to NSX-v3 Add <resource_type>:<resource-id>, os-project-id:<project-id>, os-project-name:<project_name> os-api-version:<plugin-api-version>

is_internal_resource(nsx_resource)

Indicates whether the passed nsx-resource is owned by the plugin for internal use.

vmware_nsx.nsxlib.v3.utils.add_v3_tag(tags, resource_type, tag)
vmware_nsx.nsxlib.v3.utils.dict_match(dict1, dict2)
vmware_nsx.nsxlib.v3.utils.get_name_and_uuid(name, uuid, tag=None, maxlen=80)
vmware_nsx.nsxlib.v3.utils.list_match(list1, list2)
vmware_nsx.nsxlib.v3.utils.retry_upon_exception(exc, delay=0.5, max_delay=2, max_attempts=10)
vmware_nsx.nsxlib.v3.utils.update_v3_tags(current_tags, tags_update)

Previous topic

The vmware_nsx.nsxlib.v3.security Module

Next topic

The vmware_nsx.opts Module

This Page