Contents Menu Expand Light mode Dark mode Auto light/dark mode
Salt Extension Modules for VMware
Logo
Salt Extension Modules for VMware
  • Contributing to Salt Extension Modules for VMware
    • Architectural Decisions
      • 2021-05-19 Building Docs
      • 2021-09-01 Build/Test/Deployment Pipeline
      • 2021-09-09 service_instance performance
      • 2021-10-28 esxi.get vs. grains.get
  • Release
  • Managing vSphere/vCenter with Salt
    • saltext.vmware.modules.cluster
    • saltext.vmware.modules.cluster_drs
    • saltext.vmware.modules.cluster_ha
    • saltext.vmware.modules.datacenter
    • saltext.vmware.modules.datastore
    • saltext.vmware.modules.dvswitch
    • saltext.vmware.modules.esxi
    • saltext.vmware.modules.folder
    • saltext.vmware.modules.license_mgr
    • saltext.vmware.modules.vm
    • saltext.vmware.modules.vmc_dhcp_profiles
    • saltext.vmware.modules.vmc_direct_connect
    • saltext.vmware.modules.vmc_distributed_firewall_rules
    • saltext.vmware.modules.vmc_dns_forwarder
    • saltext.vmware.modules.vmc_nat_rules
    • saltext.vmware.modules.vmc_networks
    • saltext.vmware.modules.vmc_public_ip
    • saltext.vmware.modules.vmc_sddc
    • saltext.vmware.modules.vmc_sddc_clusters
    • saltext.vmware.modules.vmc_sddc_host
    • saltext.vmware.modules.vmc_security_groups
    • saltext.vmware.modules.vmc_security_rules
    • saltext.vmware.modules.vmc_vcenter_stats
    • saltext.vmware.modules.vmc_vm_disks
    • saltext.vmware.modules.vmc_vm_stats
    • saltext.vmware.modules.vmc_vpn_statistics
    • saltext.vmware.modules.vswitch
    • saltext.vmware.states.datacenter
    • saltext.vmware.states.datastore
    • saltext.vmware.states.esxi
    • saltext.vmware.states.folder
    • saltext.vmware.states.license_mgr
    • saltext.vmware.states.vm
    • saltext.vmware.states.vmc_dhcp_profiles
    • saltext.vmware.states.vmc_distributed_firewall_rules
    • saltext.vmware.states.vmc_nat_rules
    • saltext.vmware.states.vmc_networks
    • saltext.vmware.states.vmc_public_ip
    • saltext.vmware.states.vmc_security_groups
    • saltext.vmware.states.vmc_security_rules
  • Managing NSX-T Devices with Salt
    • saltext.vmware.modules.nsxt_compute_manager
    • saltext.vmware.modules.nsxt_ip_blocks
    • saltext.vmware.modules.nsxt_ip_pools
    • saltext.vmware.modules.nsxt_license
    • saltext.vmware.modules.nsxt_manager
    • saltext.vmware.modules.nsxt_policy_segment
    • saltext.vmware.modules.nsxt_policy_tier0
    • saltext.vmware.modules.nsxt_policy_tier1
    • saltext.vmware.modules.nsxt_transport_node
    • saltext.vmware.modules.nsxt_transport_node_profiles
    • saltext.vmware.modules.nsxt_transport_zone
    • saltext.vmware.modules.nsxt_uplink_profiles
    • saltext.vmware.states.nsxt_compute_manager
    • saltext.vmware.states.nsxt_ip_blocks
    • saltext.vmware.states.nsxt_ip_pools
    • saltext.vmware.states.nsxt_license
    • saltext.vmware.states.nsxt_manager
    • saltext.vmware.states.nsxt_policy_segment
    • saltext.vmware.states.nsxt_policy_tier0
    • saltext.vmware.states.nsxt_policy_tier1
    • saltext.vmware.states.nsxt_transport_node
    • saltext.vmware.states.nsxt_transport_node_profiles
    • saltext.vmware.states.nsxt_transport_zone
    • saltext.vmware.states.nsxt_uplink_profiles
  • Managing VMC SDDC with Salt
    • saltext.vmware.modules.vmc_dhcp_profiles
    • saltext.vmware.modules.vmc_direct_connect
    • saltext.vmware.modules.vmc_distributed_firewall_rules
    • saltext.vmware.modules.vmc_dns_forwarder
    • saltext.vmware.modules.vmc_nat_rules
    • saltext.vmware.modules.vmc_networks
    • saltext.vmware.modules.vmc_public_ip
    • saltext.vmware.modules.vmc_sddc
    • saltext.vmware.modules.vmc_sddc_clusters
    • saltext.vmware.modules.vmc_sddc_host
    • saltext.vmware.modules.vmc_security_groups
    • saltext.vmware.modules.vmc_security_rules
    • saltext.vmware.modules.vmc_vcenter_stats
    • saltext.vmware.modules.vmc_vm_disks
    • saltext.vmware.modules.vmc_vm_stats
    • saltext.vmware.modules.vmc_vpn_statistics
    • saltext.vmware.states.vmc_dhcp_profiles
    • saltext.vmware.states.vmc_distributed_firewall_rules
    • saltext.vmware.states.vmc_nat_rules
    • saltext.vmware.states.vmc_networks
    • saltext.vmware.states.vmc_public_ip
    • saltext.vmware.states.vmc_security_groups
    • saltext.vmware.states.vmc_security_rules
  • Utilities for Managing vSphere/vCenter with Salt
    • saltext.vmware.utils.cluster
    • saltext.vmware.utils.common
    • saltext.vmware.utils.connect
    • saltext.vmware.utils.datacenter
    • saltext.vmware.utils.esxi
    • saltext.vmware.utils.vm
  • Quickstart
  • Credentials
  • GitHub Repository

