]> git.proxmox.com Git - ovs.git/commit
ovn-nbctl: Initial support for daemon mode.
authorJakub Sitnicki <jkbs@redhat.com>
Thu, 19 Jul 2018 13:51:23 +0000 (15:51 +0200)
committerBen Pfaff <blp@ovn.org>
Mon, 23 Jul 2018 23:14:05 +0000 (16:14 -0700)
commit3ec06ea9c668483e56cb5ae92eb34fd2aff712f9
treea8a2aa00845d37b9b22611c84ca58b38c552e608
parent2324215d053d82991a03849bdbbbb25b28226459
ovn-nbctl: Initial support for daemon mode.

Make ovn-nbctl act as a unixctl server if we were asked to detach. This
turns ovn-nbctl into a long-lived process that acts a proxy for
interacting with NB DB. The main difference to regular mode of ovn-nbctl
is that in the daemon mode, a local copy of database contents has to be
obtained only once.

Just two unixctl commands are supported 'run' and 'exit'. The former can
be used to run any ovn-nbctl command or a batch of them as so:

  ovs-appctl -t ovn-nbctl run [OPTIONS] COMMAND [-- [OPTIONS] COMMAND] ...

Running commands that have not yet been converted to not use ctl_fatal()
will result in death of the daemon process. However, --monitor option
can be used to keep the daemon running.

Signed-off-by: Jakub Sitnicki <jkbs@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
ovn/utilities/ovn-nbctl.8.xml
ovn/utilities/ovn-nbctl.c