vswitch: Don't delete all flows on SIGHUP if a controller is configured.
authorBen Pfaff <blp@nicira.com>
Wed, 11 Mar 2009 22:38:22 +0000 (15:38 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 11 Mar 2009 22:38:28 +0000 (15:38 -0700)
commit9f37fdff2f6de7e81559424efae4286c49d3bad7
tree56a8741c0ba7ecf43d454f99ebad403d483b0dee
parent9673d1eb0a90cba206c654dffb5005abe5bc43ce
vswitch: Don't delete all flows on SIGHUP if a controller is configured.

This was intended to only take effect when we had been running standalone
and were now connecting to a controller, but the test was reversed.
Instead of just reversing the test, this change also deletes flows when
we switch from connected to standalone as well.
vswitchd/bridge.c