Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

update-nic with multiple nics #505

Open
jpbuecken opened this issue Nov 4, 2019 · 1 comment
Open

update-nic with multiple nics #505

jpbuecken opened this issue Nov 4, 2019 · 1 comment

Comments

@jpbuecken
Copy link

jpbuecken commented Nov 4, 2019

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
Copy link

Hello,

I am also interested in this option :).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants