diff --git a/ovn-nb.ovsschema b/ovn-nb.ovsschema index c6a1417ffc..d85a3fe98e 100644 --- a/ovn-nb.ovsschema +++ b/ovn-nb.ovsschema @@ -1,7 +1,7 @@ { "name": "OVN_Northbound", - "version": "5.6.0", - "cksum": "2552205612 15123", + "version": "5.7.0", + "cksum": "3754583060 16164", "tables": { "NB_Global": { "columns": { @@ -196,6 +196,12 @@ "Logical_Router_Port": { "columns": { "name": {"type": "string"}, + "gateway_chassis": { + "type": {"key": {"type": "uuid", + "refTable": "Gateway_Chassis", + "refType": "strong"}, + "min": 0, + "max": "unlimited"}}, "options": { "type": {"key": "string", "value": "string", @@ -293,4 +299,20 @@ "value": "string", "min": 0, "max": "unlimited"}}}, - "maxRows": 1}}} + "maxRows": 1}, + "Gateway_Chassis": { + "columns": { + "name": {"type": "string"}, + "chassis_name": {"type": "string"}, + "priority": {"type": {"key": {"type": "integer", + "minInteger": 0, + "maxInteger": 32767}}}, + "external_ids": { + "type": {"key": "string", "value": "string", + "min": 0, "max": "unlimited"}}, + "options": { + "type": {"key": "string", "value": "string", + "min": 0, "max": "unlimited"}}}, + "indexes": [["name"]], + "isRoot": false}} + } diff --git a/ovn-nb.xml b/ovn-nb.xml index 32c10c1474..1e73465663 100644 --- a/ovn-nb.xml +++ b/ovn-nb.xml @@ -179,7 +179,7 @@ Set this to an IPv4 subnet, e.g. 192.168.0.0/24, to enable ovn-northd to automatically assign IP addresses within - that subnet. + that subnet. @@ -1250,6 +1250,34 @@

+ +

+ If set, this indicates that this logical router port represents + a distributed gateway port that connects this router to a logical + switch with a localnet port. There may be at most one such + logical router port on each logical router. +

+ +

+ Several can be referenced for a given + logical router port. A single is + functionally equivalent to setting + . Refer to the + description of + for additional details on gateway handling. +

+ +

+ Defining more than one will enable + gateway high availability. Only one gateway will be active at a + time. OVN chassis will use BFD to monitor connectivity to a + gateway. If connectivity to the active gateway is interrupted, + another gateway will become active. + The column + specifies the order that gateways will be chosen by OVN. +

+
+

The IP addresses and netmasks of the router. For example, @@ -1319,6 +1347,14 @@ table="Logical_Switch_Port"/> should be set to router.

+ +

+ While is still + supported for backwards compatibility, it is now preferred to + specify one or more instead. + It is functionally equivalent, but allows you to specify multiple + chassis to enable high availability. +

@@ -2111,4 +2147,54 @@ + +

+ Association of one or more chassis to a logical router port. The traffic + going out through an specific router port will be redirected to a + chassis, or a set of them in high availability configurations. + A single is equivalent to setting + . Using + allows associating multiple prioritized + chassis with a single logical router port. +

+ + +

+ Name of the . +

+

+ A suggested, but not required naming convention is + ${port_name}_${chassis_name}. +

+
+ + +

+ Name of the chassis that we want to redirect traffic through for the + associated logical router port. The value must match the + column + of the table in the + database. +

+
+ + +

+ This is the priority of a chassis among all + belonging to the same logical router + port. +

+
+ + + Reserved for future use. + + + + + See External IDs at the beginning of this document. + + +
+ diff --git a/ovn-sb.ovsschema b/ovn-sb.ovsschema index 8a68e7c80a..264364095f 100644 --- a/ovn-sb.ovsschema +++ b/ovn-sb.ovsschema @@ -1,7 +1,7 @@ { "name": "OVN_Southbound", - "version": "1.13.0", - "cksum": "3451836240 12038", + "version": "1.14.0", + "cksum": "3613553908 13275", "tables": { "SB_Global": { "columns": { @@ -104,6 +104,12 @@ "columns": { "logical_port": {"type": "string"}, "type": {"type": "string"}, + "gateway_chassis": { + "type": {"key": {"type": "uuid", + "refTable": "Gateway_Chassis", + "refType": "strong"}, + "min": 0, + "max": "unlimited"}}, "options": { "type": {"key": "string", "value": "string", @@ -244,4 +250,22 @@ "update" : {"type": {"key": "string", "min": 0, "max": "unlimited"}}}, - "isRoot": true}}} + "isRoot": true}, + "Gateway_Chassis": { + "columns": { + "name": {"type": "string"}, + "chassis": {"type": {"key": {"type": "uuid", + "refTable": "Chassis", + "refType": "weak"}, + "min": 0, "max": 1}}, + "priority": {"type": {"key": {"type": "integer", + "minInteger": 0, + "maxInteger": 32767}}}, + "external_ids": { + "type": {"key": "string", "value": "string", + "min": 0, "max": "unlimited"}}, + "options": { + "type": {"key": "string", "value": "string", + "min": 0, "max": "unlimited"}}}, + "indexes": [["name"]], + "isRoot": false}}} diff --git a/ovn-sb.xml b/ovn-sb.xml index b22d1acd47..c1731d2845 100644 --- a/ovn-sb.xml +++ b/ovn-sb.xml @@ -1837,6 +1837,18 @@ tcp.flags = RST;
+ +

+ A list of . +

+

+ This should only be populated for ports with + set to chassisredirect. + This column defines the list of chassis used as gateways where + traffic will be redirected through. +

+
+

A number that represents the logical port in the key (e.g. STT key or @@ -2883,4 +2895,43 @@ tcp.flags = RST; clients are allowed to modify. + +

+ Association of rows of + chassisredirect to + a . The traffic going out through a specific + chassisredirect port will be redirected to a chassis, + or a set of them in high availability configurations. +

+ + +

+ Name of the . +

+

+ A suggested, but not required naming convention is + ${port_name}_${chassis_name}. +

+
+ + + The to which we send the traffic. + + + + This is the priority the specific among all + Gateway_Chassis belonging to the same . + + + + Reserved for future use. + + + + The overall purpose of these columns is described under Common + Columns at the beginning of this document. + + + +