vmware-archive / vcd-cli

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

update-nic with multiple nics #505

Open jpbuecken opened 4 years ago

jpbuecken commented 4 years ago

Hello, if I have a VM with more than one nic, how can I change the adapter type of a specific nic?

Missing an argument or option to specify the index (e.g. from vcd vm list-nics)

vcd vm update-nic --adapter-type VMXNET3 <vapp-name> <vm-name> <nic-index>
or
vcd vm update-nic --index 1 --adapter-type VMXNET3 <vapp-name> <vm-name>
vcd vm update-nic -h
Usage: vcd vm update-nic [OPTIONS] <vapp-name> <vm-name>

Options:
  --adapter-type <adapter-type>   adapter type of nic - one of
                                  VLANCE|VMXNET|VMXNET2|VMXNET3|E1000
  --primary                       whether nic has to be a primary
  --connect                       whether nic has to be connected
  --network <network>             network to connect to  [required]
  --ip-address-mode <ip-address-mode>
                                  IP address allocation mode - one of
                                  DHCP|POOL|MANUAL|NONE
  --ip-address <ip-address>       nanual IP address that needs to be allocated
                                  to the nic
  -h, --help                      Show this message and exit.
saeroshi commented 6 months ago

Hello,

I am also interested in this option :).