ovs-save: Fix awk command to return highest ofp version.
"ovs-vsctl get Bridge "$1" protocols" prints something like this:
[OpenFlow12, OpenFlow13]
The code in ovs-save didn't parse it properly.  This fixes the
problem.
@@ -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 () {
