Managing Network Virtualization and Network Resources in Oracle® Solaris 11.2

Exit Print View

Updated: September 2014
 
 

Deleting an Elastic Virtual Switch

This section describes how to delete an elastic virtual switch. You can delete an elastic virtual switch only when all the VPorts of an elastic virtual switch are free. Therefore, VPorts must not be associated with VNICs.

How to Delete an Elastic Virtual Switch

  1. Become an administrator or user with the Elastic Virtual Switch Administration rights profile.

    For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2 .

  2. Check whether VPorts are used by the elastic virtual switch.
    # evsadm show-evs

    You cannot delete an elastic virtual switch if a VPort is in use. A VPort is in use if a VNIC is connected to the VPort. The STATUS field in the evsadm show-evs command output displays whether an elastic virtual switch is busy or idle.

    If a VPort is in use, you need to delete the VNIC associated with the VPort as follows:

    # dladm delete-vnic VNIC
  3. Delete the elastic virtual switch.
    # evsadm delete-evs [-T tenant-name] EVS-switch-name

    This command deletes the specified elastic virtual switch and all the VPorts and the IPnet associated with the elastic virtual switch.

Example 6-15  Deleting an Elastic Virtual Switch

The following example shows how to delete the elastic virtual switch ORA.

# evsadm show-evs
EVS           TENANT        STATUS NVPORTS IPNETS      HOST
ORA           sys-global    idle   0       ora_ipnet   --
# evsadm delete-evs ORA
# evsadm show-evs ORA
evsadm: failed to show EVS(s): evs not found

The following example shows how to delete the elastic virtual switch EVS1, which is busy.

# evsadm show-evs EVS1
EVS           TENANT        STATUS NVPORTS IPNETS      HOST
EVS1          sys-global    busy   1       evs1_ipnet  s11-server
# evsadm show-vport EVS1/vport1
NAME                TENANT        STATUS VNIC         HOST
EVS1/vport1         sys-global    used   vnic1        s11-server
# dladm delete-vnic vnic1
# evsadm show-evs EVS1
EVS           TENANT        STATUS NVPORTS IPNETS      HOST
EVS1          sys-global    idle   1       evs1_ipnet  --
# evsadm delete-evs EVS1
# evsadm show-evs EVS1
evsadm: failed to show EVS(s): evs not found