diff mbox series

[ovs-dev] ovs-save : fix "ovs-ofctl dump-tlv-map" command with right ofp_version

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

Checks

Context Check Description
ovsrobot/github-robot success github build: passed
ovsrobot/apply-robot warning apply and check: warning

Commit Message

lin huang July 1, 2021, 12:34 p.m. UTC
"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

Comments

Ben Pfaff July 2, 2021, 7:05 p.m. UTC | #1
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 mbox series

Patch

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