On Nov 6, 2013, at 11:01 AM, Anu Mercian <anumerc...@live.com> wrote:
> Dear Developers, > > I am looking to add a new field to ovs-ofctl agent to set a particular flow. > For example, we have the command to set a new flow according to set of rules. > > ovs-ofctl add-flow br0 > "in_port=LOCAL, table=0, idle_timeout=60,ip,hard_timeout=69,vlan_tci=0x0000, > dl_src=78:2b:cb:4b:db:c5, dl_dst=00:09:8a:80:c0, nw_proto=1, > nw_dst=192.168.1.100, nw_src=192.168.7.189, actions=drop" > > Similarly, I would like to add one more rule to the above command, like for > example: > > ovs-ofctl add-flow br0 > "in_port=LOCAL, table=0, idle_timeout=60,ip,hard_timeout=69,vlan_tci=0x0000, > dl_src=78:2b:cb:4b:db:c5, dl_dst=00:09:8a:80:c0, nw_proto=1, > nw_dst=192.168.1.100, nw_src=192.168.7.189, tp_type=1,actions=drop" > > Where tp_type (or I can name it tp_proto with a hexadecimal type 0x0802 etc) > is another L4 protocol that I would like to introduce. > L4 protocols are multiplexed by the nw_proto field you already have in the flow entry, so there is no need for a new field. Also, this field is 8 bits, while the example you gave looks more like the ethertype (or “dl_type”), which is used to multiplex L3 protocols. Jarno
_______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev