When you activate an OpenFlow instance that is associated with non-existent VLANs, the system
•
automatically creates the VLANs. Do not delete any of these VLANs after the OpenFlow instance is
activated.
To associate an OpenFlow instance with VLANs:
Step
1.
Enter system view.
2.
Enter OpenFlow instance
view.
3.
Associate the OpenFlow
instance with VLANs.
Configuring flow table IDs
Step
1.
Enter system view.
2.
Enter OpenFlow instance
view.
3.
Configure the flow table type
and the flow table ID.
Setting the controller mode for an OpenFlow instance
An OpenFlow instance can connect to one or more controllers, depending on the controller mode the
OpenFlow instance uses:
Single—The OpenFlow instance connects to only one controller at a time. When communication
•
with the current controller fails, the OpenFlow instance uses another controller.
Multiple—The OpenFlow instance can simultaneously connect to multiple controllers. When
•
communication with any controller fails, the OpenFlow instance attempts to reconnect to the
controller after a reconnection interval.
To set the controller mode for an OpenFlow instance:
Step
1.
Enter system view.
Command
system-view
openflow instance instance-id
classification vlan vlan-id [ mask
vlan-mask ] [ loosen ]
Command
system-view
openflow instance instance-id
flow-table { extensibility table-id |
mac-ip table-id }*
Command
system-view
7
Remarks
N/A
N/A
By default, an OpenFlow instance
is not associated with any VLAN.
Remarks
N/A
N/A
By default, an OpenFlow instance
contains one extensibility flow
table with an ID of 0.
An OpenFlow instance supports
only one MAC-IP flow table and
one extensibility flow table. If you
execute the command multiple
times, the most recent
configuration takes effect.
The ID of the MAC-IP flow table
must be smaller than that of the
extensibility flow table.
Remarks
N/A