To delete a vswitch, first stop the vswitch using the —h option
to the hpvmnet command. Then delete the vwitch using the -d option
to the hpvmnet command. For example, the following command
shows the error that prevents you from deleting an active vswitch (clan1):
# hpvmnet -S clan1 -d
hpvmnet: The vswitch is currently active
hpvmnet: Unable to continue
|
The following example uses the hpvmnet command to
halt the vswitch and then to delete it. Both commands require you to confirm
the action. The third command displays the current vswitches (without clan1).
# hpvmnet -S clan1 -h
hpvmnet: Halt the vswitch 'clan1'? [n]: y
# hpvmnet -S clan1 -d
hpvmnet: Remove the vswitch 'clan1'? [n] y
# hpvmnet -v
Name Number State Mode PPA MAC Address IP Address
======== ====== ======= ========= ====== ============== ===============
localnet 1 Up Shared N/A N/A
myswitch 2 Up Shared N/A N/A
|
When an active vswitch is deleted, the VM Host automatically determines
that the vswitch is gone. When the vswich is re-created, the guest network
automatically becomes functional again.