[ovs-dev] [PATCH] ovs-save: Parse geneve tlv map correctly.

Gurucharan Shetty guru at ovn.org
Mon Oct 8 04:53:15 UTC 2018


We now have an extra space in the o/p of `ovs-ofctl dump-tlv-map`.

Fixes: 5a0e4aec1af (treewide: Convert leading tabs to spaces.)
Signed-off-by: Gurucharan Shetty <guru at ovn.org>
---
 utilities/ovs-save | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utilities/ovs-save b/utilities/ovs-save
index 5c046bb..f85d97a 100755
--- a/utilities/ovs-save
+++ b/utilities/ovs-save
@@ -117,7 +117,7 @@ save_flows () {
 
         printf "%s" "ovs-ofctl add-tlv-map ${bridge} '"
         ovs-ofctl dump-tlv-map ${bridge} | \
-        awk '/^ 0x/ {if (cnt != 0) printf ","; \
+        awk '/^  0x/ {if (cnt != 0) printf ","; \
              cnt++;printf "{class="$1",type="$2",len="$3"}->"$4}'
         echo "'"
 
-- 
1.9.1



More information about the dev mailing list