Skip to content

New-VCFNetworkPool

Synopsis

Adds a network pool.

Syntax

New-VCFNetworkPool [-json] <String> [<CommonParameters>]

Description

The New-VCFNetworkPool cmdlet adds a network pool.

Examples

Example 1

New-VCFNetworkPool -json (Get-Content -Raw .\samples\network-pools\networkPoolSpec.json)

This example shows how to add a network pool using a JSON specification file.

Sample JSON: Add Network Pool
{
  "name": "sfo-w01-np01",
  "networks": [
    {
      "type": "VMOTION",
      "vlanId": 2612,
      "mtu": 9000,
      "subnet": "172.18.104.0",
      "mask": "255.255.255.0",
      "gateway": "172.18.104.1",
      "ipPools": [
        {
          "start": "172.18.104.101",
          "end": "172.18.104.104"
        }
      ]
    },
    {
      "type": "VSAN",
      "vlanId": 2613,
      "mtu": 9000,
      "subnet": "172.18.105.0",
      "mask": "255.255.255.0",
      "gateway": "172.18.105.1",
      "ipPools": [
        {
          "start": "172.18.105.101",
          "end": "172.18.105.104"
        }
      ]
    }
  ]
}

Parameters

-json

Specifies the JSON specification to be used.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Common Parameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.