Show OpenFlow instance flows
Shows the flow table entries for a particular OpenFlow instance.
Syntax
show openflow instance <instance-name> flows {flow-type}
flow-type
shows the flow table entries for a particular OpenFlow instance.
The various flows that can be shown using the flow-type are:
destination-ip
Show flows matching the destination IP address.
destination-mac
Show flows matching the destination MAC address.
destination-port
Show flows matching the destination port.
ethernet-type
Show flows matching the EtherType.
ip-protocol
Show flows matching the IP protocol.
ip-tos-bits
Show flows matching the IP ToS bits.
source-ip
Show flows matching the source IP address.
source-mac
Show flows matching the source MAC address.
source-port
Show flows matching the source port.
vlan-id
Show flows matching the VLAN ID.
vlan-priority
Show flows matching the VLAN priority.
Example: Flow version 1.0
(<openflow>)# show openflow instance titan flows Flow 1 Match Incoming Port : F24 Ethernet Type : IP Source MAC : 000000-000000 Destination MAC : 000000-000000 VLAN ID : 0 VLAN Priority : 0 Source Protocol Address : 255.255.255.255/32 Target Protocol Address : 128.128.128.128/32 IP Protocol : 0x00 IP ToS Bits : 0 Source Port : 0 Destination Port : 0 Attributes Priority : 32768 Duration : 10 secs Hard Timeout : 0 secs Idle Timeout : 60 secs Byte Count : 0 Packet Count : 0 Controller ID : 1 Cookie : 0x0 Flow Location : Software Hardware Index : 1 Reason Code : 100 Reason Description : Rule is in hardware Actions Modify Destination IP : 183.23.45.64 Modify Source IP : 200.123.23.54 Output : A21
Example: Flow version 1.3
(<openflow>)# show openflow instance titan flows Flow 1 Match Incoming Port : 1/17 Ethernet Type : IP Source MAC : 000000-000000 Destination MAC : 000000-000000 VLAN ID : 0 VLAN Priority : 0 Source Protocol Address : 255.255.255.255/32 Target Protocol Address : 128.128.128.128/32 IP Protocol : TCP IP ToS Bits : 0 IP ECN : 0 IP DSCP : 18 Source Port : 0 Destination Port : 0 Attributes Priority : 32768 Duration : 10 secs Hard Timeout : 0 secs Idle Timeout : 0 secs Byte Count : 5040 Packet Count : 28 Flow Table ID : 3 Controller ID : 1 Activity Count : 0xffffffff Cookie : 0x0 Hardware Index : 1 Instructions Clear Actions Write Actions Pop VLAN Push VLAN Decrement TTL Output: : 3/24, 4/5, 1/18 Goto Table ID: 2 Flow 2 Match Incoming Port : Trk1 Ethernet Type : IPv6 Source MAC : 000000-000000 Destination MAC : 000000-000000 VLAN ID : 0 VLAN Priority : 0 Source Protocol Address : 255.255.255.255/32 Target Protocol Address : 128.128.128.128/32 IPv6 Flow Label : 0 IPv6 Ext. Header : Fragment ND Source MAC : 000000-000000 ND Destination MAC : 00000-000000 ND Target IP : 0:0:0:0:0:0:0:0 IP Protocol : 0x2C IP ECN : 0 IP DSCP : 20 Source Port : 0 Destination Port : 0 Attributes Priority : 12345 Duration : 10 secs Hard Timeout : 300 secs Idle Timeout : 160 secs Byte Count : 0 Packet Count : 0 Flow Table ID : 6 Controller ID : 1 Activity Count : 0xffffffff Cookie : 0x0 Hardware Index : 1 Instructions Apply Actions Modify Destination IP : 2000::5 Modify Source IP : 2000::6 Modify Source MAC : 121212-121212 Modify Destination MAC : 131313-131313 Modify VLAN ID : 123 Modify IP DSCP : 18 Modify IP ECN : 1 Decrement TTL Meter ID : 112 Group ID : 2 Write Actions Decrement TTL Goto Table ID : 4 Flow 3 Match Incoming Port : 0 Ethernet Type : ARP Source MAC : 000000-000000 Destination MAC : 000000-000000 VLAN ID : 0 VLAN Priority : 0 ARP Opcode : 1 ARP Source MAC : 00A0C9-22B210 ARP Target MAC : 000000-000000 Source Protocol Address : 255.255.255.255/32 Target Protocol Address : 128.128.128.128/32 Attributes Priority : 32768 Duration : 10 secs Hard Timeout : 0 secs Idle Timeout : 0 secs Byte Count : 12450 Packet Count : 2323 Flow Table ID : 3 Controller ID : 3 Activity Count : 0xffffffff Cookie : 0x0 Hardware Index : 1 Flow 4 Match Source MAC : 000000-000000 Ethernet Type : 0x8035 VLAN ID : 0 Destination MAC : 000000-000000 ARP Opcode : 0 VLAN Priority : 0 ARP Source MAC : 000000-000000 ARP Target MAC : 000000-000000 Source Protocol Address : 0.0.0.0 Target Protocol Address : 0.0.0.0 Source IP : 0.0.0.0 Destination IP : 0.0.0.0 ARP Target IP : 0.0.0.0 IPv6 Flow Label : 0 IPv6 Ext. Header : None ND Source MAC : 000000-000000 ND Target IP : 0:0:0:0:0:0:0:0 ND Destination MAC : 000000-000000 IP Protocol : 0x00 IP ECN : 0 IP DSCP : 0 Source Port : 0 Destination Port : 0 Attributes Priority : 32768 Duration : 15 secs Hard Timeout : 0 secs Idle Timeout : 50 secs Byte Count : 0 Packet Count : 0 Flow Table ID : 5 Controller ID : 5 Activity Count : 0xffffffff Cookie : 0x0 Hardware Index : 1 Instructions Write Actions Output : 2/1 Output : Controller