To create a VXLAN-backed network pool, you create a VMWNetworkPool element whose type attribute has the value VXLANPoolType, and POST the element to your cloud's add link for networkPools.
- logical networks spanning layer 3 boundaries
- logical networks spanning multiple racks on a single layer 2
- broadcast containment
- higher performance
- greater scale (up to 16 million network addresses)
Prerequisites
This operation is restricted to system administrators.
Verify that you know your cloud's add URL for networkPools. See Create a Network Pool.
Verify that at least one vCenter server attached to your cloud has network resources available. See Retrieve a List of Available Portgroups and Switches from a vCenter Server
Procedure
Example: Create a VXLAN-Backed Network Pool
This example creates a VXLAN-backed network pool. You must use the NSX API to retrieve the transport zone MoRef and VimObjectType that are required in the TransportZoneRef.
POST https://vcloud.example.com/api/admin/extension/networkPools Content-Type: application/vnd.vmware.admin.networkPool+xml ... <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <vmext:VMWNetworkPool xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:vmext="http://www.vmware.com/vcloud/extension/v1.5" name="Example VXLAN Pool" type="application/vnd.vmware.admin.networkPool xml"> <vcloud:Description>Example VXLAN-backed network pool</vcloud:Description> <vmext:TransportZoneRef> <vmext:VimServerRef href="https://vcloud.example.com3/api/admin/extension/vimServer/9" type="application/vnd.vmware.admin.vmwvirtualcenter xml" /> <vmext:MoRef>vdnscope-12</vmext:MoRef> <vmext:VimObjectType>VDN_SCOPE</vmext:VimObjectType> </vmext:TransportZoneRef> </vmext:VMWNetworkPool>
The response includes a Task that tracks the creation of the network pool, and a set of Link elements that you can use to operate on or modify it.
201 Created Content-Type: application/vnd.vmware.admin.networkPool+xml ... <vmext:VMWNetworkPool xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:vmext="http://www.vmware.com/vcloud/extension/v1.5" name="Example VXLAN Pool" type="application/vnd.vmware.admin.networkPool+xml" href="https://vcloud.example.com/api/admin/extension/networkPool/23" ... > <vcloud:Link rel="up" type="application/vnd.vmware.admin.vmwNetworkPoolReferences+xml" href="https://vcloud.example.com/api/admin/extension/networkPoolReferences" /> <vcloud:Link rel="edit" type="application/vnd.vmware.admin.networkPool+xml" href="https://vcloud.example.com/api/admin/extension/networkPool/23" /> <vcloud:Link rel="remove" href="https://vcloud.example.com/api/admin/extension/networkPool/23" /> <vcloud:Description>Example VXLAN-backed network pool</vcloud:Description> <vcloud:Tasks> <vcloud:Task status="running" ... operation="Creating Network Pool 23" ... </vcloud:Task> </vcloud:Tasks> ... </vmext:VMWNetworkPool>