Complete list of Modules and States

  • Complete List of Salt Extension Modules for VMware
    • Execution Modules
      • saltext.vmware.modules.cluster
      • saltext.vmware.modules.cluster_drs
      • saltext.vmware.modules.cluster_ha
      • saltext.vmware.modules.datacenter
      • saltext.vmware.modules.datastore
      • saltext.vmware.modules.dvswitch
      • saltext.vmware.modules.esxi
      • saltext.vmware.modules.folder
      • saltext.vmware.modules.license_mgr
      • saltext.vmware.modules.nsxt_compute_manager
      • saltext.vmware.modules.nsxt_ip_blocks
      • saltext.vmware.modules.nsxt_ip_pools
      • saltext.vmware.modules.nsxt_license
      • saltext.vmware.modules.nsxt_manager
      • saltext.vmware.modules.nsxt_policy_segment
      • saltext.vmware.modules.nsxt_policy_tier0
      • saltext.vmware.modules.nsxt_policy_tier1
      • saltext.vmware.modules.nsxt_transport_node
      • saltext.vmware.modules.nsxt_transport_node_profiles
      • saltext.vmware.modules.nsxt_transport_zone
      • saltext.vmware.modules.nsxt_uplink_profiles
      • saltext.vmware.modules.ssl_adapter
      • saltext.vmware.modules.tag
      • saltext.vmware.modules.vm
      • saltext.vmware.modules.vmc_dhcp_profiles
      • saltext.vmware.modules.vmc_direct_connect
      • saltext.vmware.modules.vmc_distributed_firewall_rules
      • saltext.vmware.modules.vmc_dns_forwarder
      • saltext.vmware.modules.vmc_nat_rules
      • saltext.vmware.modules.vmc_networks
      • saltext.vmware.modules.vmc_public_ip
      • saltext.vmware.modules.vmc_sddc
      • saltext.vmware.modules.vmc_sddc_clusters
      • saltext.vmware.modules.vmc_sddc_host
      • saltext.vmware.modules.vmc_security_groups
      • saltext.vmware.modules.vmc_security_rules
      • saltext.vmware.modules.vmc_vcenter_stats
      • saltext.vmware.modules.vmc_vm_disks
      • saltext.vmware.modules.vmc_vm_stats
      • saltext.vmware.modules.vmc_vpn_statistics
      • saltext.vmware.modules.vswitch
    • State Modules
      • saltext.vmware.states.datacenter
      • saltext.vmware.states.datastore
      • saltext.vmware.states.esxi
      • saltext.vmware.states.folder
      • saltext.vmware.states.license_mgr
      • saltext.vmware.states.nsxt_compute_manager
      • saltext.vmware.states.nsxt_ip_blocks
      • saltext.vmware.states.nsxt_ip_pools
      • saltext.vmware.states.nsxt_license
      • saltext.vmware.states.nsxt_manager
      • saltext.vmware.states.nsxt_policy_segment
      • saltext.vmware.states.nsxt_policy_tier0
      • saltext.vmware.states.nsxt_policy_tier1
      • saltext.vmware.states.nsxt_transport_node
      • saltext.vmware.states.nsxt_transport_node_profiles
      • saltext.vmware.states.nsxt_transport_zone
      • saltext.vmware.states.nsxt_uplink_profiles
      • saltext.vmware.states.tag
      • saltext.vmware.states.vm
      • saltext.vmware.states.vmc_dhcp_profiles
      • saltext.vmware.states.vmc_distributed_firewall_rules
      • saltext.vmware.states.vmc_nat_rules
      • saltext.vmware.states.vmc_networks
      • saltext.vmware.states.vmc_public_ip
      • saltext.vmware.states.vmc_security_groups
      • saltext.vmware.states.vmc_security_rules
    • Utilities
      • saltext.vmware.utils.cluster
      • saltext.vmware.utils.common
      • saltext.vmware.utils.connect
      • saltext.vmware.utils.datacenter
      • saltext.vmware.utils.esxi
      • saltext.vmware.utils.vm
