vmware-archive / vcd-cli

Command Line Interface for VMware vCloud Director
https://vmware.github.io/vcd-cli
Other
165 stars 105 forks source link

No way to create OrgVDC network in new VDC #507

Open jondwaite opened 4 years ago

jondwaite commented 4 years ago

Attempting to script a completely automated build of Org, VDC, Networking, vApp/VM and test end-to-end functionality to allow us to more accurately test vCD updates/changes.

I can create the Org, OrgVDC, EdgeGW all fine, however there does not appear to be any way to allocate a network quota to the VDC. When I subsequently attempt to create an OrgVDC network to attach to the EdgeGW I get:

vcd network routed create -g test01Edge --subnet 192.168.0.1/24 --ip-range 192.168.0.100-192.168.0.199 'test-network'
Usage: vcd network routed create [OPTIONS] <name>
Try "vcd network routed create -h" for help.

Error: Status code: 400/OPERATION_LIMITS_EXCEEDED, [ 5593bd1f-9199-4216-8a18-e67d278c781b ] Unable to deploy network test-network because the network quota for this Organization VDC has been reached. (request id: 5593bd1f-9199-4216-8a18-e67d278c781b)

I can obviously update this setting in the vCD UI, but need to be able to assign a network quota to the VDC from vcd-cli (ideally as part of the VDC creation command).

Can this functionality be easily added? There doesn't appear to be any way in vcd-cli to achieve setting a VDC network pool quota.

jondwaite commented 4 years ago

It appears there is already a pending PR that addresses this issue - #427 any chance this can be merged soon?