ovn-nb: Extend schema to support networks of routers.
[cascardo/ovs.git] / ovn / ovn-nb.ovsschema
index 780fe33..985a0cd 100644 (file)
@@ -1,7 +1,7 @@
 {
     "name": "OVN_Northbound",
     "version": "1.0.0",
-    "cksum": "3052542625 4535",
+    "cksum": "3156743511 4790",
     "tables": {
         "Logical_Switch": {
             "columns": {
@@ -18,7 +18,7 @@
                                   "max": "unlimited"}},
                 "router_port": {"type": {"key": {"type": "uuid",
                                                  "refTable": "Logical_Router_Port",
-                                                 "refType": "strong"},
+                                                 "refType": "weak"},
                                          "min": 0, "max": 1}},
                 "external_ids": {
                     "type": {"key": "string", "value": "string",
@@ -72,7 +72,7 @@
                 "name": {"type": "string"},
                 "ports": {"type": {"key": {"type": "uuid",
                                            "refTable": "Logical_Router_Port",
-                                           "refType": "weak"},
+                                           "refType": "strong"},
                                    "min": 0,
                                    "max": "unlimited"}},
                 "default_gw": {"type": {"key": "string", "min": 0, "max": 1}},
                 "name": {"type": "string"},
                 "network": {"type": "string"},
                 "mac": {"type": "string"},
+                "peer": {"type": {"key": {"type": "uuid",
+                                          "refTable": "Logical_Router_Port",
+                                          "refType": "strong"},
+                                  "min": 0, "max": 1}},
                 "external_ids": {
                     "type": {"key": "string", "value": "string",
                              "min": 0, "max": "unlimited"}}},