[ovs-discuss] An error in file ovn-sb.ovsschema

Ben Pfaff blp at ovn.org
Tue Jun 22 16:20:00 UTC 2021


On Tue, Jun 22, 2021 at 02:59:44AM +0000, wen yuxuan wrote:
> Hi,
> I found an error in file ovn-sb.ovsschema recently. The port field of talble Service_Monitor maxInteger is 32767, but this field in code is uint16_t, maximum value is 65535(in function create_or_get_service_mon). When I configure port number over 32767  ovn-nb is broken.

Indeed, I think that the following should be folded in.  Can you verify
that this fixes the problem?  By the way, high port numbers like this
should usually be reserved for ephemeral ports.

diff --git a/ovn-sb.ovsschema b/ovn-sb.ovsschema
index 205a30a37cee..bbf60781dd72 100644
--- a/ovn-sb.ovsschema
+++ b/ovn-sb.ovsschema
@@ -1,7 +1,7 @@
 {
     "name": "OVN_Southbound",
-    "version": "20.17.0",
-    "cksum": "669123379 26536",
+    "version": "20.18.0",
+    "cksum": "1816525029 26536",
     "tables": {
         "SB_Global": {
             "columns": {
@@ -452,7 +452,7 @@
                              "min": 0, "max": 1}},
                 "port": {"type": {"key": {"type": "integer",
                                           "minInteger": 0,
-                                          "maxInteger": 32767}}},
+                                          "maxInteger": 65535}}},
                 "logical_port": {"type": "string"},
                 "src_mac": {"type": "string"},
                 "src_ip": {"type": "string"},


More information about the discuss mailing list