show ovsdb logical-switch
Syntax
show ovsdb logical-switch <logical-switch-name>
Description
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.
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
user@host> show ovsdb logical-switch Logical switch information: Logical Switch Name: 24a76aff-7e61-4520-a78d-3eca26ad7510 Flags: Created by both VNI: 3 Num of Remote MAC: 13 Num of Local MAC: 12 Logical Switch Name: 9b4f880e-dac8-4612-a832-97ad9dec270f Flags: Created by Controller VNI: 50 Num of Remote MAC: 0 Num of Local MAC: 0 Logical Switch Name: bc0da2da-6c16-44bf-b655-442484294ded Flags: Created by Controller VNI: 51 Num of Remote MAC: 0 Num of Local MAC: 0
show ovsdb logical-switch (Specific Logical Switch)
user@host> show ovsdb logical-switch 24a76aff-7e61-4520-a78d-3eca26ad7510 Logical switch information: Logical Switch Name: 24a76aff-7e61-4520-a78d-3eca26ad7510 Flags: Created by both VNI: 3 Num of Remote MAC: 13 Num of Local MAC: 12
Release Information
Command introduced in Junos OS Release 14.1R2.