This is probably what you want to do:
ovs-vsctl add-br br2 -- set bridge br2 fail-mode="secure"

>From ovs-vswitchd.conf.db manpage for Bridge table's "fail_mode" column,

fail_mode: optional string, either secure or standalone
              When a controller is configured, it is, ordinarily,
 responsible
              for setting up all flows on the switch.  Thus, if the
connection
              to the controller fails, no new network connections can  be
 set
              up.  If the connection to the controller stays down long
enough,
              no packets can pass through the switch  at  all.   This
 setting
              determines the switch’s response to such a situation.  It may
be
              set to one of the following:

              standalone
                     If no message is received from the controller  for
 three
                     times   the   inactivity  probe  interval  (see
 inactiv‐
                     ity_probe), then Open vSwitch will take over
responsibil‐
                     ity  for  setting  up  flows.  In this mode, Open
vSwitch
                     causes the bridge to act like  an  ordinary
 MAC-learning
                     switch.   Open  vSwitch will continue to retry
connecting
                     to the controller in the background and, when the
connec‐
                     tion  succeeds, it will discontinue its standalone
behav‐
                     ior.

              secure Open vSwitch will not set up flows on its  own  when
 the
                     controller  connection  fails  or when no controllers
are
                     defined.  The bridge will continue to retry connecting
to
                     any defined controllers forever


On Sun, Jun 30, 2013 at 10:51 PM, Alexander Shalimov <ashali...@arccn.ru>wrote:

> Hi all,
>
> Two questions:
> 1. Even without a controller the default OVS acts like L2 learning switch.
> Is this correct? Or I've miss configured something that it processes
> unmatched packets.
> 2. How can I switch off the default OVSd activity? I would like just to
> use ovs-ofctl.
>
> Thanks and Regards,
> Alexander.
> ______________________________**_________________
> discuss mailing list
> discuss@openvswitch.org
> http://openvswitch.org/**mailman/listinfo/discuss<http://openvswitch.org/mailman/listinfo/discuss>
>
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to