ovs-ctl: Don't run "ovs-save save-flows" on fake bridges.
authorJustin Pettit <jpettit@nicira.com>
Sat, 1 Dec 2012 02:58:09 +0000 (18:58 -0800)
committerJustin Pettit <jpettit@nicira.com>
Sun, 2 Dec 2012 00:49:55 +0000 (16:49 -0800)
Previously, ovs-ctl would determine which bridges to run "ovs-save
save-flows" on by running "ovs-vsctl list-br".  In addition to real
bridges, that command also returns fake bridges.  An error is returned
when "ovs-save save-flows" is run on a fake bridge.  By using the newly
added "--real" flag to "ovs-vsctl list-br", we can get rid of that
unnecessary warning.

Signed-off-by: Justin Pettit <jpettit@nicira.com>
utilities/ovs-ctl.in

index 3a432b5..1cdfb76 100755 (executable)
@@ -303,7 +303,7 @@ internal_interfaces () {
 }
 
 save_flows () {
-   if set X `ovs_vsctl list-br`; then
+   if set X `ovs_vsctl -- --real list-br`; then
         shift
         if "$datadir/scripts/ovs-save" save-flows "$@" > "$script_flows"; then
             chmod +x "$script_flows"