[ovs-dev] [PATCHv2 2/2] ovs-ctl: Don't run "ovs-save save-flows" on fake bridges.
Justin Pettit
jpettit at nicira.com
Sat Dec 1 19:20:36 UTC 2012
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 at nicira.com>
---
utilities/ovs-ctl.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/utilities/ovs-ctl.in b/utilities/ovs-ctl.in
index be481de..d770f42 100755
--- a/utilities/ovs-ctl.in
+++ b/utilities/ovs-ctl.in
@@ -294,7 +294,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"
--
1.7.5.4
More information about the dev
mailing list