Comandi API di NSX per supportare vSphere Distributed Switch in NSX.
Modifiche nell'API per vSphere Distributed Switch
Per informazioni dettagliate sulle chiamate API, vedere Guida di NSX API.
| API | NSX su vSphere Distributed Switch (VDS) | Modifiche nei comandi API per NSX su vSphere Distributed Switch |
|---|---|---|
| Creare un nodo di trasporto per un nodo rilevato. | /api/v1/fabric/discovered-nodes/<external-id/discovered-node-id>?action=create_transport_node{
"node_id":
"d7ef478b-752c-400a-b5f0-207c04567e5d", "host_switch_spec": {
"host_switches": [
{
"host_switch_name": "vds-1",
"host_switch_id":
"50 2b 92 54 e0 80 d8 d1-ee ab 8d a6 7b fd f9 4b",
"host_switch_type": "VDS",
"host_switch_mode": "STANDARD",
"host_switch_profile_ids": [
{
"key": "UplinkHostSwitchProfile",
"value":
"159353ae-c572-4aca-9469-9582480a7467"
} ],
"pnics": [],
"uplinks": [
{
"vds_uplink_name": "Uplink 2",
"uplink_name": "nsxuplink1"
} ],
"is_migrate_pnics": false,
"ip_assignment_spec": {
"resource_type": "AssignedByDhcp"
},
"cpu_config": [],
"transport_zone_endpoints": [
{
"transport_zone_id":
"06ba5326-67ac-4f2c-9953-a8c5d326b51e",
"transport_zone_profile_ids": [
{
"resource_type": "BfdHealthMonitoringProfile",
"profile_id":
"52035bb3-ab02-4a08-9884-18631312e50a"
} ] } ],
"vmk_install_migration": [],
"pnics_uninstall_migration": [],
"vmk_uninstall_migration": [],
"not_ready": false
}
],
"resource_type": "StandardHostSwitchSpec"
},
"transport_zone_endpoints": [],
"maintenance_mode": "DISABLED",
"is_overridden": false,
"resource_type": "TransportNode",
"display_name": "TestTN",
} |
|
| Configurazione macchina virtuale | vim.vm.device.VirtualEthernetCard.DistributedVirtualPortBackingInfo |
Nota: Il BackingType di VNIC è impostato come predefinito su
DistributedVirtualPortBackingInfo quando BackingType è impostato su
OpaqueNetworkBackingInfo.
|
| NIC VMkernel | vim.dvs.DistributedVirtualPort |
|
| Mappatura da NIC fisica a uplink | API: Proprietà: |
|
| MTU | API: Proprietà: |
|
| LAG |
API: Proprietà: |
|
| NIOC | API: Proprietà: |
|
| LLDP | API: Proprietà: |
|