ovs-save: Use right OpenFlow version for "ovs-ofctl dump-tlv-map".
"ovs-ofctl dump-tlv-map ${bridge}" command need right ofp_version.
@@ -128,7 +128,7 @@ save_flows () {
ofp_version=$(get_highest_ofp_version "$bridge")
printf "%s" "ovs-ofctl add-tlv-map ${bridge} '"
- ovs-ofctl dump-tlv-map ${bridge} | \
+ ovs-ofctl dump-tlv-map ${bridge} -O $ofp_version | \
awk '/^ *0x/ {if (cnt != 0) printf ","; \
cnt++;printf "{class="$1",type="$2",len="$3"}->"$4}'
echo "'"