Back to top

saltext.vmware.modules.nsxt_uplink_profiles#

Salt Module to perform CRUD operations for NSX-T uplink profiles

saltext.vmware.modules.nsxt_uplink_profiles.get(hostname, username, password, verify_ssl=True, cert=None, cert_common_name=None, cursor=None, deployment_type=None, hostswitch_profile_type=None, include_system_owned=None, included_fields=None, node_type=None, page_size=None, sort_ascending=None, sort_by=None, uplink_teaming_policy_name=None)[source]#

Lists NSX-T up-link profiles

CLI Example:

salt vm_minion nsxt_uplink_profiles.get hostname=nsxt-manager.local username=admin ...
hostname

The host name of NSX-T manager

username

Username to connect to NSX-T manager

password

Password to connect to NSX-T manager

verify_ssl

(Optional) Option to enable/disable SSL verification. Enabled by default. If set to False, the certificate validation is skipped.

cert

(Optional) Path to the SSL certificate file to connect to NSX-T manager. The certificate can be retrieved from browser.

cert_common_name

(Optional) By default, the hostname parameter and the common name in certificate is compared for host name verification. If the client certificate common name and hostname do not match (in case of self-signed certificates), specify the certificate common name as part of this parameter. This value is then used to compare against certificate common name.

cursor

(Optional) Opaque cursor to be used for getting next page of records (supplied by current result page)

deployment_type

(Optional) Deployment type of EdgeNode or PublicCloudGatewayNode If the node_type is specified, then deployment_type may be specified to filter uplink profiles applicable to only PHYSICAL_MACHINE or VIRTUAL_MACHINE deployments of these nodes.

hostswitch_profile_type

(Optional) Type of host switch profile

include_system_owned

(Optional) Boolean. Whether the list result contains system resources

included_fields

(Optional) Comma separated list of fields that should be included in query result

node_type

(Optional) Fabric node type for which uplink profiles are to be listed. The fabric node type is the resource_type of the Node such as EdgeNode and PublicCloudGatewayNode. If a fabric node type is given, uplink profiles that apply for nodes of the given type will be returned.

page_size

(Optional) Maximum number of results to return in this page

sort_ascending

(Optional) Boolean

sort_by

(Optional) Field by which records are sorted

uplink_teaming_policy_name

