saltext.vmware.states.nsxt_transport_node_profiles#
State module for NSX-T transport node profiles
- saltext.vmware.states.nsxt_transport_node_profiles.present(name, hostname, username, password, display_name, host_switch_spec, verify_ssl=True, cert=None, cert_common_name=None, transport_zone_endpoints=None, ignore_overridden_hosts=None, description=None)[source]#
Creates or Updates(if present with same display_name) transport node profiles Fails if multiple transport node profiles are found with same display_name
CLI Example:
salt vm_minion nsxt_transport_node_profiles.create hostname=nsxt-manager.local username=admin ...
create_transport_node_profile: nsxt_transport_node_profiles.present: - name: Create uplink profile hostname: {{ pillar['nsxt_manager_hostname'] }} username: {{ pillar['nsxt_manager_username'] }} password: {{ pillar['nsxt_manager_password'] }} cert: {{ pillar['nsxt_manager_certificate'] }} verify_ssl: <False/True> display_name: <uplink profile name> description: <uplink profile description> host_switch_spec: resource_type: "StandardHostSwitchSpec" host_switches: - host_switch_name: "hostswitch1" host_switch_mode: "<STANDARD/ENS/ENS_INTERRUPT>" host_switch_type: "<NVDS/VDS>" host_switch_profiles: - name: "<host_switch_profile_name>" type: "<UplinkHostSwitchProfile/LldpHostSwitchProfile/NiocProfile>" pnics: - device_name: "vmnic1" uplink_name: "uplink-1" ip_assignment_spec: resource_type: "StaticIpPoolSpec" ip_pool_name: "IPPool-IPV4-1" transport_zone_endpoints: - transport_zone_name: "TZ1" vmk_install_migration: - device_name: vmk0 destination_network_name: "ls_vmk_Mgmt"
- name
Name of the operation
- 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 transport node profile
- host_switch_spec
Transport node host switch specification. The HostSwitchSpec is the base class for standard and preconfigured host switch specifications. Only standard host switches are supported in the transport node profile.
- resource_type
Must be set to the value StandardHostSwitchSpec
- host_switches
Array of transport Node host switches.
- host_switch_name
Host switch name. This name will be used to reference a host switch. Default is “nsxDefaultHostSwitch”
- host_switch_mode
Operational mode of a HostSwitch. STANDARD, ENS, ENS_INTERRUPT
- host_switch_id
The host switch id. This ID will be used to reference a host switch.
- host_switch_profiles
Array of host switch profiles. Each entry should have name of the profile and type of the profile
host_switch_profiles: - name: <name of the profile> type: <type of the profile>
- ip_assignment_spec
Specification for IPs to be used with host switch virtual tunnel endpoints
- resource_type
Resource type for IP assignment
- ip_pool_name
Name of the IP pool
- pnics
Array of Physical NICs connected to the host switch
- device_name
device name or key
- uplink_name
Uplink name for this Pnic
- transport_zone_endpoints
Array of transport zones
- transport_zone_name
Name of the transport zone
- vmk_install_migration
Array of VmknicNetwork. The vmknic and logical switch mappings
- destination_network
The network id to which the ESX vmk interface will be migrated.
- device_name
ESX vmk interface name
- transport_zone_endpoints
(Optional) This is deprecated. TransportZoneEndPoints should be specified per host switch at StandardHostSwitch through Transport Node or Transport Node Profile configuration. Array of transport zones.
- ignore_overridden_hosts
(Optional) Boolean which determines if cluster-level configuration should be applied on overridden hosts. Default: False
- description
(Optional) Description
- saltext.vmware.states.nsxt_transport_node_profiles.absent(name, hostname, username, password, display_name, verify_ssl=True, cert=None, cert_common_name=None)[source]#
Deletes transport node profile with provided display_name in NSX-T Manager, if present. Fails if multiple transport node profiles are found with same display_name
CLI Example:
salt vm_minion nsxt_transport_node_profiles.absent hostname=nsxt-manager.local username=admin ...
– code-block :: yaml
- delete_transport_node_profile:
- nsxt_transport_node_profiles.absent:
name: <Name of the operation> hostname: {{ pillar[‘nsxt_manager_hostname’] }} username: {{ pillar[‘nsxt_manager_username’] }} password: {{ pillar[‘nsxt_manager_password’] }} cert: {{ pillar[‘nsxt_manager_certificate’] }} display_name: <display_name of the transport node profile> verify_ssl: <False/True>
- name
Name of the operation to perform
- 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
Display name of the transport node profile to delete
- cert
Path to the SSL certificate file to connect to NSX-T manager
- 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 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.