Skip to content

Commit

Permalink
ovn-nbctl: Enable database commands using db-ctl-base infrastructure.
Browse files Browse the repository at this point in the history
This makes ovn-nbctl into a pretty slavish imitation of ovn-sbctl, using
almost the same code.  It has two immediate benefits.  First, multiple
commands can now be chained together into a single ovn-nbctl invocation.
Second, the database commands such as "create", "set", and so on allow
queries and modifications that don't have specific commands already.
In the following commit, this allows testing the OVN ACL feature.

Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
blp committed Sep 15, 2015
1 parent 88058f1 commit 70799ae
Show file tree
Hide file tree
Showing 3 changed files with 608 additions and 443 deletions.
4 changes: 2 additions & 2 deletions ovn/utilities/ovn-nbctl.8.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@

<h1>ACL Commands</h1>
<dl>
<dt><code>acl-add</code> <var>lswitch</var> <var>direction</var> <var>priority</var> <var>match</var> <var>action</var> [<code>log</code>]</dt>
<dt>[<code>--log</code>] <code>acl-add</code> <var>lswitch</var> <var>direction</var> <var>priority</var> <var>match</var> <var>action</var></dt>
<dd>
Adds the specified ACL to <var>lswitch</var>.
<var>direction</var> must be either <code>from-lport</code> or
<code>to-lport</code>. <var>priority</var> must be between
<code>1</code> and <code>65534</code>, inclusive. If
<code>log</code> is supplied, packet logging is enabled for the
<code>--log</code> is specified, packet logging is enabled for the
ACL. A full description of the fields are in <code>ovn-nb</code>(5).
</dd>

Expand Down
Loading

0 comments on commit 70799ae

Please sign in to comment.