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>
}
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"