From patchwork Wed Mar 16 23:37:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saurabh Shrivastava X-Patchwork-Id: 598843 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from archives.nicira.com (archives.nicira.com [96.126.127.54]) by ozlabs.org (Postfix) with ESMTP id 3qQSZp5HQ5z9sRB for ; Thu, 17 Mar 2016 10:37:38 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=nuagenetworks-net.20150623.gappssmtp.com header.i=@nuagenetworks-net.20150623.gappssmtp.com header.b=TEbMTOYJ; dkim-atps=neutral Received: from archives.nicira.com (localhost [127.0.0.1]) by archives.nicira.com (Postfix) with ESMTP id B8103106D8; Wed, 16 Mar 2016 16:37:37 -0700 (PDT) X-Original-To: dev@openvswitch.org Delivered-To: dev@openvswitch.org Received: from mx1e3.cudamail.com (mx1.cudamail.com [69.90.118.67]) by archives.nicira.com (Postfix) with ESMTPS id DF7BE106CA for ; Wed, 16 Mar 2016 16:37:36 -0700 (PDT) Received: from bar5.cudamail.com (localhost [127.0.0.1]) by mx1e3.cudamail.com (Postfix) with ESMTPS id 619C54203F9 for ; Wed, 16 Mar 2016 17:37:36 -0600 (MDT) X-ASG-Debug-ID: 1458171455-09eadd3062362e30001-byXFYA Received: from mx3-pf2.cudamail.com ([192.168.14.1]) by bar5.cudamail.com with ESMTP id MqwtzRZOGE3WeQo5 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 16 Mar 2016 17:37:35 -0600 (MDT) X-Barracuda-Envelope-From: saurabh.shrivastava@nuagenetworks.net X-Barracuda-RBL-Trusted-Forwarder: 192.168.14.1 Received: from unknown (HELO mail-ob0-f177.google.com) (209.85.214.177) by mx3-pf2.cudamail.com with ESMTPS (RC4-SHA encrypted); 16 Mar 2016 23:37:34 -0000 Received-SPF: none (mx3-pf2.cudamail.com: domain at nuagenetworks.net does not designate permitted sender hosts) X-Barracuda-Apparent-Source-IP: 209.85.214.177 X-Barracuda-RBL-IP: 209.85.214.177 Received: by mail-ob0-f177.google.com with SMTP id fp4so67279328obb.2 for ; Wed, 16 Mar 2016 16:37:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nuagenetworks-net.20150623.gappssmtp.com; s=20150623; h=mime-version:date:message-id:subject:from:to; bh=8PW6DORCaO+5JEZtBeiNGf40aC6vdTaT8KGXKfTGWfw=; b=TEbMTOYJYDdChA3M0p62ztud7WrTLX8sZ4zy5Ysw1ZZG3cOQWcWyyN4nHgUhdaqjxT smWBahzJRtFWErNMcFXlorl0Poe2ZeYfLMoTsiAa0FR321QMaKviwKiInqtCRE48JZjt 457nzH7rUD5genc/yjOf0wX2WLieDTu5xyUrCiC0+eEwwBgDttnUvlkc/JZ4AWT9jN6y yGSpkYRPTxWs0UlYIHlyOloqvN0LyDgIfUsW1fzHHqLK+eEEx+WaJD53OdlBoOCUKmGo 0ov9IHOdSXTy8E//nphbASN3xJ9Kalg01Ak9X5oH91lK9qZta9o8dJMnBDiDkV2WGyez 0PLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=8PW6DORCaO+5JEZtBeiNGf40aC6vdTaT8KGXKfTGWfw=; b=ixiO7G1M73dSNlnJGbKRgeBSopzOmndykDhPHyVW0xXeE2ffvCnsWoqK5WUEFh7zWu EGAp0cr+egou0sZ0pWRyV7/+Qa8F3kZU6UoC8vkr8CUwnm9N6q6XqRoSw5oBLBvJoAZs 2HfD/PNeX/7O1vLyZDbuwCbnRGuZ+GVgZNFZFnHptIyXveOF/v+pH5A4jiz45EyTaUoj bAcKKNvA/091ysAqfke03ouNLW3p6YcYLNoSONRXt7JBLC6sBqlWZ2/FCStNlIpQ3JlN fAzqYA8bbWBWu52i6dvBxmEYfFtGO5ebLCp3vOnJYJIGQly/RKsJn3LDnv6FjnYOth7q OptQ== X-Gm-Message-State: AD7BkJLw1knI/wtFQjP8it6ESx0OTSUW3KvOWmNeUltoA7QPQ4Pndwh39+jihyVC9ZBm/A0my2KYhj85yTHkj/1Z MIME-Version: 1.0 X-Received: by 10.182.128.134 with SMTP id no6mr4435304obb.35.1458171453306; Wed, 16 Mar 2016 16:37:33 -0700 (PDT) Received: by 10.202.175.205 with HTTP; Wed, 16 Mar 2016 16:37:33 -0700 (PDT) Date: Wed, 16 Mar 2016 16:37:33 -0700 Message-ID: X-CudaMail-MID: CM-V2-315068918 X-CudaMail-DTE: 031616 X-CudaMail-Originating-IP: 209.85.214.177 X-CudaMail-Envelope-Sender: saurabh.shrivastava@nuagenetworks.net X-ASG-Orig-Subj: [##CM-V2-315068918##][PATCH] vtep: Introduce other_config column in some vtep schema tables From: Saurabh Shrivastava To: dev@openvswitch.org X-GBUdb-Analysis: 0, 209.85.214.177, Ugly c=0.440712 p=-0.333333 Source Normal X-MessageSniffer-Rules: 0-0-0-25588-c X-Barracuda-Connect: UNKNOWN[192.168.14.1] X-Barracuda-Start-Time: 1458171455 X-Barracuda-Encrypted: DHE-RSA-AES256-SHA X-Barracuda-URL: https://web.cudamail.com:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at cudamail.com X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.60 X-Barracuda-Spam-Status: No, SCORE=0.60 using per-user scores of TAG_LEVEL=3.5 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=4.0 tests=BSF_SC5_MJ1963, DKIM_SIGNED, HTML_MESSAGE, RDNS_NONE X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.27916 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.00 DKIM_SIGNED Domain Keys Identified Mail: message has a signature 0.00 HTML_MESSAGE BODY: HTML included in message 0.10 RDNS_NONE Delivered to trusted network by a host with no rDNS 0.50 BSF_SC5_MJ1963 Custom Rule MJ1963 X-Content-Filtered-By: Mailman/MimeDel 2.1.16 Subject: [ovs-dev] [PATCH] vtep: Introduce other_config column in some vtep schema tables X-BeenThere: dev@openvswitch.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@openvswitch.org Sender: "dev" Having an other_config column is a simple way to pass more information than the schema allows. Signed-off-by: Saurabh Shrivastava --- vtep/vtep.ovsschema | 16 ++++++++++++++-- vtep/vtep.xml | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+), 2 deletions(-) exactly one record in the table. @@ -336,8 +357,15 @@ Indicates that an error has occurred in the switch but that no more specific information is available. + + + + The overall purpose of this column is described under Common + Column at the beginning of this document. + + @@ -625,6 +653,13 @@ + + The overall purpose of this column is described under Common + Column at the beginning of this document. + + + +
@@ -729,6 +764,14 @@ login banner. + + + The overall purpose of this column is described under Common + Column at the beginning of this document. + + + +
@@ -941,6 +984,13 @@ + + The overall purpose of this column is described under Common + Column at the beginning of this document. + + + +
diff --git a/vtep/vtep.ovsschema b/vtep/vtep.ovsschema index cf3538f..8e93d2c 100644 --- a/vtep/vtep.ovsschema +++ b/vtep/vtep.ovsschema @@ -1,6 +1,6 @@ { "name": "hardware_vtep", - "cksum": "1621458335 10585", + "cksum": "918621225 11113", "tables": { "Global": { "columns": { @@ -28,6 +28,9 @@ "tunnels": { "type": {"key": {"type": "uuid", "refTable": "Tunnel"}, "min": 0, "max": "unlimited"}}, + "other_config": { + "type": {"key": "string", "value": "string", + "min": 0, "max": "unlimited"}}, "switch_fault_status": { "type": { "key": "string", "min": 0, "max": "unlimited"}, @@ -54,6 +57,9 @@ "refTable": "Logical_Binding_Stats"}, "min": 0, "max": "unlimited"}, "ephemeral": true}, + "other_config": { + "type": {"key": "string", "value": "string", + "min": 0, "max": "unlimited"}}, "port_fault_status": { "type": { "key": "string", "min": 0, "max": "unlimited"}, @@ -89,7 +95,10 @@ "columns": { "name": {"type": "string"}, "description": {"type": "string"}, - "tunnel_key": {"type": {"key": "integer", "min": 0, "max": 1}}}, + "tunnel_key": {"type": {"key": "integer", "min": 0, "max": 1}}, + "other_config": { + "type": {"key": "string", "value": "string", + "min": 0, "max": "unlimited"}}}, "isRoot": true, "indexes": [["name"]]}, "Ucast_Macs_Local": { @@ -154,6 +163,9 @@ "value": {"type": "uuid", "refTable": "ACL"}, "min": 0, "max": "unlimited"}}, + "other_config": { + "type": {"key": "string", "value": "string", + "min": 0, "max": "unlimited"}}, "LR_fault_status": { "type": { "key": "string", "min": 0, "max": "unlimited"}, diff --git a/vtep/vtep.xml b/vtep/vtep.xml index b1befce..a3a6988 100644 --- a/vtep/vtep.xml +++ b/vtep/vtep.xml @@ -31,6 +31,27 @@ +

Common Column

+ +

+ Some tables contain a column, named other_config. + This column has the same form and purpose each place that it appears, + so we describe it here to save space later. +

+ +
+
other_config: map of string-string pairs
+
+

+ Key-value pairs for configuring rarely used or proprietary features. +

+

+ Some tables do not have other_config column because no + key-value pairs have yet been defined for them. +

+
+
+
Top-level configuration for a hardware VTEP. There must be