[ovs-dev] [RFC PATCH 4/5] Extended schema to include port-chain, port-pair-groups, port-pairs and added ACL SFC action

John McDowall jmcdowall at paloaltonetworks.com
Tue Dec 27 22:19:17 UTC 2016


Along with the changes to ovn-northd.c these are the corresponding
changes to the northbound database.

Co-authored-by: Flavio Fernandes <flavio at flaviof.com>
Reported at: https://mail.openvswitch.org/pipermail/ovs-discuss/2016-March/040381.html
Reported at: https://mail.openvswitch.org/pipermail/ovs-discuss/2016-May/041359.html

Signed-off-by: John McDowall <jmcdowall at paloaltonetworks.com>
---
 ovn/ovn-nb.ovsschema | 64 +++++++++++++++++++++++++++++++++++++++++++++++++---
 1 file changed, 61 insertions(+), 3 deletions(-)

diff --git a/ovn/ovn-nb.ovsschema b/ovn/ovn-nb.ovsschema
index 39c7f991c..02af7622d 100644
--- a/ovn/ovn-nb.ovsschema
+++ b/ovn/ovn-nb.ovsschema
@@ -1,7 +1,7 @@
 {
     "name": "OVN_Northbound",
-    "version": "5.4.1",
-    "cksum": "3485560318 13777",
+    "version": "5.4.2",
+    "cksum": "1524033812 14801",
     "tables": {
         "NB_Global": {
             "columns": {
@@ -30,6 +30,16 @@
                                            "refType": "strong"},
                                    "min": 0,
                                    "max": "unlimited"}},
+                "port_chains":  {"type": {"key": {"type": "uuid",
+                                                  "refTable": "Logical_Port_Chain",
+                                                  "refType": "strong"},
+                                          "min": 0,
+                                          "max": "unlimited"}},
+                "port_pairs":  {"type": {"key": {"type": "uuid",
+                                                 "refTable": "Logical_Port_Pair",
+                                                 "refType": "strong"},
+                                         "min": 0,
+                                         "max": "unlimited"}},
                 "acls": {"type": {"key": {"type": "uuid",
                                           "refTable": "ACL",
                                           "refType": "strong"},
@@ -98,6 +108,50 @@
                              "min": 0, "max": "unlimited"}}},
             "indexes": [["name"]],
             "isRoot": false},
+        "Logical_Port_Chain": {
+            "columns": {
+                "name": {"type": "string"},
+                "port_pair_groups":  {"type": {"key": {"type": "uuid",
+                                                       "refTable": "Logical_Port_Pair_Group",
+                                                       "refType": "strong"},
+                                               "min": 0, "max": "unlimited"}},
+                "last_hop_port": {"type": {"key": {"type": "uuid",
+                                                   "refTable": "Logical_Switch_Port",
+                                                   "refType": "strong"},
+                                           "min": 0, "max": 1}},
+                "external_ids": {
+                    "type": {"key": "string", "value": "string",
+                             "min": 0, "max": "unlimited"}}},
+            "isRoot": false},
+        "Logical_Port_Pair_Group": {
+            "columns": {
+                "name": {"type": "string"},
+                "port_pairs":  {"type": {"key": {"type": "uuid",
+                                                 "refTable": "Logical_Port_Pair",
+                                                 "refType": "strong"},
+                                         "min": 0, "max": "unlimited"}},
+                "external_ids": {
+                    "type": {"key": "string", "value": "string",
+                             "min": 0, "max": "unlimited"}},
+                "sortkey": {"type": {"key": {"type": "integer"},
+                                     "min": 0, "max": 1}}
+            },
+            "isRoot": false},
+        "Logical_Port_Pair": {
+            "columns": {
+                "name": {"type": "string"},
+                "outport": {"type": {"key": {"type": "uuid",
+                                             "refTable": "Logical_Switch_Port",
+                                             "refType": "strong"},
+                                     "min": 0, "max": 1}},
+                "inport": {"type": {"key": {"type": "uuid",
+                                            "refTable": "Logical_Switch_Port",
+                                            "refType": "strong"},
+                                    "min": 0, "max": 1}},
+                "external_ids": {
+                    "type": {"key": "string", "value": "string",
+                             "min": 0, "max": "unlimited"}}},
+            "isRoot": false},
         "Address_Set": {
             "columns": {
                 "name": {"type": "string"},
@@ -132,8 +186,12 @@
                                             "enum": ["set", ["from-lport", "to-lport"]]}}},
                 "match": {"type": "string"},
                 "action": {"type": {"key": {"type": "string",
-                                            "enum": ["set", ["allow", "allow-related", "drop", "reject"]]}}},
+                                            "enum": ["set", ["allow", "allow-related", "drop", "reject", "sfc"]]}}},
                 "log": {"type": "boolean"},
+                "options": {
+                    "type": {"key": "string",
+                             "value": "string",
+                             "min": 0, "max": "unlimited"}},
                 "external_ids": {
                     "type": {"key": "string", "value": "string",
                              "min": 0, "max": "unlimited"}}},
-- 
2.11.0



More information about the dev mailing list