Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

show ovsdb logical-switch

Syntax

Description

Note:

In the Open vSwitch Database (OVSDB) schema for physical devices, the logical switch table stores information about the Layer 2 broadcast domain that you configured in a VMware NSX or Contrail environment. In the NSX environment, the Layer 2 broadcast domain is known as a logical switch, while in the Contrail environment, the domain is known as a virtual network.

In the context of the show ovsdb logical-switch command, the term logical switch refers to the logical switch or virtual network that was configured in the NSX or Contrail environments, respectively, and the corresponding configuration that was pushed to the OVSDB schema.

Display information about logical switches and the corresponding Virtual Extensible LANs (VXLANs), which were configured on the Juniper Networks device.

In the command output, each logical switch is identified by a universally unique identifier (UUID), which in the context of this command, is also known as a logical switch name.

The show ovsdb logical-switch command displays the state of the logical switch (Flags), which can be one of the following:

Created by Controller

A logical switch is configured. However, a corresponding VXLAN is not yet configured. In this state, the logical switch and corresponding VXLAN are not yet operational.

Created by L2ALD

A VXLAN is configured. However, a corresponding logical switch is not yet configured. In this state, the logical switch and corresponding VXLAN are not yet operational.

Created by both

A logical switch and a corresponding VXLAN are configured. In this state, the logical switch and corresponding VXLAN are operational.

Tunnel key mismatch

The VNIs specified in the logical switch and corresponding VXLAN configurations do not match. In this state, the logical switch and corresponding VXLAN are not yet operational.

Options

none

Display information about all logical switches that are present in the OVSDB schema for physical devices.

logical-switch-name

Display information about the specified logical switch.

Required Privilege Level

admin

Output Fields

Table 1 lists the output fields for the show ovsdb logical-switch command. Output fields are listed in the approximate order in which they appear.

Table 1: show ovsdb logical-switch Output Fields

Field Name

Field Description

Logical Switch Name

UUID that is automatically generated and assigned to the logical switch. When you configure the corresponding VXLAN in the Junos OS CLI, you must specify the same UUID as the VXLAN name.

Flags

State of the logical switch. For possible states, see the Description section of this topic.

VNI

VNI that is configured for the logical switch and corresponding VXLAN.

Num of Remote MAC

The total number of remote media access control (MAC) addresses associated with the logical switch. These addresses are learned by software and hardware virtual tunnel endpoints (VTEPs).

Num of Local MAC

The total number of local MAC addresses associated with the logical switch. Local MAC addresses are addresses learned on the local physical ports.

Sample Output

show ovsdb logical-switch

show ovsdb logical-switch (Specific Logical Switch)

Release Information

Command introduced in Junos OS Release 14.1R2.