vcd-cli icon indicating copy to clipboard operation
vcd-cli copied to clipboard

update-nic with multiple nics

Open jpbuecken opened this issue 6 years ago • 1 comments

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.

jpbuecken avatar Nov 04 '19 16:11 jpbuecken

Hello,

I am also interested in this option :).

saeroshi avatar Feb 19 '24 14:02 saeroshi