Thanks Alex.
The command  "ovs-vsctl set bridge br0 fail-mode=secure" works well.
I tried to find the description of the command in the ovs-vsctl user document.
The result is I don't find the command format you given, but a format like 
"ovs-vsctl set-fail-mode br0 secure"
The function of the two formats is equal.
Cloud you tell me where can find the format you given, I guess maybe there are 
some other assets. 
The content of "man ovs-vswitchd.conf.db" is too much, I haven't read them.
Hope what you will give is not the content of "man ovs-vswitchd.conf.db".




linaishan

From: Alex Wang
Date: 2013-09-05 02:32
To: leeskating
CC: discuss
Subject: Re: [ovs-discuss] the default config of ovs





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