Verifying OpenFlow Configuration and Operation
You can verify the OpenFlow setup using the following commands.
To verify that OpenFlow is enabled correctly on the switch, type:
show openflow
The following sample output of the command shows that the switch has OpenFlow enabled, that FDB is on, and that the ACL width is double.
* (Private) SDN-1.1 # show openflow OpenFlow: Enabled Versions: OpenFlow10, OpenFlow13 Mode: Standard FDB: On Access-list width: Double Controller : Primary Status : ACTIVE Datapath ID : 00000004968374d4 VR : VR-Default Mode : out-of-band Active Target : tcp:10.66.65.242:6633 Uptime(secs) : 1134555 Controller : Secondary Not configured. Flows VLAN VID Ports Active Error -------------------------------- ---- ----- ------ ------ major 4089 3 2 0 Total number of VLAN(s): 1
To verify the setup of OneController on the switch, type:
show openflow controller {primary | secondary}
The following sample output of the command shows that the switch has a primary OneController (but no secondary controller), located at 10.66.65.242, and that it is communicating with OneController through the virtual router "VR-Default."
* (Private) SDN-1.2 # show openflow controller Controller : Primary Configured : Yes Datapath ID : 00000004968374d4 VR : VR-Default Mode : out-of-band Active Target : tcp:10.66.65.242:6633 Status : ACTIVE TLS : Disabled Probe(secs) : 30 Uptime(secs) : 1135034 Rate Limit : 1000 Burst Size : 250 Packets Sent : 348705 Packets Received : 274586 Controller : Secondary Configured : No
To view the number of flows on the switch so that you can ensure that it is not exceeding the capacity of the switch, type:
show openflow flows
The following sample output of the command shows that the switch has two flows.
* (Private) SDN-1.3 # show openflow flows Total number of flows: 2 Flow name Type Duration (secs) Prio Packets ------------- ---- ------------------- ----- -------------------- of_48 ACL 172915 10 172913 Match: Input Port: 14 Src MAC: 00:0c:29:02:10:d3 Dst MAC: 00:0c:29:80:ac:0a Ethernet Type: 0x0800 Actions: output:10, cookie:0x20000000000000, idle:5:4 of_49 ACL 172915 10 172913 Match: Input Port: 12 Src MAC: 00:0c:29:80:ac:0a Dst MAC: 00:0c:29:02:10:d3 Ethernet Type: 0x0800 Actions: output:14, cookie:0x20000000000000, idle:5:4