(Optional) The host switch profile’s uplink teaming policy name. If populated, only UplinkHostSwitchProfiles with the specified uplink teaming policy name are returned. Otherwise, any HostSwitchProfile can be returned.

saltext.vmware.modules.nsxt_uplink_profiles.get_by_display_name(hostname, username, password, display_name, verify_ssl=True, cert=None, cert_common_name=None)[source]#

Gets nsxt uplink profiles(UplinkHostSwitchProfile) present in the NSX-T Manager with given display_name.

CLI Example:

salt vm_minion nsxt_uplink_profiles.get_by_display_name hostname=nsxt-manager.local username=admin ...
hostname

The host name of NSX-T manager

username

Username to connect to NSX-T manager

password

Password to connect to NSX-T manager

display_name

The name of the uplink profile

verify_ssl

(Optional) Option to enable/disable SSL verification. Enabled by default. If set to False, the certificate validation is skipped.

cert

(Optional) Path to the SSL client certificate file to connect to NSX-T manager. The certificate can be retrieved from browser.

cert_common_name

(Optional) By default, the hostname parameter and the common name in certificate is compared for host name verification. If the client certificate common name and hostname do not match (in case of self-signed certificates), specify the certificate common name as part of this parameter. This value is then used to compare against certificate common name

saltext.vmware.modules.nsxt_uplink_profiles.create(hostname, username, password, display_name, teaming, verify_ssl=True, cert=None, cert_common_name=None, lags=None, mtu=None, named_teamings=None, overlay_encap=None, required_capabilities=None, tags=None, transport_vlan=None, description=None)[source]#

Creates uplink profile(resource_type: UplinkHostSwitchProfile)

CLI Example:

salt vm_minion nsxt_uplink_profiles.create hostname=nsxt-manager.local username=admin ...
hostname

The host name of NSX-T manager

username

Username to connect to NSX-T manager

password

Password to connect to NSX-T manager

display_name

The name of the uplink profile

teaming

Default TeamingPolicy associated with this UplinkProfile. Object with following parameters: Example:

{'standby_list':[],'active_list':[{'uplink_name':'uplink3','uplink_type':'PNIC'}],'policy':'FAILOVER_ORDER'}
active_list

List of Uplinks used in active list. Array of Uplink objects.

 active_list='[
    {
        "uplink_name": "uplink3",
        "uplink_type": "PNIC"
    }
]'

Parameters as follows:

uplink_name

Name of this uplink

uplink_type

Type of the uplink. PNIC or LAG

policy

Teaming policy. Required field. Values could be one among FAILOVER_ORDER, LOADBALANCE_SRCID, LOADBALANCE_SRC_MAC

standby_list

List of Uplinks used in standby list. Array of Uplink objects.

standby_list='[
    {
        "uplink_name": "uplink2",
        "uplink_type": "PNIC"
    }
]'

Parameters as follows:

uplink_name

Name of this uplink

uplink_type

Type of the uplink. PNIC or LAG

verify_ssl

(Optional) Option to enable/disable SSL verification. Enabled by default. If set to False, the certificate validation is skipped.

cert

(Optional) Path to the SSL client certificate file to connect to NSX-T manager. The certificate can be retrieved from browser.

cert_common_name

(Optional) By default, the hostname parameter and the common name in certificate is compared for host name verification. If the client certificate common name and hostname do not match (in case of self-signed certificates), specify the certificate common name as part of this parameter. This value is then used to compare against certificate common name

lags

(Optional) list of LACP group

mtu

(Optional) Maximum Transmission Unit used for uplinks

named_teamings
(Optional) List of named uplink teaming policies that can be used by logical switches.

Array of NamedTeamingPolicy

overlay_encap

(Optional) The protocol used to encapsulate overlay traffic

required_capabilities

(Optional) List of string

tags

(Optional) Opaque identifier meaninful to API user. Array of Tag

transport_vlan

(Optional) VLAN used for tagging Overlay traffic of associated HostSwitch. Type: integer

description

(Optional) Description for the resource

