Message ID | MEYP282MB3302A9853D1DF56724BD00D2CD009@MEYP282MB3302.AUSP282.PROD.OUTLOOK.COM |
---|---|
State | Accepted |
Headers | show |
Series | [ovs-dev] ovs-save : fix "ovs-ofctl dump-tlv-map" command with right ofp_version | expand |
Context | Check | Description |
---|---|---|
ovsrobot/github-robot | success | github build: passed |
ovsrobot/apply-robot | warning | apply and check: warning |
On Thu, Jul 01, 2021 at 12:34:04PM +0000, lin huang wrote: > "ovs-ofctl dump-tlv-map ${bridge}" command need right ofp_version. > > Signed-off-by: linhuang <linhuang@ruijie.com.cn> Thanks, applied.
diff --git a/utilities/ovs-save b/utilities/ovs-save index 7d810cb40..069c5932e 100755 --- a/utilities/ovs-save +++ b/utilities/ovs-save @@ -127,7 +127,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 "'"
"ovs-ofctl dump-tlv-map ${bridge}" command need right ofp_version. Signed-off-by: linhuang <linhuang@ruijie.com.cn> --- utilities/ovs-save | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.12.2