This example shows how you can view
information related to OpenFlow on the logical switch.
Switch#show openflow switch 1
Logical Switch Context
Id: 1
Switch type: Forwarding
Pipeline id: 1
Data plane: secure
Table-Miss default: drop
Configured protocol version: Negotiate
Config state: no-shutdown
Working state: enabled
Rate limit (packet per second): 0
Burst limit: 0
Max backoff (sec): 8
Probe interval (sec): 5
TLS local trustpoint name: not configured
TLS remote trustpoint name: not configured
Logging flow changes: Disabled
Stats collect interval (sec): 7
Stats collect Max flows: 1000
Stats collect period (sec): 1
Minimum flow idle timeout (sec): 14
OFA Description:
Manufacturer: Cisco Systems, Inc.
Hardware: WS-C2960X-48LPS-L
Software: Cisco IOS Software, C2960X Software (C2960X-UNIVERSALK9-M), Version 15.2(5.1.50)E, TEST ENGINEERING ESTG_WEEKLY BUILD, synced to V152_4_1_20_E1| openvswitch 2.1
Serial Num: FCW1910B5QR
DP Description: 2960xr:sw1
OF Features:
DPID: 0x0000000000000251
Number of tables: 1
Number of buffers: 256
Capabilities: FLOW_STATS TABLE_STATS PORT_STATS
Controllers:
10.106.253.118:6653, Protocol: TCP, VRF: default
Interfaces:
GigabitEthernet1/0/1
GigabitEthernet1/0/2
-----------------------------------------------------------------------------------------------------
This example shows how you can view information related to the
connection status between an OpenFlow logical switch and connected Controllers.
Switch#show openflow switch 1 controllers
Logical Switch Id: 1
Total Controllers: 1
Controller: 1
10.106.253.118:6653
Protocol: tcp
VRF: default
Connected: Yes
Role: Equal
Negotiated Protocol Version: OpenFlow 1.3
Last Alive Ping: 2016-04-03 18:40:48 UTC
state: ACTIVE
sec_since_connect: 192038
Switch#show openflow switch 1 controllers stats
Logical Switch Id: 1
Total Controllers: 1
Controller: 1
address : tcp:10.106.253.118:6653
connection attempts : 9
successful connection attempts : 1
flow adds : 1
flow mods : 0
flow deletes : 0
flow removals : 0
flow errors : 0
flow unencodable errors : 0
total errors : 0
echo requests : rx: 0, tx:0
echo reply : rx: 0, tx:0
flow stats : rx: 64004, tx:64004
barrier : rx: 0, tx:0
packet-in/packet-out : rx: 0, tx:0
-----------------------------------------------------------------------------------------------------
This example shows how you can view the mapping between physical
device interfaces and ports of OpenFlow logical switch.
Switch#show openflow switch 1 ports
Logical Switch Id: 1
Port Interface Name Config-State Link-State Features
1 Gi1/0/1 PORT_UP LINK_UP 1GB-FD
2 Gi1/0/2 PORT_UP LINK_UP 1GB-FD
-----------------------------------------------------------------------------------------------------
This example shows how you can view flows defined for the device by
controllers.
Switch#show openflow switch 1 flows
Logical Switch Id: 1
Total flows: 2
Flow: 1
Match:
Actions: drop
Priority: 0
Table: 0
Cookie: 0x0
Duration: 4335.022s
Number of packets: 18323
Number of bytes: 1172672
Flow: 2
Match: ipv6
Actions: output:2
Priority: 1
Table: 0
Cookie: 0x0
Duration: 727.757s
Number of packets: 1024
Number of bytes: 131072
-----------------------------------------------------------------------------------------------------
This example shows how you can view the send and receive statistics
for each port defined for an OpenFlow logical switch.
Switch#show openflow switch 1 stats
Logical Switch Id: 1
Total ports: 2
Port 1: rx
tx
Port 2: rx
tx
Total tables: 1
Table 0: Main
Wildcards = 0x00000
Max entries = 1000
Active entries = 2
Number of lookups = 0
Number of matches = 0
-----------------------------------------------------------------------------------------------------
This example shows how you can view configurations made for OpenFlow.
Switch#show running-config | section openflow
feature openflow
mode openflow
mode openflow
openflow
switch 1 pipeline 1
controller ipv4 10.106.253.118 port 6653 security none
of-port interface GigabitEthernet1/0/1
of-port interface GigabitEthernet1/0/2
datapath-id 0x251
-----------------------------------------------------------------------------------------------------
This example shows how you can view OpenFlow hardware configurations.
Switch#show openflow hardware capabilities
Max Flow Batch Size: 100
Statistics Max Polling Rate (flows/sec): 1024
Max Interfaces: 1000
Aggregated Statistics: YES
Pipeline ID: 1
Pipeline Max Flows: 1000
Pipeline Default Statistics Collect Interval: 7
Flow table ID: 0
Max Flow Batch Size: 100
Max Flows: 1000
Bind Subintfs: FALSE
Primary Table: TRUE
Table Programmable: TRUE
Miss Programmable: TRUE
Number of goto tables: 0
Goto table id:
Stats collection time for full table (sec): 1
Match Capabilities Match Types
------------------ -----------
ethernet mac destination optional
ethernet mac source optional
ethernet type optional
VLAN ID optional
IP DSCP optional
IP protocol optional
IPv4 source address lengthmask
IPv4 destination address lengthmask
ipv6 source addresss lengthmask
ipv6 destination address lengthmask
source port optional
destination port optional
in port (virtual or physical) optional
Actions Count Limit Order
--------------------------- ----------- -----
set eth source mac 1 10
set eth destination mac 1 10
set vlan id 1 10
set IPv4 source address 1 10
set IPv4 destination address 1 10
set IP dscp 1 10
set TCP source port 1 10
set TCP destination port 1 10
set UDP source port 1 10
set UDP destination port 1 10
pop vlan tag 1 10
set qos group 1 10
drop packet 1 100
specified interface 1 100
controller 1 100
divert a copy of pkt to application 1 100
Miss actions Count Limit Order
--------------------------- ----------- -----
drop packet 1 100
controller 1 100