]> git.proxmox.com Git - ovs.git/commitdiff
vswitchd: update bond-rebalance-interval maxInteger in vswtich.xml
authorEelco Chaudron <echaudro@redhat.com>
Wed, 11 Sep 2019 08:33:57 +0000 (10:33 +0200)
committerBen Pfaff <blp@ovn.org>
Wed, 25 Sep 2019 19:17:13 +0000 (12:17 -0700)
According to the documentation in the vswtich.xml the maximum
configurable bond-rebalance-interval is 10000ms. However, this is not
enforced anywhere in the code and people are using larger values in
the field.

To avoid confusion this change changes the maximum value the
2147483647 which will fit in 32bit integer. This will allow a value of
~25 days, which should be enough to cover everybody's needs. Note that
a value of 0 disables the automatic rebalancing anyway.

Signed-off-by: Eelco Chaudron <echaudro@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
vswitchd/vswitch.xml

index f3538cf6c6b907b5577e38e266d54fadc56c3e56..01304a5ed2c2c49fa7526217e4bbdbbb0e9daa21 100644 (file)
         </p>
 
         <column name="other_config" key="bond-rebalance-interval"
-                type='{"type": "integer", "minInteger": 0, "maxInteger": 10000}'>
+                type='{"type": "integer",
+                       "minInteger": 0, "maxInteger": 2147483647}'>
           For a load balanced bonded port, the number of milliseconds between
           successive attempts to rebalance the bond, that is, to move flows
           from one interface on the bond to another in an attempt to keep usage