vswitch: Keep existing datapaths when starting up.
authorBen Pfaff <blp@nicira.com>
Fri, 6 Mar 2009 22:12:36 +0000 (14:12 -0800)
committerBen Pfaff <blp@nicira.com>
Fri, 6 Mar 2009 22:12:36 +0000 (14:12 -0800)
commit202725960bfb5037af8e9c3ede22072fc3742dab
tree4935d77e058b3f70dff470208754579a52319baa
parentb38fe047a80f259c302171225ddcce7665b81be6
vswitch: Keep existing datapaths when starting up.

Until now, vswitchd has deleted all existing datapaths when it started up,
and then re-created the ones that are actually configured.  This is a very
"clean", conservative design, but it has undesirable effects in practice.
In particular, if any datapath has a local port with an IP address
configured on it, then deleting the datapath and recreating it will drop
that IP address, which can mean that your machine just lost connectivity
to the outside world.

So, with this commit, now vswitchd only deletes datapaths at startup that
don't have configured bridges, preserving local port IP addresses.
vswitchd/bridge.c
vswitchd/vswitchd.c