API Guide

State: ACTIVE
sec_since_disconnect: 0
Supported
Releases
10.4.1.0 or later
switch
Creates a logical switch instance or modifies an existing logical switch instance.
Syntax
switch logical-switch-name
Parameters logical-switch-nameEnter the name of the logical switch instance that you want to create or
modify, a maximum of 15 characters. OS10 supports only one instance of the logical switch.
Default None
Command Mode OPENFLOW CONFIGURATION
Usage
Information
You must configure a controller for the logical switch instance. The logical switch instance is disabled by
default. To establish a connection with the controller, enable the logical switch instance using the no
shutdown command. All physical and logical interfaces in the switch are assigned to the configured
logical switch.
The no form of this command removes the logical switch instance.
NOTE: OS10 supports only one instance of the logical switch. If you attempt to create a second
logical switch instance, the following message appears:
% Warning: Only one Switch instance is supported
Example
OS10# config terminal
OS10 (config)# openflow
OS10 (config-openflow)# switch of-switch-1
OS10 (config-openflow-switch)# no shutdown
Supported
Releases
10.4.1.0 or later
OpenFlow-only mode commands
When you configure the switch to OpenFlow-only mode, only the following commands are available; all other commands are
disabled.
NOTE:
The ntp subcommand under the interface command is not applicable when the switch is in OpenFlow mode.
The ip and ipv6 subcommands under the interface command are applicable only when you configure the interface
as the management port using the in-band-mgmt command.
The ip and ipv6 commands must be used only in In-Band mode (using the in-band-mgmt command).
Table 112. Modes and CLI commands
Mode Available CLI commands
CONFIGURATION
aaa
alias
banner
class-map
1110 OpenFlow