...
Code Block |
---|
language | bash |
---|
linenumbers | false |
---|
|
vss-cli compute net ls -f name=PUBLIC
moref name description subnet vlan_id vms
----------------- ------------------ --------------------------- -------------- --------- -----
dvportgroup-11052 VL-1584-VSS-PUBLIC VSS Public network 142.1.216.0/23 1584 8 |
Anchor |
---|
| ManageNetworksandInterfaceCards-Info |
---|
| ManageNetworksandInterfaceCards-Info |
---|
|
InfoNetwork info is available by vss-cli compute net get <name-or-moref>
and provides basic information of a given network:
...
Code Block |
---|
language | bash |
---|
linenumbers | false |
---|
|
vss-cli compute vm get 501220a5-a091-1866-9741-664236067142 nic 1
label : Network adapter 1
mac_address : 00:50:56:00:00:00
type : vmxnet3
network.name : VL-1584-VSS-PUBLIC
network.moref : dvportgroup-11052
connected : True
start_connected : True |
Anchor |
---|
| ManageNetworksandInterfaceCards-Update |
---|
| ManageNetworksandInterfaceCards-Update |
---|
|
UpdateUpdate a given virtual machine network interface card backing network by running vss-cli compute vm <name-or-uuid> nic up --network <name-or-moref> <unit>
where uuid
is the virtual machine UUID or name, unit
is the nic labeled unit and moref is the virtual network identifier or name.
...
Code Block |
---|
language | bash |
---|
linenumbers | false |
---|
|
vss-cli compute vm set 501220a5-a091-1866-9741-664236067142 nic up --state connect 1 |
Anchor |
---|
| ManageNetworksandInterfaceCards-Create |
---|
| ManageNetworksandInterfaceCards-Create |
---|
|
CreateCreate a new virtual machine network adapter by using the sub command mk
and providing the backing network and type separated by the =
sign in the option. i.e. <moref-or-name>=<nic_type>
.
...
Code Block |
---|
language | bash |
---|
linenumbers | false |
---|
|
vss-cli compute vm set 1909P-WEB nic mk -n dvportgroup-1083=vmxnet2 -n dvportgroup-1094 |
Anchor |
---|
| ManageNetworksandInterfaceCards-Remove |
---|
| ManageNetworksandInterfaceCards-Remove |
---|
|
RemoveNetwork adapter removal will ask for confirmation if flag -r/--rm
is not provided. This is just as fail safe for mistakes that can happen and since nic removal is a one way action, which disposes the MAC address.
...