From patchwork Thu Jul 1 12:34:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: miter X-Patchwork-Id: 1499515 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=2605:bc80:3010::136; helo=smtp3.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=outlook.com header.i=@outlook.com header.a=rsa-sha256 header.s=selector1 header.b=e+KdoQGu; dkim-atps=neutral Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GFyMH36wXz9sW8 for ; Thu, 1 Jul 2021 22:34:17 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 6B628606D4; Thu, 1 Jul 2021 12:34:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id USoozieP2tuv; Thu, 1 Jul 2021 12:34:13 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp3.osuosl.org (Postfix) with ESMTPS id BD7D160594; Thu, 1 Jul 2021 12:34:12 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 9DFECC0010; Thu, 1 Jul 2021 12:34:12 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists.linuxfoundation.org (Postfix) with ESMTP id 0FF93C000E for ; Thu, 1 Jul 2021 12:34:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id F225B404E6 for ; Thu, 1 Jul 2021 12:34:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp4.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=outlook.com Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id q8op_bJLS6Yg for ; Thu, 1 Jul 2021 12:34:09 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from AUS01-SY4-obe.outbound.protection.outlook.com (mail-sy4aus01olkn2185.outbound.protection.outlook.com [40.92.62.185]) by smtp4.osuosl.org (Postfix) with ESMTPS id 782B2404DD for ; Thu, 1 Jul 2021 12:34:09 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JVHj6bS+1l/pRKJ7ePMH6Li6zus4+Ny6++S1YIgXdNDyR2trQHMcYwwMLI+Ym3gWwQ4KA5cbujOEnL3PtMbOn0D3YPJj72I2YcQZraez/3SWGl/8ferrAMNajX9i0D/vjC+oc46JZ9nQ2EVqUJpAkJfPg0SZuIt81jWOzmCG62n+NrHoIg7VWjpEWAasEIQpYO0BHmALfdN0dfUefHSFBFEkFRWCYvXyN9ftNGE5JfHYn0mY5TTuxbAFV4D3zi2L0D06vgnyhI9lgmZGXQizBCxrZcxINzIBTqHuAswv1TDiy8PvowFE2lTQeMeMzsHxhg4thOa4LsXTuB/I1AHFVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=45Ez2xDybvCfMFOqZuxwb2zXnjBtBWxwv6hcd1d0318=; b=V++DOYOBD2V7C0UiBGhraChJcMBx1avaDWauQclqHB1Rb1JV37mnZQ7ZW5D59q7VFE0LLW1hgZzIsGNB+4MhuxmcZhyrz6naS/Y9EZ/EGkQy8+dQP3iJPaWiwjGcm7EXWZyagkwt1VptcIAuHxjFL3dzLIVM2XZuRTWr7ZiFM9iDnZFIf9PXpuypyH2zc6ci3c1nWsiPF6fJqVzfnqYAr+uQUzwjg72CfEyKPYg63bplMDz5kUnwDnktkcXgiLd34OwDqfCG+QrYfhF2+dC3jrM5mIM/FGNgc7/nfDsNWM9N+MzLF0N6C9QcUBqpy8B3gjO5GD0Khd5aSRef7SkMuw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=45Ez2xDybvCfMFOqZuxwb2zXnjBtBWxwv6hcd1d0318=; b=e+KdoQGuqb5+JhF/SfXX9jznt8ahVIeLfq7UENEUX8di45UnDHbMF4TYt2NaiARLgjoDzkDUQ+tjgNl7i7ZetfC+MWAO8wLA37ODD0IYVFE0mr8OS4FM5kVKMXtZaOtM3wE4MuDaAt+zjdXvsOHDZzu5iNmqqOd0e9XXYiazOBO/dpLwebgBt/iFjMyDOL+mlPwEbyK2wKtlNPV3fN3ftpTE1gCXlXW35RntPn0APFc0+KhkwtNICab6J/CPM4aVU+I2Pqjw9GrxAReGTQnuIXxAIO3ZoH07DyhRKu1lVOI0snFT7XTqwvnSf7GhuUXconTqW6EEVN55yHkTVfoVbA== Received: from MEYP282MB3302.AUSP282.PROD.OUTLOOK.COM (2603:10c6:220:15b::24) by ME3P282MB2827.AUSP282.PROD.OUTLOOK.COM (2603:10c6:220:13c::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.22; Thu, 1 Jul 2021 12:34:04 +0000 Received: from MEYP282MB3302.AUSP282.PROD.OUTLOOK.COM ([fe80::dd71:a32a:32de:975]) by MEYP282MB3302.AUSP282.PROD.OUTLOOK.COM ([fe80::dd71:a32a:32de:975%6]) with mapi id 15.20.4287.023; Thu, 1 Jul 2021 12:34:04 +0000 From: lin huang To: "dev@openvswitch.org" Thread-Topic: [PATCH] ovs-save : fix "ovs-ofctl dump-tlv-map" command with right ofp_version Thread-Index: AQHXbnTILfWaksZRIEG524xui13gWA== Date: Thu, 1 Jul 2021 12:34:04 +0000 Message-ID: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-tmn: [7jYbkzccPQ7caLWBf1AfDu95j025HnFw] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 28ba9e8d-608e-49ad-fa2c-08d93c8c832e x-ms-traffictypediagnostic: ME3P282MB2827: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: m7Wv9d7vgEaBegNfrbxkyLv6hcmRdgieFOxN+EQkiis8iWauyEip+8XTenxujKMirz3iX3C+POphdwq6UZ9PPXw3lIHU2vZj2IPNJLDtWbDVvTLhEe2da1mne9Jp9n2vzoVUrMVD44JZs61sOlk+7Fn/FxOC6MCdBBcphnMDDIzWkkVikWbOsNPgPuzujeYtwh5ogyUJyWN0Ixr926+TbyoAEMtF//LwCav/FZM9AqoiLW4O8qRSMO3sYTEWnRMO+UrsTlQj+55IICN7CaGxevLrav/tTujXSRVOZlZACYyrzS9h15BpGxX5xKUknL0iJRbZ9ZJTf1EbvHCfq10mPOBck775KaK6kBMCdCEn7g5izPJjWFSyQO1MvjpioUOEUYOcQO8ppjQg9PWjbXZBQx6zvwxcxywVzw3vzZaO97PAhuD+tNpqVd+rJZXSzZ9u x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: 0t6OjX3pBBAHTnK0/xDvIQSaSS247DriL4nUn/HFPRnwc6qcLNiW0FZwg4LCpIzdUFcf20NmH9hFtKLRL8h8jHceBUEmiHo8YVhWbeJHjGxWZDaemqCLkFshc15tQUFbRD7sOK+SEnAXCzNJXdUtSg== x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MEYP282MB3302.AUSP282.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 28ba9e8d-608e-49ad-fa2c-08d93c8c832e X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Jul 2021 12:34:04.2821 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: ME3P282MB2827 Subject: [ovs-dev] [PATCH] ovs-save : fix "ovs-ofctl dump-tlv-map" command with right ofp_version X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" "ovs-ofctl dump-tlv-map ${bridge}" command need right ofp_version. Signed-off-by: linhuang --- utilities/ovs-save | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.12.2 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 "'"