This task creates a nsx-t transport node profile.
nsx-t-installation
: a git resource containing this repo's tasks
NSXT_MANAGER_URL
: where nsx-t manager lives, egnsxmgr-01.haas-417.example.com
NSXT_ADMIN_USERNAME
: egadmin
NSXT_ADMIN_PASSWORD
: the password for the above userTRANSPORT_NODE_PROFILE_NAME
: name of transport node profile this task createsTRANSPORT_ZONE_NAME
: name of the transport zone associated with the profileNVDS_NAME
: name of the N-VDS switch associated with this profileUPLINK_PROFILE_NAME
: host overlay uplink profile nameNIOC_PROFILE_NAME
: NIOC profile nameIP_POOL_NAME
: TEP IP pool namePHYSICAL_NIC_1_NAME
: physical nic associated with the first uplinkPHYSICAL_NIC_2_NAME
: (optional) another physical nic nameUPLINK_1_NAME
: uplink name to associated with the primary physical nicUPLINK_2_NAME
: (optional) another uplink name
transport-node-profile
: a directory containingtransport_node_profile.json
which looks something like:
{
"results" : [ {
"transport_zone_endpoints" : [ {
"transport_zone_id" : "25e5ab97-b7e2-4153-8e62-e30c47f1cedb"
} ],
"host_switch_spec" : {
"host_switches" : [ {
"host_switch_name" : "n-vds-overlay",
"host_switch_profile_ids" : [ {
"key" : "UplinkHostSwitchProfile",
"value" : "775709e6-3c20-40dd-8602-307148c28052"
}, {
"key" : "NiocProfile",
"value" : "8cb3de94-2834-414c-b07d-c034d878db56"
}, {
"key" : "LldpHostSwitchProfile",
"value" : "306c9a2a-7c3d-47f2-a1e1-0b27ce4c3914"
} ],
"pnics" : [ {
"device_name" : "vmnic8",
"uplink_name" : "uplink-1"
}, {
"device_name" : "vmnic9",
"uplink_name" : "uplink-2"
} ],
"is_migrate_pnics" : false,
"ip_assignment_spec" : {
"ip_pool_id" : "80e09594-1cb1-43c0-8b8b-f035d7686e56",
"resource_type" : "StaticIpPoolSpec"
},
"cpu_config" : [ ],
"vmk_install_migration" : [ ],
"pnics_uninstall_migration" : [ ],
"vmk_uninstall_migration" : [ ],
"not_ready" : false
} ],
"resource_type" : "StandardHostSwitchSpec"
},
"resource_type" : "TransportNodeProfile",
"id" : "2f471438-837a-4edc-8b38-9a3370abccbb",
"display_name" : "host-overlay-transport-node-profile",
"description" : "",
"tags" : [ ],
"_create_user" : "admin",
"_create_time" : 1574381596230,
"_last_modified_user" : "admin",
"_last_modified_time" : 1574787311038,
"_system_owned" : false,
"_protection" : "NOT_PROTECTED",
"_revision" : 3
} ],
"result_count" : 1,
"sort_by" : "display_name",
"sort_ascending" : true
}
NSXT_MANAGER_URL='nsxmgr-01.example.com' \
NSXT_ADMIN_USERNAME='admin' \
NSXT_ADMIN_PASSWORD='[redacted]' \
TRANSPORT_NODE_PROFILE_NAME='new-tx-node-profile' \
TRANSPORT_ZONE_NAME='tz-overlay' \
NVDS_NAME='n-vds-overlay' \
UPLINK_PROFILE_NAME='host-overlay-uplink-profile' \
NIOC_PROFILE_NAME='nsx-default-nioc-hostswitch-profile' \
IP_POOL_NAME='tep-esxi-pool' \
PHYSICAL_NIC_1_NAME='vmnic4' \
PHYSICAL_NIC_2_NAME='vmnic5' \
UPLINK_1_NAME='uplink-1' \
UPLINK_2_NAME='uplink-2' \
fly -t hulk execute -c tasks/create-transport-node-profile/task.yml \
--input nsx-t-installation=. --output transport-node-profile=/tmp/transport-node-profile