diff mbox series

[ovs-dev,ovn,v4,1/2] Add "name" column of QoS table

Message ID 20191223103628.20787-2-taoyunxiang@cmss.chinamobile.com
State Rejected
Headers show
Series Add a way to delete QoS directly | expand

Commit Message

Tao YunXiang Dec. 23, 2019, 10:36 a.m. UTC
Add "name" column of QoS table and make qos could be list
by command "ovn-nbctl list qos "name"".

Signed-off-by: Yunxiang Tao <taoyunxiang@cmss.chinamobile.com>
---
 ovn-nb.ovsschema      | 3 ++-
 ovn-nb.xml            | 6 ++++++
 utilities/ovn-nbctl.c | 2 ++
 3 files changed, 10 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/ovn-nb.ovsschema b/ovn-nb.ovsschema
index 12999a466..02ae48e73 100644
--- a/ovn-nb.ovsschema
+++ b/ovn-nb.ovsschema
@@ -1,7 +1,7 @@ 
 {
     "name": "OVN_Northbound",
     "version": "5.18.0",
-    "cksum": "2806349485 24196",
+    "cksum": "80177565 24240",
     "tables": {
         "NB_Global": {
             "columns": {
@@ -204,6 +204,7 @@ 
             "isRoot": false},
         "QoS": {
             "columns": {
+                "name": {"type": "string"},
                 "priority": {"type": {"key": {"type": "integer",
                                               "minInteger": 0,
                                               "maxInteger": 32767}}},
diff --git a/ovn-nb.xml b/ovn-nb.xml
index 5ae52bbde..97f8eba80 100644
--- a/ovn-nb.xml
+++ b/ovn-nb.xml
@@ -1662,6 +1662,12 @@ 
       </p>
     </column>
 
+    <column name="name">
+      <p>
+        A name for the logical router.
+      </p>
+    </column>
+
     <column name="direction">
       <p>
         The value of this field is similar to <ref colun="direction"
diff --git a/utilities/ovn-nbctl.c b/utilities/ovn-nbctl.c
index 46ba3a938..7a0a2cc02 100644
--- a/utilities/ovn-nbctl.c
+++ b/utilities/ovn-nbctl.c
@@ -5352,6 +5352,8 @@  static const struct ctl_table_class tables[NBREC_N_TABLES] = {
 
     [NBREC_TABLE_HA_CHASSIS_GROUP].row_ids[0]
     = {&nbrec_ha_chassis_group_col_name, NULL, NULL},
+
+    [NBREC_TABLE_QOS].row_ids[0] = {&nbrec_qos_col_name, NULL, NULL},
 };
 
 static char *