Hi Yimin,

You are using nw_dst as a flow match criteria, but nw_dst only makes sense
in the context of IP.  Try doing

  ovs-ofctl add-flow br0 ip,nw_dst=11.1.1.5,actions=output:3

Note that "ip" is simply shorthand for "dl_type=0x0800".

I've seen this question go through (and be answered) in the archives, but a
quick google search didn't turn up anything to link to.

  -Reid

On Mon, Jul 9, 2012 at 7:07 PM, YIMIN CHEN <ymchen.n...@gmail.com> wrote:

> Hi,
>
> I am experimenting with ovs-ofctl tool to manually add flows to
> openvswitch1.4.2. I am getting an issue with add-flow that I couldn't
> figure out what I did wrong.
>
> What I ran into is that whenever I tried to add a flow matching an
> destination IP, that match does not show up in the flow entry. Below
> is an example of what I did:
>
> ymchen@ymchen-lnx:~/ymchen/openvswitch-1.4.2$ sudo ovs-ofctl add-flow
> br0 nw_dst=11.1.1.5,actions=output:3
> Jul 10 10:01:06|00001|ofp_util|INFO|normalization changed ofp_match,
> details:
> Jul 10 10:01:06|00002|ofp_util|INFO| pre: nw_dst=11.1.1.5
> Jul 10 10:01:06|00003|ofp_util|INFO|post:  <==== nw_dst is gone!
>
> Now if I dump flows, you can see nw_dst=11.1.1.5 is no longer there:
>
> ymchen@ymchen-lnx:~/ymchen/openvswitch-1.4.2$ sudo ovs-ofctl
> dump-flows br0NXST_FLOW reply (xid=0x4):
>  cookie=0x0, duration=3.18s, table=0, n_packets=0, n_bytes=0,
> actions=output:3
>
> Could anyone shed some light on what I did wrong?
>
> Thanks!
> Yimin
> _______________________________________________
> discuss mailing list
> discuss@openvswitch.org
> http://openvswitch.org/mailman/listinfo/discuss
>
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to