9
Creating flow tables for an OpenFlow instance
Step Command Remarks
1. Enter system view.
system-view
N/A
2. Enter OpenFlow instance
view.
openflow instance
instance-id N/A
3. Configure the flow table type
and the flow table ID.
flow-table
{ [
ingress-vlan
ingress-table-id ] [
extensibility
extensibility-table-id |
mac-ip
mac-ip-table-id ] * [
egress-vlan
egress-table-id ] }
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.
The VLAN tagging flow table and
untagging flow table take effect
only when the following conditions
are met:
• The OpenFlow instance is
configured to perform QinQ
tagging for double-tagged
packets passing an
extensibility flow table.
• The OpenFlow instance uses
the standalone connection
interruption mode.
The
ingress-vlan
ingress-table-id
and
egress-vlan
egress-table-id
options are available in Release
1121 and later.
Setting the controller mode
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.
In this mode, an OpenFlow instance attempts to connect to a controller one by one in ascending
order of controller ID until it successfully connects to a controller. If multiple controllers that are
configured for the OpenFlow instance are unreachable, it might take a long time for the
OpenFlow instance to connect to a reachable 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 Command Remarks
1. Enter system view.
system-view
N/A