- Preface
- New and Changed Information
- Overview
- Configuring Switch Profiles
- Configuring Module Pre-Provisioning
- Using Cisco Fabric Services
- Configuring PTP
- Configuring User Accounts and RBAC
- Configuring Session Manager
- Configuring Online Diagnostics
- Configuring System Message Logging
- Configuring Smart Call Home
- Configuring Rollback
- Configuring DNS
- Configuring SNMP
- Configuring RMON
- Configuring SPAN
- Configuring ERSPAN
- Configuring NTP
- Configuring EEM
- Configuring OpenFlow
- Configuring Secure Erase
- Soft Reload
- Configuring GIR (Cisco NX-OS Release 7.3(0)N1(1))
- Configuring GIR (Cisco NX-OS Release 7.1(0)N1(1))
- Class-based Quality-of-Service MIB
- Index
- Information About OpenFlow
- OpenFlow Limitations
- Supported Interface Types
- Unsupported Interface Types
- Supported Interface Modes
- Supported Match Fields
- Supported Actions
- Scale Flow Numbers
- Pipeline Support
- Prerequisites for OpenFlow
- Setting Up an OpenFlow Virtual Service
- Enabling OpenFlow
- Configuring the OpenFlow Switch
- Verifying OpenFlow
Configuring OpenFlow
This chapter contains the following sections:
- Information About OpenFlow
- OpenFlow Limitations
- Supported Interface Types
- Unsupported Interface Types
- Supported Interface Modes
- Supported Match Fields
- Supported Actions
- Scale Flow Numbers
- Pipeline Support
- Prerequisites for OpenFlow
- Setting Up an OpenFlow Virtual Service
- Enabling OpenFlow
- Configuring the OpenFlow Switch
- Verifying OpenFlow
Information About OpenFlow
OpenFlow is a specification from the Open Networking Foundation (ONF) that defines a flow-based forwarding infrastructure (L2-L4 Ethernet switch model) and a standardized application programmatic interface (protocol definition) to learn capabilities, add and remove flow control entries and request statistics. OpenFlow allows a controller to direct the forwarding functions of a switch through a secure channel.
Cisco ONE Platform Kit provides the ability to host Cisco internal or external third party applications on or adjacent to Cisco’s networking infrastructure, and enables programmatic access to networking services in a controlled and consistent manner. When hosting applications on Cisco routers or switches, the applications will run within a virtual-machine or container.
OpenFlow Limitations
The Cisco Nexus 5500 and Cisco Nexus 6000 switches do not support the OpenFlow action to rewrite the layer-2 destination MAC address. Therefore, the XNC controller use cases such as Topology Independent Forwarding and Latency Optimized Forwarding may not be work correctly on the Cisco Nexus 5500 and Cisco Nexus 6000 switches.
Supported Interface Types
The following is a list of supported interface types:
Unsupported Interface Types
The following is a list of unsupported interface types:
Supported Interface Modes
The following is a list of supported interface modes:
Supported Match Fields
The following are lists of supported match fields:
Supported Actions
The following is a list of supported actions:
Scale Flow Numbers
Pipeline Support
OpenFlow policies can be applied to the ACL-table and the MAC-table. OpenFlow relates tables by means of the ‘pipeline’ concept. The Cisco Nexus device supports two pipelines, 201 and 202. You can toggle the pipeline between 201and 202 by entering the pipeline id command in the openflow-agent logical switch configuration.
-
Pipeline 201
-
Pipeline 202
-
Flows can be added to both the ACL-table(ACL TCAM) and the MAC-table(STM table).
-
Flows with only L2-dest-mac and VLAN as the match criteria are installed in the MAC-table. The remaining flows are installed in ACL-table
-
Supported actions for the MAC-table are redirect-to-port and drop.
-
The MAC-table supports a higher scale number than the ACL-table.
-
Prerequisites for OpenFlow
The OpenFlow agent requires the Cisco Nexus device to be configured with OpenFlow specific commands in order to support topology discovery and the installation of flows. The Cisco Nexus device works in a hybrid mode so that the default commands from the startup-config file are executed upon boot up. This might create an undesirable effect and therefore must be changed.
![]() Note | If you change or negate these required commands, it can lead to unpredictable system behavior. |
VLAN Creation
The following command is used to create the necessary VLANs in an OpenFlow-controller switch. This command creates the OpenFlow specific VLANs in the VLAN database.
vlan x[-y]
Even with the hybrid-Ships-In-Night mode of operation, we recommend that you segregate the VLANs among the OpenFlow-controlled ports and the regular ports. You should take caution in ensuring that the VLANs are not shared among the OpenFlow and non-OpenFlow ports in order to prevent traffic leaks.
Interface Level Configurations
To make the interfaces connected to other switches receive spanned traffic, the interface is connected to the analyzer and configured to support OpenFlow. The interface ethernet command changes the parser to the interface submode. Before entering the mode openflow command which enables OpenFlow support on the interface, the following commands are required:
Cisco One controllers can perform topology discovery of OpenFlow enabled ports. To allow topology discovery on trunk ports, the native VLANs must be configured on trunk ports
switchport trunk native vlan z
When an interface is added to the OpenFlow logical switch, the following commands are applied to the interface implicitly:
Template Based TCAM Carving for OpenFlow
The Cisco Nexus device supports template-based TCAM carving. To configure OpenFlow on the device, you must make a number of changes to the TCAM carving regions using the template based TCAM carving commands.
To configure OpenFlow on the switch you must increase the default size of the Sup region to 256 using the template based TCAM carving commands, as shown in this example:
switch(config)# hardware profile tcam resource template openflow switch(config-tcam-templ)# sup 256 switch(config)# hardware profile tcam resource service-template openflow
To support higher scale numbers for OpenFlow policies, the IFACL-region of the TCAM must be recarved accordingly. To apply TCAM carving for a maximum flow scale, enter the following commands:
switch(config)# hardware profile tcam resource template openflow
switch(config-tcam-templ)# vacl 64
switch(config-tcam-templ)# ifacl 3520
switch(config-tcam-templ)# qos 128
switch(config-tcam-templ)# rbacl 64
switch(config-tcam-templ)# span 64
switch(config)# hardware profile tcam resource service-template openflow
Enter the following command to verify the TCAM carving: show hardware profile tcam resource template tmplt-name
![]() Note | Configuring TCAM carving requires that the Cisco Nexus device be reloaded. |
Setting Up an OpenFlow Virtual Service
The virtual service manager allows you to enable the OpenFlow agent application to run as a virtual service on a container. To setup a virtual service for OpenFlow you must perform the following tasks:
Download the application OVA package to your system.
Install the OVA package for a named virtual service. For example:
switch#virtual-service install name openflow-agent package file-url
Configure and activate the virtual service. For example:
switch(config)#virtual-service openflow-agent switch(config-virt-serv)#activate
![]() Note | An active virtual service can not be updated. |
![]() Note | An active virtual service can not be removed. |
Enabling OpenFlow
OpenFlow capability is enabled by entering the hardware profile openflow command to allocate the hardware resources required for the OpenFlow agent. Following a switch reload, the hardware profile command is used to configure ACL Feature Manager (AFM) and Forwarding Manager (FWM) modules for OpenFlow functionality.
Configuring the OpenFlow Switch
You must enable OpenFlow on the switch, for the configuration to take effect.
Verifying OpenFlow
Use one of the following commands to verify the configuration:
|
Command |
Purpose |
|---|---|
show running-config | section openflow |
Displays the OpenFlow running configuration information. |
|
show running-config interface ethernet slot/port |
Displays the running configuration for a specific ethernet interface. |
show openflow openflow-agent switch number controllers |
Displays information about the OpenFlow agent connectivity to controller |
show openflow openflow-agent switch number flows |
Displays information about the OpenFlow agent flows. |
show openflow openflow-agent switch number ports |
Displays information about the OpenFlow agent port status. |

Feedback