On Wed, Sep 4, 2013 at 2:19 AM, linaishan <leeskat...@gmail.com> wrote:

> **
> Hi all,
> I have a question about ovs with no controller.
> At the beginning, I find the hosts linked to ovs with no
> controller couldn't ping each other, which just like the situation in
> mininet, if you don't set a controller, the host1 could't reach to host2.
> But recently, I find that even there's no controller, the hosts linked to
> ovs could reach each other.
> That's is what I can't understand.
> I use ovs-ofctl dump-flows, there's no flow entry. But if I use
> ovs-dpctl dump-flows, some opportune flow entries will be found. If I stop
> the ping command, a time later, using ovs-dpctl dump-flows will find
> nothing. If I start ping command again, the flow entries will appear again.
>

Are you sure there is no flow entry in "ofctl dump-flows" output?  From
your description, I guess there should be a "actions=NORMAL" flow.  The
existence of that flow means that ovs is acting as a L2-learning switch.

I don't understand the mechanism what add flow entries to the ovs, and why
> can't list the flow entries with ovs-ofctl.
>

When there is a hit of flow table, a datapath flow will be installed in
kernel. And if there is no hit for about few seconds, the kernel flow will
be removed.  That's why you cannot see it in "dpctl dump-flows" output
after you stop pinging.

How can I forbid this mechanism?
>
I want a ovs which can't work without controller. How shoud I config the
> ovs?
>

You can do "ovs-vsctl set bridge [bridge name] fail-mode=secure".
To find more, you should refer to "man ovs-vswitchd.conf.db" and the
"PORTING" file.
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to