nsxt_transport_node_profiles – Create a Transport Node Profile description: Transport node profile captures the configuration needed to create a transport node. A transport node profile can be attached to compute collections for automatic TN creation of member hosts

New in version 2.7.

Parameters

Parameter Choices/Defaults Comments
description
string
Description of the pre/post-upgrade check
display_name
string / required
Display name
host_switch_spec
dictionary
The HostSwitchSpec is the base class for standard and preconfigured host switch specifications. Only standard host switches are supported in the transport node profile.
hostname
string / required
Deployed NSX manager hostname.
password
string / required
The password to authenticate with the NSX manager.
resource_type
string / required
Selects the type of the transport zone profile
state
- / required
    Choices:
  • present
  • absent
State can be either 'present' or 'absent'. 'present' is used to create or update resource. 'absent' is used to delete resource.
transport_zone_endpoints
array of TransportZoneEndPoint
Transport zone endpoints.
username
string / required
The username to authenticate with the NSX manager.

Examples

- name: Create transport node profile
  nsxt_transport_node_profiles:
    hostname: "10.192.167.137"
    username: "admin"
    password: "Admin!23Admin"
    validate_certs: False
    resource_type: "TransportNodeProfile"
    display_name: "NSX Configured TNP"
    description: "NSX configured Test Transport Node Profile"
    host_switch_spec:
      resource_type: "StandardHostSwitchSpec"
      host_switches:
      - host_switch_profiles:
        - name: "uplinkProfile1"
          type: "UplinkHostSwitchProfile"
        host_switch_name: "hostswitch1"
        host_switch_mode: "STANDARD"
        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"
    state: "present"

Status

  • This module is not guaranteed to have a backwards compatible interface. [preview]

  • This module is maintained by the Ansible Community. [community]

Authors

  • Rahul Raghuvanshi