6
Use
undo
controller mode
to restore the default.
Syntax
controller mode
{
multiple
|
single
}
undo controller mode
Default
The controller connection mode is
multiple
.
Views
OpenFlow instance view
Predefined user roles
network-admin
Parameters
multiple
: Specifies the
multiple
mode. In
multiple
mode, the OpenFlow instance simultaneously
connects to all controllers specified for the OpenFlow instance. When communication with any
controller fails, the OpenFlow instance attempts to reconnect to the controller after a reconnection
interval until a connection is successfully established.
single
: Specifies the
single
mode. In
single
mode, the OpenFlow switch connects to only one
controller at a time. When communication with the current controller fails, the OpenFlow instance
attempts to reconnect to another controller until a connection is successfully established.
Examples
# Set all controllers of OpenFlow instance 1 to operate in
single
mode.
<Sysname> system-view
[Sysname] openflow instance 1
[Sysname-of-inst-1] controller mode single
datapath-id
Use
datapath-id
to set the datapath ID for an OpenFlow instance.
Use
undo datapath-id
to restore the default.
Syntax
datapath-id
id
undo datapath-id
Default
The datapath ID of an OpenFlow instance contains the instance ID and the bridge MAC address of
the device. The lower 16 bits are the instance ID and the upper 48 bits are the bridge MAC address
of the device.
Views
OpenFlow instance view
Predefined user roles
network-admin
Parameters
id
: Specifies the datapath ID for the OpenFlow instance, in the range of 1 to ffffffffffffffff in
hexadecimal format.