Debug OpenFlow
You can display OpenFlow protocol packets or event description.
NOTE:
The
debug openflow packets
option displays only OpenFlow protocol packets exchanged between the switch and the controller.
Syntax
switch# debug openflow <errors|events|instance|packets>
errors
Display OpenFlow error messages.
events
Enable debug messages for all OpenFlow events like addition/deletion/modification, enable/disable.
instance
Specify an OpenFlow instance for instance-specific debug messages.
packets
Enable debug messages for all OpenFlow packets.
Example: Debug logs
Flow deletion
mOFCtrlTask: 00020| DBG|Flow deletion: idle_timeout=60,dl_type=0x0800,in_port=27,dl_vlan=65535, dl_vlan_pcp=0,dl_src=00:50:56:9f:5f:0a,dl_dst=00:50:56:9f:19:92, nw_src=1.2.3.6,nw_dst=1.2.3.4,icmp_type=0,icmp_code=0, actions=output:26
Flow addition
mOFCtrlTask: 00019| DBG|Flow addition: idle_timeout=60,dl_type=0x0800,in_port=27, dl_vlan=65535,dl_vlan_pcp=0,dl_src=00:50:56:9f:5f:0a, dl_dst=00:50:56:9f:19:92,nw_src=1.2.3.6,nw_dst=1.2.3.4, icmp_type=0,icmp_code=0,actions=output:26
Flow expiry
mOFCtrlTask: 00018| DBG|Flow expiry: idle_timeout=1200,dl_type=0x0800,nw_src=1.2.3.7, nw_dst=1.2.3.8,actions=mod_nw_src:9.8.7.6