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-del</code> <var>lport</var></dt>
70 Deletes <var>lport</var>.
73 <dt><code>lport-list</code> <var>lswitch</var></dt>
75 Lists all the logical ports within <var>lswitch</var> on
76 standard output, one per line.
79 <dt><code>lport-set-external-id</code> <var>lport</var> <var>key</var> [<var>value</var>]</dt>
81 <p>Sets or clears an ``external ID'' value on <var>lport</var>.
82 These values are intended to identify entities external to OVN
83 with which <var>lport</var> is associated. The OVN Northbound
84 database schema may specify well-known <var>key</var> values,
85 but <var>key</var> and <var>value</var> are otherwise arbitrary
88 <p>If <var>value</var> is specified, then <var>key</var> is set to
89 <var>value</var> for <var>lport</var>, overwriting any
90 previous value. If <var>value</var> is omitted, then
91 <var>key</var> is removed from <var>lport</var>'s set of
92 external IDs (if it was present.</p>
95 <dt><code>lport-get-external-id</code> <var>lport</var> [<var>key</var>]</dt>
97 Queries the external IDs on <var>lport</var>. If
98 <var>key</var> is specified, the output is the value for that
99 <var>key</var> or the empty string if <var>key</var> is unset.
100 If <var>key</var> is omitted, the output is
101 <var>key</var><code>=</code><var>value</var>, one per line, for
105 <dt><code>lport-set-macs</code> <var>lport</var> [<var>mac</var>] [<var>mac</var>] [...]</dt>
107 Sets the MACs associated with <var>lport</var> to
108 <var>mac</var>. Multiple MACs may be sets by using multiple
109 <var>mac</var> arguments. If no <var>mac</var> argument is
110 given, <var>lport</var> will have no MACs associated with it.
113 <dt><code>lport-get-macs</code> <var>lport</var></dt>
115 Lists all the MACs associated with <var>lport</var> on standard
116 output, one per line.
119 <dt><code>lport-get-up</code> <var>lport</var></dt>
121 Prints the state of <var>lport</var>, either <code>up</code> or
128 <p><code>-d</code> <var>database</var> | <code>--db</code> <var>database</var></p>
129 <p><code>-h</code> | <code>--help</code></p>
130 <p><code>-o</code> | <code>--options</code></p>
131 <p><code>-V</code> | <code>--version</code></p>
133 <h1>Logging options</h1>
134 <p><code>-v</code><var>spec</var>, <code>--verbose=</code><var>spec</var></p>
135 <p><code>-v</code>, <code>--verbose</code></p>
136 <p><code>--log-file</code>[<code>=</code><var>file</var>]</p>
137 <p><code>--syslog-target=</code><var>host</var><code>:</code><var>port</var></p>
139 <h1>PKI configuration (required to use SSL)</h1>
140 <p><code>-p</code>, <code>--private-key=</code><var>file</var> file with private key</p>
141 <p><code>-c</code>, <code>--certificate=</code><var>file</var> file with certificate for private key</p>
142 <p><code>-C</code>, <code>--ca-cert=</code><var>file</var> file with peer CA certificate</p>