[ovs-dev] Problem adding flows openvswitch

Ben Pfaff blp at nicira.com
Tue Sep 18 21:29:58 UTC 2012


On Tue, Sep 18, 2012 at 11:33:33PM +0200, Andi wrote:
> On 09/18/2012 11:26 PM, Ben Pfaff wrote:
> >On Tue, Sep 18, 2012 at 11:29:55PM +0200, Andi wrote:
> >>On 09/18/2012 11:23 PM, Ben Pfaff wrote:
> >>>On Tue, Sep 18, 2012 at 11:24:52PM +0200, Andi wrote:
> >>>>Hi Ben,
> >>>>thank you for your advices.
> >>>>Please find comments inline.
> >>>>
> >>>>Regards
> >>>>Andi
> >>>>On 09/18/2012 07:07 PM, Ben Pfaff wrote:
> >>>>>On Tue, Sep 18, 2012 at 06:11:56PM +0200, Andi wrote:
> >>>>>>I am having some trouble in adding flow table entries with
> >>>>>>openvswitch. I am using nox with some modifications on it and when I
> >>>>>>submit flow mod message the switches appear to accept the packet
> >>>>>>(all the methods to add the flow entry return 0), but when I use
> >>>>>>ovs-dpctl dump-flows br0 it has no flows installed.
> >>>>>ovs-dpctl doesn't display OpenFlow flows.  You can't use it this way.
> >>>>>
> >>>>>ovs-ofctl displays OpenFlow flows.  Use "ovs-ofctl dump-flows" to show
> >>>>>the flow table.
> >>>>In the dpctl help one finds
> >>>>/dump-flows DP            display flows in DP/
> >>>>Using this command with off-the shelf Nox it displays all flows.
> >>>Is the program named dpctl or ovs-dpctl?  If it's dpctl then you're
> >>>not using Open vSwitch but something else.
> >>ovs-dpctl sorry
> >OK, then what you're saying doesn't make sense and you will have to
> >provide an example.
> switch2:/hosthome/OF/openvswitch/build/bin# ./ovs-ofctl dump-flows br0
> ovs-ofctl: br0 is not a bridge or a socket

OK, so what's in the rundir (typically /var/run/openvswitch)?

> switch2:/hosthome/OF/openvswitch/build/bin# ./ovs-dpctl dump-flows br0
> in_port(2),eth(src=c6:10:36:4a:20:7f,dst=a6:8a:d7:63:1e:49),eth_type(0x0800),ipv4(src=192.168.20.2,dst=192.168.10.2,proto=1,tos=0,ttl=64,frag=no),icmp(type=0,code=0),
> packets:10, bytes:980, used:0.089s, actions:1

Those aren't OpenFlow flows.



More information about the dev mailing list