I want to add a field in the flow, and i checked the FAQ but i have a problem is that field is not related to the packet, and when i use "ovs-ofctl add-flow br0 idle_timeout=180,priority=33000,new_field=1547,actions=output:2" it give me that ovs extract the field but when i use "ovs-ofctl dump-flows br0" it shows a value and if i excute the command again i found another value, and when i print the ofpbuf i found that the value of new field (in Hex) is not in the flow packet. So can anyone help me with this Thank you.
Here what i've got from add-flows root@root:~# ovs-ofctl add-flow br0 idle_timeout=180,priority=33000,new_field=1547,actions=output:2 2016-04-15T04:40:15Z|00001|ofpparse|WARN|new_field ofp-parse 1547 2016-04-15T04:40:15Z|00002|ofpparse|WARN|new_field 1547 2016-04-15T04:40:15Z|00003|ofpparse|WARN|priority ofp-parse 33000 2016-04-15T04:40:15Z|00004|ofctl|WARN|new_field 1547 2016-04-15T04:40:15Z|00005|ofp_msgs|WARN|ofp-msgs msg size=8, allocated=8, head=0, tail=0 00000000 04 00 00 08 00 00 00 03- 2016-04-15T04:40:15Z|00006|ofp_util|WARN|ofm->match_nf is 1547 is 1547 2016-04-15T04:40:15Z|00007|ofctl|WARN|ovs_ofctl debut size=88, allocated=88, head=0, tail=0 00000000 01 0e 00 58 00 00 00 02-00 38 20 ff 00 00 00 00 00000010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 00000020 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 00000030 00 00 00 00 00 00 00 00-00 00 00 b4 00 00 80 e8 00000040 ff ff ff ff ff ff 00 00-06 0b 00 00 00 00 00 00 00000050 00 00 00 08 00 02 00 00- Here what i got from dump-flow root@root:~# ovs-ofctl dump-flows br0 2016-04-15T04:40:16Z|00001|ofpparse|WARN| new_field is 35390 2016-04-15T04:40:16Z|00002|ofpparse|WARN|priority ofp-parse 32768 2016-04-15T04:40:16Z|00003|ofp_msgs|WARN|ofp-msgs msg debut size=8, allocated=8, head=0, tail=0 00000000 04 00 00 08 00 00 00 04- 2016-04-15T04:40:16Z|00004|ofp_util|WARN|ovs_ofctl msg debut size=40, allocated=104, head=0, tail=64 00000000 01 10 00 18 00 00 00 04-ff ff 00 00 00 00 23 20 00000010 00 00 00 00 00 00 00 00-ff ff 00 00 ff 00 00 00 00000020 00 00 00 00 00 00 00 00- 2016-04-15T04:40:16Z|00005|ofp_msgs|WARN|ofp-msgs msg debut size=88, allocated=88, head=0, tail=0 00000000 01 11 00 58 00 00 00 04-ff ff 00 00 00 00 23 20 00000010 00 00 00 00 00 00 00 00-00 40 00 00 00 00 00 01 00000020 0c 56 91 c0 80 e8 00 b4-00 00 00 00 00 02 00 02 00000030 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 00000040 00 00 00 00 00 00 00 00-20 20 73 69 7a 65 3d 34 00000050 00 00 00 08 00 02 00 00- 2016-04-15T04:40:16Z|00007|ofp_util|WARN|match nf in NX is 0 in other is 8224 NXST_FLOW reply (xid=0x4): cookie=0x0, duration=1.207s, table=0, n_packets=0, n_bytes=0, idle_timeout=180, idle_age=1, new_field=8224, priority=33000 actions=output:2 -- Amrane Ait Zeouay Engineer Student in The Development of Software and Systems University of Western Brittany Tel: +33 7 62 25 56 03 <+33+7+62+25+56+03> _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev