From eb28b60b6771c1b4d550aef6a760bdd97dbb9a5c Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Fri, 30 Nov 2012 18:58:09 -0800 Subject: [PATCH] ovs-ctl: Don't run "ovs-save save-flows" on fake bridges. 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 --- utilities/ovs-ctl.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities/ovs-ctl.in b/utilities/ovs-ctl.in index 3a432b593..1cdfb767f 100755 --- a/utilities/ovs-ctl.in +++ b/utilities/ovs-ctl.in @@ -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" -- 2.20.1