From patchwork Wed Mar 11 03:37:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: taoyunxiang X-Patchwork-Id: 1252552 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=140.211.166.136; helo=silver.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=cmss.chinamobile.com Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48cd3g4tbGz9sPJ for ; Wed, 11 Mar 2020 14:38:48 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 6BF9520462; Wed, 11 Mar 2020 03:38:41 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4-xpi3rtRgKh; Wed, 11 Mar 2020 03:38:38 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by silver.osuosl.org (Postfix) with ESMTP id CC324203F1; Wed, 11 Mar 2020 03:38:38 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id AF8D9C18D3; Wed, 11 Mar 2020 03:38:38 +0000 (UTC) X-Original-To: ovs-dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by lists.linuxfoundation.org (Postfix) with ESMTP id 97538C0177 for ; Wed, 11 Mar 2020 03:38:35 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 8049388341 for ; Wed, 11 Mar 2020 03:38:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BVLTwu7r9r5h for ; Wed, 11 Mar 2020 03:38:32 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from cmccmta3.chinamobile.com (cmccmta3.chinamobile.com [221.176.66.81]) by hemlock.osuosl.org (Postfix) with ESMTP id 3B79388309 for ; Wed, 11 Mar 2020 03:38:31 +0000 (UTC) Received: from spf.mail.chinamobile.com (unknown[172.16.121.15]) by rmmx-syy-dmz-app09-12009 (RichMail) with SMTP id 2ee95e685d1b9df-715f0; Wed, 11 Mar 2020 11:38:03 +0800 (CST) X-RM-TRANSID: 2ee95e685d1b9df-715f0 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from yun.localdomain (unknown[112.25.154.146]) by rmsmtp-syy-appsvr08-12008 (RichMail) with SMTP id 2ee85e685d1930b-a2915; Wed, 11 Mar 2020 11:38:02 +0800 (CST) X-RM-TRANSID: 2ee85e685d1930b-a2915 From: Tao YunXiang To: ovs-dev@openvswitch.org Date: Wed, 11 Mar 2020 11:37:53 +0800 Message-Id: <20200311033753.16113-1-taoyunxiang@cmss.chinamobile.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <8> References: <8> Cc: Liu Chang , Rong Yin , Tao YunXiang Subject: [ovs-dev] [PATCH OVN] Add external_ids column for tables in nb schema 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: , MIME-Version: 1.0 Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" "Logical_Router_Policy" and "Forwarding_Group" tables doesn't have "external_ids" column. I think it is better to add it, so CMS could fill it with useful information. Author: Tao YunXiang Co-authored-by: Liu Chang Co-authored-by: Rong Yin Signed-off-by: Tao YunXiang Signed-off-by: Liu Chang Signed-off-by: Rong Yin Acked-by: Numan Siddique --- ovn-nb.ovsschema | 10 ++++++++-- ovn-nb.xml | 12 ++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/ovn-nb.ovsschema b/ovn-nb.ovsschema index bbd6c2580..843e979db 100644 --- a/ovn-nb.ovsschema +++ b/ovn-nb.ovsschema @@ -1,7 +1,7 @@ { "name": "OVN_Northbound", "version": "5.20.0", - "cksum": "987891875 24923", + "cksum": "2846067333 25243", "tables": { "NB_Global": { "columns": { @@ -125,6 +125,9 @@ "vip": {"type": "string"}, "vmac": {"type": "string"}, "liveness": {"type": "boolean"}, + "external_ids": { + "type": {"key": "string", "value": "string", + "min": 0, "max": "unlimited"}}, "child_port": {"type": {"key": "string", "min": 1, "max": "unlimited"}}}, "isRoot": false}, @@ -366,7 +369,10 @@ "action": {"type": { "key": {"type": "string", "enum": ["set", ["allow", "drop", "reroute"]]}}}, - "nexthop": {"type": {"key": "string", "min": 0, "max": 1}}}, + "nexthop": {"type": {"key": "string", "min": 0, "max": 1}}, + "external_ids": { + "type": {"key": "string", "value": "string", + "min": 0, "max": "unlimited"}}}, "isRoot": false}, "NAT": { "columns": { diff --git a/ovn-nb.xml b/ovn-nb.xml index ccd9bae99..d06ff00f0 100644 --- a/ovn-nb.xml +++ b/ovn-nb.xml @@ -1329,6 +1329,12 @@ List of child ports in the forwarding group. + + + + See External IDs at the beginning of this document. + + @@ -2489,6 +2495,12 @@ address of a connected router port or the IP address of a logical port.

+ + + + See External IDs at the beginning of this document. + +