Hi Jacob, I have a small note below.

On Tue, Sep 1, 2026 at 12:58 PM Jacob Tanenbaum via dev
<[email protected]> wrote:
>
> When set-connection was added the ability to specify the ability to
> read, read/write, and a role for the connection entity existed but was
> not documented.

This commit message is a bit clunky. I think trying to tie the missing
options to the origin of the set-connection option is unnecessary. The
message can be simplified to:

The set-connection command was missing the read, read-write, and role
specifiers in the documentation.


>
> Assisted-by: Claude Opus 4.6, Claude Code
> Fixes: c869c7c91e94 ("ovn-sb: remote connection management in sb db")
> Signed-off-by: Jacob Tanenbaum <[email protected]>
> ---
>  utilities/ovn-sbctl.8.xml | 37 +++++++++++++++++++++++++++++++++----
>  utilities/ovn-sbctl.c     |  2 ++
>  2 files changed, 35 insertions(+), 4 deletions(-)
>
> diff --git a/utilities/ovn-sbctl.8.xml b/utilities/ovn-sbctl.8.xml
> index 56fcdcb0d..433205450 100644
> --- a/utilities/ovn-sbctl.8.xml
> +++ b/utilities/ovn-sbctl.8.xml
> @@ -485,10 +485,39 @@
>
>        <dt>[<code>--inactivity-probe=</code><var>msecs</var>] 
> <code>set-connection</code> <var>target</var>...</dt>
>        <dd>
> -        Sets the configured connection target or targets.  Use
> -        <code>--inactivity-probe=</code><var>msecs</var> to override the
> -        default idle connection inactivity probe time.  Use 0 to disable
> -        inactivity probes.
> +        <p>
> +          Sets the configured connection target or targets.  Use
> +          <code>--inactivity-probe=</code><var>msecs</var> to override the
> +          default idle connection inactivity probe time.  Use 0 to disable
> +          inactivity probes.
> +        </p>
> +
> +        <p>
> +          Each <var>target</var> may be preceded by zero or more of the
> +          following modifiers, which apply to all subsequent targets until
> +          changed:
> +        </p>
> +
> +        <dl>
> +          <dt><code>read-only</code></dt>
> +          <dd>
> +            Sets the <code>read_only</code> column for subsequent connections
> +            to <code>true</code>, restricting them to read-only transactions.
> +          </dd>
> +
> +          <dt><code>read-write</code></dt>
> +          <dd>
> +            Sets the <code>read_only</code> column for subsequent connections
> +            to <code>false</code>, allowing them to modify the database.
> +            This is the default.
> +          </dd>
> +
> +          <dt><code>role=</code><var>name</var></dt>
> +          <dd>
> +            Sets the <code>role</code> column for subsequent connections to
> +            <var>name</var>.  The default is the empty string.
> +          </dd>
> +        </dl>
>        </dd>
>      </dl>
>
> diff --git a/utilities/ovn-sbctl.c b/utilities/ovn-sbctl.c
> index a6d6678cd..8a49341f6 100644
> --- a/utilities/ovn-sbctl.c
> +++ b/utilities/ovn-sbctl.c
> @@ -118,6 +118,8 @@ Connection commands:\n\
>    del-connection             delete the connections\n\
>    [--inactivity-probe=MSECS]\n\
>    set-connection TARGET...   set the list of connections to TARGET...\n\
> +                               (TARGET may be preceded by read-only,\n\
> +                               read-write, or role=NAME)\n\
>  \n\
>  SSL/TLS commands:\n\
>    get-ssl                     print the SSL/TLS configuration\n\
> --
> 2.55.0
>
> _______________________________________________
> dev mailing list
> [email protected]
> https://mail.openvswitch.org/mailman/listinfo/ovs-dev
>

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to