[ovs-dev] [PATCH v6 1/1] ovsdb-idl : Add APIs to query if a table and a column is present or not.
Ilya Maximets
i.maximets at ovn.org
Sat Aug 28 01:29:34 UTC 2021
On 8/27/21 12:56 AM, numans at ovn.org wrote:
> From: Numan Siddique <nusiddiq at redhat.com>
>
> This patch adds 2 new APIs in the ovsdb-idl client library
> - ovsdb_idl_server_has_table() and ovsdb_idl_server_has_column() to
> query if a table and a column is present in the IDL or not. This
> patch also adds IDL helper functions which are auto generated from
> the schema which makes it easier for the clients.
>
> These APIs are required for scenarios where the server schema is old and
> missing a table or column and the client (built with a new schema
> version) does a transaction with the missing table or column. This
> results in a continuous loop of transaction failures.
>
> Related issue: https://bugzilla.redhat.com/show_bug.cgi?id=1992705
> Signed-off-by: Numan Siddique <nusiddiq at redhat.com>
> ---
Thanks! I fixed a couple of small issues and also changed API to
accept 'const struct ovsdb_idl *' instead of non-const, because
this seems cleaner. With that, applied.
Looking forward for the revised patch #2 from this set.
Best regards, Ilya Maximets.
More information about the dev
mailing list