saltext.vmware.modules.nsxt_uplink_profiles.update(hostname, username, password, display_name, teaming, uplink_profile_id, revision, verify_ssl=True, cert=None, cert_common_name=None, lags=None, mtu=None, named_teamings=None, overlay_encap=None, required_capabilities=None, tags=None, transport_vlan=None, description=None)[source]#

Updates uplink profile(resource_type: UplinkHostSwitchProfile)

CLI Example:

salt vm_minion nsxt_uplink_profiles.update hostname=nsxt-manager.local username=admin ...
hostname

The host name of NSX-T manager

username

Username to connect to NSX-T manager

password

Password to connect to NSX-T manager

display_name

The name of the uplink profile

teaming

Default TeamingPolicy associated with this UplinkProfile. Object with following parameters: Example:

{'standby_list':[],'active_list':[{'uplink_name':'uplink3','uplink_type':'PNIC'}],'policy':'FAILOVER_ORDER'}
active_list

List of Uplinks used in active list. Array of Uplink objects.

active_list='[
    {
        "uplink_name": "uplink3",
        "uplink_type": "PNIC"
    }
]'

Parameters as follows:

uplink_name

Name of this uplink

uplink_type

Type of the uplink. PNIC or LAG

policy

Teaming policy. Required field. Values could be one among FAILOVER_ORDER, LOADBALANCE_SRCID, LOADBALANCE_SRC_MAC

standby_list

List of Uplinks used in standby list. Array of Uplink objects.

standby_list='[
    {
        "uplink_name": "uplink2",
        "uplink_type": "PNIC"
    }
]'

Parameters as follows:

uplink_name

Name of this uplink

uplink_type

Type of the uplink. PNIC or LAG

uplink_profile_id

Unique id provided by NSX-T for uplink profile

revision

_revision property of the uplink profile provided by NSX-T

verify_ssl

Option to enable/disable SSL verification. Enabled by default. If set to False, the certificate validation is skipped.

cert

Path to the SSL client certificate file to connect to NSX-T manager. The certificate can be retrieved from browser.

cert_common_name

(Optional) By default, the hostname parameter and the common name in certificate is compared for host name verification. If the client certificate common name and hostname do not match (in case of self-signed certificates), specify the certificate common name as part of this parameter. This value is then used to compare against certificate common name

lags

(Optional) list of LACP group

mtu

(Optional) Maximum Transmission Unit used for uplinks

named_teamings

(Optional) List of named uplink teaming policies that can be used by logical switches. Array of NamedTeamingPolicy

overlay_encap

(Optional) The protocol used to encapsulate overlay traffic

required_capabilities

(Optional) List of string

tags

(Optional) Opaque identifier meaninful to API user. Array of Tag

transport_vlan

(Optional) VLAN used for tagging Overlay traffic of associated HostSwitch. Type: integer

description

(Optional) Description for the resource

saltext.vmware.modules.nsxt_uplink_profiles.delete(hostname, username, password, uplink_profile_id, verify_ssl=True, cert=None, cert_common_name=None)[source]#

Deletes uplink profile(UplinkHostSwitchProfile)

CLI Example:

salt vm_minion nsxt_uplink_profiles.delete hostname=nsxt-manager.local username=admin ...
hostname

The host name of NSX-T manager

username

Username to connect to NSX-T manager

password

Password to connect to NSX-T manager

uplink_profile_id

Existing uplink profile id

verify_ssl

(Optional) Option to enable/disable SSL verification. Enabled by default. If set to False, the certificate validation is skipped.

cert

(Optional) Path to the SSL client certificate file to connect to NSX-T manager. The certificate can be retrieved from browser.

cert_common_name

(Optional) By default, the hostname parameter and the common name in certificate is compared for host name verification. If the client certificate common name and hostname do not match (in case of self-signed certificates), specify the certificate common name as part of this parameter. This value is then used to compare against certificate common name

Next
saltext.vmware.states.nsxt_compute_manager
Previous
saltext.vmware.modules.nsxt_transport_zone
Copyright © 2020 - 2022, Gareth J. Greenaway
Made with Sphinx and @pradyunsg's Furo