這些 NSX API 命令用來支援 NSX 上的 vSphere Distributed Switch。
針對 vSphere Distributed Switch 的 API 變更
如需有關 API 呼叫的詳細資訊,請參閱NSX API 指南。
API | vSphere Distributed Switch (VDS) 上的 NSX | vSphere Distributed Switch 上 NSX API 命令中的變更 |
---|---|---|
針對探索到的節點建立傳輸節點。 | /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", } |
|
虛擬機器組態 | vim.vm.device.VirtualEthernetCard.DistributedVirtualPortBackingInfo |
備註: 當 BackingType 設為
OpaqueNetworkBackingInfo 時,VNIC BackingType 預設為
DistributedVirtualPortBackingInfo 。
|
VMkernel NIC | vim.dvs.DistributedVirtualPort |
|
實體 NIC 與上行的對應 | API: 內容: |
|
MTU | API: 內容: |
|
LAG |
API: 內容: |
|
NIOC | API: 內容: |
|
LLDP | API: 內容: |
|