FlowForwarding/LINC-Switch — pull request #202 by legoscia (2013-10-30 15:55:58+00:00)
Title: Log changes to flow entries on debug loglevel

The log entries look like this:

2013-10-30 15:02:52.519 [debug] <0.646.0>@linc_us4_flow:add_new_flow:476 [FLOWMOD] Added new flow entry with id {1,#Ref<0.0.0.503>}: {ofp_flow_mod,<<0,0,0,0,0,0,0,0>>,<<0,0,0,0,0,0,0,0>>,0,add,0,0,1,no_buffer,any,any,[],{ofp_match,[{ofp_field,openflow_basic,eth_type,false,<<8,0>>,undefined},{ofp_field,openflow_basic,ipv4_src,false,<<192,168,0,68>>,undefined}]},[{ofp_instruction_apply_actions,2,[{ofp_action_set_field,13,{ofp_field,openflow_basic,ipv4_dst,false,<<10,0,0,68>>,undefined}},{ofp_action_output,16,2,no_buffer}]}]}
2013-10-30 15:05:36.406 [debug] <0.646.0>@linc_us4_flow:replace_existing_flow:924 [FLOWMOD] Replaced flow entry {1,#Ref<0.0.0.503>} with: {flow_entry,{1,#Ref<0.0.0.704>},1,{ofp_match,[{ofp_field,openflow_basic,eth_type,false,<<8,0>>,undefined},{ofp_field,openflow_basic,ipv4_src,false,<<192,168,0,68>>,undefined}]},<<0,0,0,0,0,0,0,0>>,[],{1383,145536,406355},{infinity,0,0},{infinity,0,0},[{ofp_instruction_apply_actions,2,[{ofp_action_set_field,13,{ofp_field,openflow_basic,ipv4_dst,false,<<10,0,0,68>>,undefined}},{ofp_action_output,16,2,no_buffer}]}]}
2013-10-30 15:05:37.025 [debug] <0.646.0>@linc_us4_flow:delete_flow:495 [FLOWMOD] Deleted flow entry with id {1,#Ref<0.0.0.503>}: {flow_entry,{1,#Ref<0.0.0.503>},1,{ofp_match,[{ofp_field,openflow_basic,eth_type,false,<<8,0>>,undefined},{ofp_field,openflow_basic,ipv4_src,false,<<192,168,0,68>>,undefined}]},<<0,0,0,0,0,0,0,0>>,[],{1383,145536,406355},{infinity,0,0},{infinity,0,0},[{ofp_instruction_apply_actions,2,[{ofp_action_set_field,13,{ofp_field,openflow_basic,ipv4_dst,false,<<10,0,0,68>>,undefined}},{ofp_action_output,16,2,no_buffer}]}]}