1 <?xml version="1.0" encoding="utf-8"?>
2 <manpage program="ovn-nbctl" section="8" title="ovn-nbctl">
4 <p>ovn-nbctl -- Open Virtual Network northbound db management utility</p>
7 <p><code>ovn-nbctl</code> [<var>options</var>] <var>command</var> [<var>arg</var>...]</p>
10 <p>This utility can be used to manage the OVN northbound database.</p>
12 <h1>Logical Switch Commands</h1>
15 <dt><code>lswitch-add</code> [<var>lswitch</var>]</dt>
17 Creates a new logical switch named <var>lswitch</var>. If
18 <var>lswitch</var> is not provided, the switch will not have a
19 name so other commands must refer to this switch by its UUID.
20 Initially the switch will have no ports.
23 <dt><code>lswitch-del</code> <var>lswitch</var></dt>
25 Deletes <var>lswitch</var>.
28 <dt><code>lswitch-list</code></dt>
30 Lists all existing switches on standard output, one per line.
33 <dt><code>lswitch-set-external-id</code> <var>lswitch</var> <var>key</var> [<var>value</var>]</dt>
35 <p>Sets or clears an ``external ID'' value on <var>lswitch</var>.
36 These values are intended to identify entities external to OVN
37 with which <var>lswitch</var> is associated. The OVN Northbound
38 database schema may specify well-known <var>key</var> values,
39 but <var>key</var> and <var>value</var> are otherwise arbitrary
42 <p>If <var>value</var> is specified, then <var>key</var> is set to
43 <var>value</var> for <var>lswitch</var>, overwriting any
44 previous value. If <var>value</var> is omitted, then
45 <var>key</var> is removed from <var>lswitch</var>'s set of
46 external IDs (if it was present.</p>
49 <dt><code>lswitch-get-external-id</code> <var>lswitch</var> [<var>key</var>]</dt>
51 Queries the external IDs on <var>lswitch</var>. If
52 <var>key</var> is specified, the output is the value for that
53 <var>key</var> or the empty string if <var>key</var> is unset.
54 If <var>key</var> is omitted, the output is
55 <var>key</var><code>=</code><var>value</var>, one per line, for
60 <h1>Logical Port Commands</h1>
62 <dt><code>lport-add</code> <var>lswitch</var> <var>lport</var></dt>
64 Creates on <var>lswitch</var> a new logical port named
68 <dt><code>lport-add</code> <var>lswitch</var> <var>lport</var> <var>parent</var> <var>tag</var></dt>
70 Creates on <var>lswitch</var> a logical port named <var>lport</var>
71 that is a child of <var>parent</var> that is identied with
72 <var>tag</var>. This is useful in cases such as virtualized
73 container environments where Open vSwitch does not have a direct
74 connection to the container's port and it must be shared with
75 the virtual machine's port.
78 <dt><code>lport-del</code> <var>lport</var></dt>
80 Deletes <var>lport</var>.
83 <dt><code>lport-list</code> <var>lswitch</var></dt>
85 Lists all the logical ports within <var>lswitch</var> on
86 standard output, one per line.
89 <dt><code>lport-get-parent</code> <var>lport</var></dt>
91 If set, get the parent port of <var>lport</var>. If not set, print
95 <dt><code>lport-get-tag</code> <var>lport</var></dt>
97 If set, get the tag for <var>lport</var> traffic. If not set, print
101 <dt><code>lport-set-external-id</code> <var>lport</var> <var>key</var> [<var>value</var>]</dt>
103 <p>Sets or clears an ``external ID'' value on <var>lport</var>.
104 These values are intended to identify entities external to OVN
105 with which <var>lport</var> is associated. The OVN Northbound
106 database schema may specify well-known <var>key</var> values,
107 but <var>key</var> and <var>value</var> are otherwise arbitrary
110 <p>If <var>value</var> is specified, then <var>key</var> is set to
111 <var>value</var> for <var>lport</var>, overwriting any
112 previous value. If <var>value</var> is omitted, then
113 <var>key</var> is removed from <var>lport</var>'s set of
114 external IDs (if it was present.</p>
117 <dt><code>lport-get-external-id</code> <var>lport</var> [<var>key</var>]</dt>
119 Queries the external IDs on <var>lport</var>. If
120 <var>key</var> is specified, the output is the value for that
121 <var>key</var> or the empty string if <var>key</var> is unset.
122 If <var>key</var> is omitted, the output is
123 <var>key</var><code>=</code><var>value</var>, one per line, for
127 <dt><code>lport-set-macs</code> <var>lport</var> [<var>mac</var>] [<var>mac</var>] [...]</dt>
129 Sets the MACs associated with <var>lport</var> to
130 <var>mac</var>. Multiple MACs may be sets by using multiple
131 <var>mac</var> arguments. If no <var>mac</var> argument is
132 given, <var>lport</var> will have no MACs associated with it.
135 <dt><code>lport-get-macs</code> <var>lport</var></dt>
137 Lists all the MACs associated with <var>lport</var> on standard
138 output, one per line.
141 <dt><code>lport-get-up</code> <var>lport</var></dt>
143 Prints the state of <var>lport</var>, either <code>up</code> or
150 <p><code>-d</code> <var>database</var> | <code>--db</code> <var>database</var></p>
151 <p><code>-h</code> | <code>--help</code></p>
152 <p><code>-o</code> | <code>--options</code></p>
153 <p><code>-V</code> | <code>--version</code></p>
155 <h1>Logging options</h1>
156 <p><code>-v</code><var>spec</var>, <code>--verbose=</code><var>spec</var></p>
157 <p><code>-v</code>, <code>--verbose</code></p>
158 <p><code>--log-file</code>[<code>=</code><var>file</var>]</p>
159 <p><code>--syslog-target=</code><var>host</var><code>:</code><var>port</var></p>
161 <h1>PKI configuration (required to use SSL)</h1>
162 <p><code>-p</code>, <code>--private-key=</code><var>file</var> file with private key</p>
163 <p><code>-c</code>, <code>--certificate=</code><var>file</var> file with certificate for private key</p>
164 <p><code>-C</code>, <code>--ca-cert=</code><var>file</var> file with peer CA certificate</p>