Displaying the OpenFlow Flows

You can display the OpenFlow flows that are configured on the device and their statistics by using the show openflow flows command.

device(config)# show openflow flows eth 1/1/2

The show openflow flows command shows all the flows configured in the system flow table. If you specify the interface, all the flows configured in the system for that interface are displayed.

device(config)# show openflow flows
Flow ID: 1 Priority: 1 Status: Active
        Rule:
           In Port:      e1/1/1
           In Vlan:      Tagged[100]
			Vlan Mask:		0xfff
           Vlan PCP:     3
           Source Mac:   0000.0000.0001 
           Destination Mac:      0000.0000.0002 
           Source Mac Mask:      ffff.ffff.ffff                   
           Destination Mac Mask:         ffff.ffff.ffff 
           Ether type:   0x00000800 
           Source IP:            1.1.1.0        Subnet IP:       255.255.255.0 
           Destination IP:       2.2.2.0        Subnet IP:       255.255.255.0 
           IP TOS:       8 
           IP Protocol:          17 
           IP Protocol Source Port:      10000 
           IP Protocol Destination Port:         80
			Cookie:		abcdef
			Cookie Mask:	0xfffff

      Timing Info: 
           Idle Timeout                         :   500 secs
           Hard Timeout                         :  3000 secs
           Time Elapsed(Since Flow Added)       :     6 secs
           Time Elapsed(Since Last Packet Hit)  :     6 secs

		Instruction: Apply Action 
        Action: FORWARD
           Out Port:  e1/1/2, Tagged, Vlan: 10
		Action: FORWARD
			Out Port: e1/1/3, Tagged, Vlan: 20
        Statistics: 
			Total Packets: 0
       Total Bytes: 0
Flow ID: 10 Priority: 1 Status: Active
        Rule:
           In Port:      e1/1/17
           Ether type:   0x800 
           Destination IP:       177.1.1.0      Subnet IP:       255.255.255.0 
        Instructions: Apply-Actions
                Action: FORWARD
                        Out Port: normal
        Statistics: 
           Total Pkts: 0
           Total Bytes: 0

Flow ID: 11 Priority: 1 Status: Active
        Rule:
           In Port:      e1/1/17
           Ether type:   0x800 
           Destination IP:       180.1.1.0      Subnet IP:       255.255.255.0 
        Instructions: Apply-Actions
                Action: FORWARD
                        Out Port:  e1/1/2
                        Out Port: normal
        Statistics: 
           Total Pkts: 0
           Total Bytes: 0

Flow ID: 12 Priority: 1 Status: Active
        Rule:
           In Port:      e1/1/17
           Ether type:   0x800 
           Destination IP:       188.1.1.0      Subnet IP:       255.255.255.0 
        Instructions: Apply-Actions
                Action: FORWARD
                        Out Port: FLOOD
        Statistics: 
           Total Pkts: 0
           Total Bytes: 0

Flow ID: 13 Priority: 1 Status: Active
        Rule:
           In Port:      e1/1/17
           Ether type:   0x800 
           Destination IP:       199.1.1.0      Subnet IP:       255.255.255.0 
        Instructions: Apply-Actions
                Action: FORWARD
                        Out Port: ALL
        Statistics: 
           Total Pkts: 0
           Total Bytes: 0

Output Fields for the Show Openflow Flows Command

Field

Description

Port

Port ID

VLAN

VLAN ID

Flow ID

An identifier for each flow. You can use the flow ID from this output to display flow-specific details.

Priority

The priority of the flow set by the controller when the flow is added, in the range 0 through 32768. If the priority value is not specified, the device assigns the default value of 32768. Priority 32768 has the highest priority. Priority 0 is reserved for unprotected VLAN support.

Status

Indicates whether the flow is configured correctly in the device. An active status indicates a correctly configured flow.

Rule

A destination MAC address mask of ffff.ffff.ffff indicates that only packets exactly matching the specified destination MAC address are forwarded.

Instructions

Indicates the device action on the received packets.

Statistics

Indicates the counter of packets and bytes.