The quotes for strings like "br0" had been removed.In ovs-save file get_highest_ofp_version function still using quotes as field separator. That is, get_highest_ofp_version() always return OpenFlow14 version string, not the highest ofp version.
This patch adds support for new string style to return highest ofp version. Signed-off-by: linhuang <[email protected]> --- utilities/ovs-save | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utilities/ovs-save b/utilities/ovs-save index 7d810cb..0a70e1d 100755 --- a/utilities/ovs-save +++ b/utilities/ovs-save @@ -101,7 +101,8 @@ save_interfaces () { get_highest_ofp_version() { ovs-vsctl get bridge "$1" protocols | \ - awk -F '"' '{ print (NF>1)? $(NF-1) : "OpenFlow14" }' + sed 's/[][]//g' | sed 's/\ //g' | \ + awk -F ',' '{ print (NF>1)? $(NF) : "OpenFlow14" }' } save_flows () { -- 1.8.3.1 _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
