OpenFlow
Use these M4500 CLI commands to enable OpenFlow, configure controllers, IP mode, and fail mode, and display OpenFlow flows, groups, and tables.
show openflow
This command displays the OpenFlow feature status and configuration information.
| Default | None |
| Format | show openflow |
| Mode | Privileged EXEC |
Display Message
| Fields | Definition |
|---|---|
| Administrative Mode | The OpenFlow feature administrative mode set by the command “openflow enable”. |
| Administrative Status | The operational status of the OpenFlow feature. Although the feature may be administratively enabled, it could be operationally disabled due to various reasons |
| Disable Reason | If the OpenFlow feature is operationally disabled, then this status shows the reason for the feature to be disabled. |
| IP Address | IPv4 Address assigned to the feature. If the IP address is not assigned, then the status is None. |
| IP Mode | IP mode assigned by the command “openflow ip-mode”. The IP mode can be Auto, Static, or ServicePort IP. |
| Static IP Address | Static IP address assigned by the command “openflow static-ip”. |
| OpenFlow Variant | OpenFlow Protocol Variant. The OpenFlow protocol can be OpenFlow 1.3. |
| Default Table | The Hardware Table used as the target for flows installed by an OpenFlow 1.0 controller which is not enhanced to handle multiple hardware tables. |
| Passive Mode | The OpenFlow passive mode set by the command “openflow passive-mode”. |
show openflow configured controller
This command displays a list of configured OpenFlow controllers.
| Default | None |
| Format | show openflow configured controller |
| Mode | Privileged EXEC |
Display Message
| Fields | Definition |
|---|---|
| IP Address | IPv4 address of the controller. |
| IP Port | IPv4 port number for the controller connection. |
| Connection Mode | SSL or TCP Controller Connection mode. |
| Role | The role of the controller: Master, Equal, Slave |
show openflow installed flows
This command displays the list of configured flows on the switch.
| Format | show openflow installed flows [dest_ip <ip-address> | dest_ip_port <1-65535> | dest_mac |
<macaddr>| dscp <0-63> | ether_type <0-0xFFFF> | ingress_port <slot/port> | ip_proto <0-255> | priority <1-65535>| source_ip <ip-address> | source_ip_port <1-65535>| source_mac <macaddr> | table <10,60> | vlan <1-4093> | vlan_prio <0-7> ]
| Fields | Definition |
|---|---|
| dest_ip | The IP address of the destination. |
| dest_ip_port | The port number of the destination. |
| dest_mac | The MAC address of the destination. |
| dscp | The DSCP value. |
| ether_type | The ethertype value. |
| ingress_port | The slot and port for the ingress. |
| ip_proto | The IP protocol. |
| priority | The priority of the flow. |
| source_ip | The IP address of the source. |
| source_ip_port | The port number of the source. |
| source_mac | The MAC address of the source. |
| table | The table number. |
| vlan | The VLAN. |
| vlan_prio | The VLAN priority. |
| Default | None |
| Mode | Privileged EXEC |
Display Message
| Fields | Definition |
|---|---|
| Flow type | The type of flow. (For example, 1DOT3) |
| Macth criteria | The match criteria specified by the flow. |
| Flow table | The hardward table in which the flow is installed. |
| Flow priority | The priority of the flow versus other flows. |
| Ingress port | The port on which the flow is active. |
| Actions | The action specified by the flow. |
| Hard timeout | The number of seconds after which the flow is expired regardless of whether or not packets are hitting the entry. |
| Idle timeout | The number of seconds after which the flow is expired with no received traffic. |
| Idle | The time since the flow was hit. |
| Installed in hardware |
If the flow could be added to the hardware. 0 is displayed if the flow cannot be added. 1 is displayed if the flow was added. |
show openflow installed groups
This command displays the list of configured groups on the switch.
| Default | None |
| Format | show openflow installed groups |
| Mode | Privileged EXEC |
Display Message
| Fields | Definition |
|---|---|
| group type | Type of the Group – Indirect, All, Select etc. |
| group ID | Unique ID of the Group. |
| reference count | Group Reference Count - is used only for Indirect groups. This count indicates how many Select groups are referring to the current Indirect group. |
| duration | The time since the group was created. |
| bucket count | Number of Buckets in the group. |
| reference group ID | References the Indirect group ID and used for Select group only. |
show openflow table-status
This command displays the supported OpenFlow tables and report usage information for the tables.
| Default | None |
| Format | show openflow table-status openflow13 |
| Mode | Privileged EXEC |
Display Message
| Fields | Definition |
|---|---|
| Flow Table | OpenFlow table identifier. The range is 0 to 255. |
| Flow Table Name | The name of this table. |
| Maximum Size | Platform-defined maximum size for this flow table. |
| Number of Entries | Total number of entries in this table. The count includes delete-pending entries. |
| Hardware Entries | Number of entries currently inserted into the hardware. |
| Software-Only Entries | Number of entries that are not installed in the hardware for any reason. This includes entries pending for insertion, entries that cannot be inserted due to missing interfaces and entries that cannot be inserted due to table-full condition. |
| Waiting for Space Entries | Number of entries that are not currently in the hardware because the attempt to insert the entry failed. |
| Flow Insertion Count | Total number of flows that were added to this table since the switch powered up. |
| Flow Deletion Count | Total number of flows that were deleted from this table since the switch powered up. |
| Insertaion Failure Count | Total number of hardware insertion attempts that were rejected due to lack of space since the switch powered up. |
| Flow Table Description | A detailed description for this table. |
openflow enable
This command enables or disables the OpenFlow feature. If the OpenFlow feature is not in disabled state, then enabling has no effect on the OpenFlow feature.
To return the mode to the default, use the no form of this command. If the OpenFlow feature is not in enabled state, then issuing this command has no effect on the OpenFlow feature. The OpenFlow feature can be administratively disabled at any time.
| Default | Disabled |
| Format |
|
| Mode | Global Config |
openflow static-ip
This command sets the IP address to be used for the OpenFlow feature. The static IP is applied only when the static IP mode is enabled. The switch must have an operational IP interface with the specified address in order for the static IP address to be used for the OpenFlow feature. If the system does not have an interface with a matching IP address then the OpenFlow feature is operationally disabled.
If the OpenFlow feature is enabled when this command is issued and the specified static IP address is not the same as the IP address already in use by the OpenFlow feature then the feature is automatically disabled and re-enabled.
To set the OpenFlow Static IP address to 0.0.0.0, use the no form of this command. Issuing this command when OpenFlow is enabled and using a static IP causes the OpenFlw feature to become operationally disabled.
| Default | 0.0.0.0 |
| Format |
|
| Mode | Global Config |
openflow controller
Specify up to twenty IP addresses to which the switch should establish an OpenFlow Controllers connection. Each command invocation specifies one IP address and connection mode (TCP or SSL). If the IP Port is omitted then the default IP port number 6633 is used. The default connection mode is SSL. The controller table configured by this command is used by the switch in OpenFlow 1.3 modes.
To delete the specified OpenFlow Controller IP address or delete all Controller addresses, use the no form of this command. If the IP Port number is omitted then all entries for the specified IP address are deleted.
| Format | openflow controller <ip-address> [ip-port][connection mode] |
no openflow controller { ip-address [ip-port] | all}
| Fields | Definition |
|---|---|
| ip-address | Specify up to five IP addresses to which the switch should establish an OpenFlow Management connection. |
| ip-port | IP port to use for an OpenFlow Management connection. If the IP Port is omitted, then the default IP port number 6632 is used. |
| connection mode | TCP or SSL. The default is SSL. |
| Mode | Global Config |
openflow ip-mode
This command directs the OpenFlow feature to use the configured IP address. Issuing this command when OpenFlow is already enabled causes the feature to be disabled and re-enabled with the new IP address.
To direct the OpenFlow feature to automatically assign the IP address to itself, use the no form of this command.
| Format | openflow ip-mode {auto | static | serviceport} |
no openflow ip-mode
| Default | Disabled |
| Mode | Global Config |
openflow passive-mode
This command enables OpenFlow passive-mode.
To disable OpenFlow passive-mode, use the no form of this command.
| Format | openflow passive-mode |
no openflow passive-mode
| Default | Disabled |
| Mode | Global Config |
openflow failmode
This command configures the OpenFlow fail mode of connection interruption. It can choose the Fail-Secure or Fail-Standalone mode.
In the case that a switch loses contact with all controllers, the switch should immediately enter either “fail secure mode” or “fail standalone mode”. In “fail secure mode”, the only change to switch behavior is that packets and messages destined to the controllers are dropped. Flow entries should continue to expire according to their timeouts. In “fail standalone mode”, the switch processes all packets using the OFPP_NORMAL reserved port; in other words, the switch acts as a legacy Ethernet switch or router.
To reset to the default failmode, use the no form of this command.
| Format | openflow failmode {secure | standalone} |
no openflow failmode
| Default | Secure |
| Mode | Global Config |
clear openflow ca-cert
This command erases the Certificate Authority certificates used for validating the OpenFlow Controllers from the switch. Issuing this command automatically disables and re-enables the OpenFlow feature. The new SSL certificates are reloaded from the OpenFlow Controller on the first connection to the controller or can be manually loaded with a copy command.
| Format | clear openflow ca-cert |
| Mode | Privileged Exec |