bdeb3483c730a0bafbd047e48d2a36f4c52de869
[sliver-openvswitch.git] / utilities / ovs-vsctl.8.in
1 .\" -*- nroff -*-
2 .de IQ
3 .  br
4 .  ns
5 .  IP "\\$1"
6 ..
7 .de ST
8 .  PP
9 .  RS -0.15in
10 .  I "\\$1"
11 .  RE
12 ..
13 .TH ovs\-vsctl 8 "@VERSION@" "Open vSwitch" "Open vSwitch Manual"
14 .\" This program's name:
15 .ds PN ovs\-vsctl
16 .\" SSL peer program's name:
17 .ds SN ovsdb\-server
18 .
19 .SH NAME
20 ovs\-vsctl \- utility for querying and configuring \fBovs\-vswitchd\fR
21 .
22 .SH SYNOPSIS
23 \fBovs\-vsctl\fR [\fIoptions\fR] \fB\-\-\fR [\fIoptions\fR] \fIcommand
24 \fR[\fIargs\fR] [\fB\-\-\fR [\fIoptions\fR] \fIcommand \fR[\fIargs\fR]]...
25 .
26 .SH DESCRIPTION
27 The \fBovs\-vsctl\fR program configures \fBovs\-vswitchd\fR(8) by
28 providing a high\-level interface to its configuration database.
29 See \fBovs\-vswitchd.conf.db\fR(5) for comprehensive documentation of
30 the database schema.
31 .PP
32 \fBovs\-vsctl\fR connects to an \fBovsdb\-server\fR process that
33 maintains an Open vSwitch configuration database.  Using this
34 connection, it queries and possibly applies changes to the database,
35 depending on the supplied commands.  Then, if it applied any changes,
36 by default it waits until \fBovs\-vswitchd\fR has finished
37 reconfiguring itself before it exits.  (If you use \fBovs\-vsctl\fR
38 when \fBovs\-vswitchd\fR is not running, use \fB\-\-no\-wait\fR.)
39 .PP
40 \fBovs\-vsctl\fR can perform any number of commands in a single run,
41 implemented as a single atomic transaction against the database.
42 .PP
43 The \fBovs\-vsctl\fR command line begins with global options (see
44 \fBOPTIONS\fR below for details).  The global options are followed by
45 one or more commands.  Each command should begin with \fB\-\-\fR by
46 itself as a command-line argument, to separate it from the following
47 commands.  (The \fB\-\-\fR before the first command is optional.)  The
48 command
49 itself starts with command-specific options, if any, followed by the
50 command name and any arguments.  See \fBEXAMPLES\fR below for syntax
51 examples.
52 .
53 .SS "Linux VLAN Bridging Compatibility"
54 The \fBovs\-vsctl\fR program supports the model of a bridge
55 implemented by Open vSwitch, in which a single bridge supports ports
56 on multiple VLANs.  In this model, each port on a bridge is either a
57 trunk port that potentially passes packets tagged with 802.1Q headers
58 that designate VLANs or it is assigned a single implicit VLAN that is
59 never tagged with an 802.1Q header.
60 .PP
61 For compatibility with software designed for the Linux bridge,
62 \fBovs\-vsctl\fR also supports a model in which traffic associated
63 with a given 802.1Q VLAN is segregated into a separate bridge.  A
64 special form of the \fBadd\-br\fR command (see below) creates a ``fake
65 bridge'' within an Open vSwitch bridge to simulate this behavior.
66 When such a ``fake bridge'' is active, \fBovs\-vsctl\fR will treat it
67 much like a bridge separate from its ``parent bridge,'' but the actual
68 implementation in Open vSwitch uses only a single bridge, with ports on
69 the fake bridge assigned the implicit VLAN of the fake bridge of which
70 they are members.  (A fake bridge for VLAN 0 receives packets that
71 have no 802.1Q tag or a tag with VLAN 0.)
72 .
73 .SH OPTIONS
74 .
75 The following options affect the behavior \fBovs\-vsctl\fR as a whole.
76 Some individual commands also accept their own options, which are
77 given just before the command name.  If the first command on the
78 command line has options, then those options must be separated from
79 the global options by \fB\-\-\fR.
80 .
81 .IP "\fB\-\-db=\fIserver\fR"
82 Sets \fIserver\fR as the database server that \fBovs\-vsctl\fR
83 contacts to query or modify configuration.  The default is
84 \fBunix:@RUNDIR@/db.sock\fR.  \fIserver\fR must take one of the
85 following forms:
86 .RS
87 .so ovsdb/remote-active.man
88 .so ovsdb/remote-passive.man
89 .RE
90 .
91 .IP "\fB\-\-no\-wait\fR"
92 Prevents \fBovs\-vsctl\fR from waiting for \fBovs\-vswitchd\fR to
93 reconfigure itself according to the the modified database.  This
94 option should be used if \fBovs\-vswitchd\fR is not running;
95 otherwise, \fBovs\-vsctl\fR will not exit until \fBovs\-vswitchd\fR
96 starts.
97 .IP
98 This option has no effect if the commands specified do not change the
99 database.
100 .
101 .IP "\fB\-\-no\-syslog\fR"
102 By default, \fBovs\-vsctl\fR logs its arguments and the details of any
103 changes that it makes to the system log.  This option disables this
104 logging.
105 .IP
106 This option is equivalent to \fB\-\-verbose=vsctl:syslog:warn\fR.
107 .
108 .IP "\fB\-\-oneline\fR"
109 Modifies the output format so that the output for each command is printed
110 on a single line.  New-line characters that would otherwise separate
111 lines are printed as \fB\\n\fR, and any instances of \fB\\\fR that
112 would otherwise appear in the output are doubled.
113 Prints a blank line for each command that has no output.
114 This option does not affect the formatting of output from the
115 \fBlist\fR or \fBfind\fR commands; see \fBTable Formatting Options\fR
116 below.
117 .
118 .IP "\fB\-\-dry\-run\fR"
119 Prevents \fBovs\-vsctl\fR from actually modifying the database.
120 .
121 .IP "\fB\-t \fIsecs\fR"
122 .IQ "\fB\-\-timeout=\fIsecs\fR"
123 By default, or with a \fIsecs\fR of \fB0\fR, \fBovs\-vsctl\fR waits
124 forever for a response from the database.  This option limits runtime
125 to approximately \fIsecs\fR seconds.  If the timeout expires,
126 \fBovs\-vsctl\fR will exit with a \fBSIGALRM\fR signal.  (A timeout
127 would normally happen only if the database cannot be contacted, or if
128 the system is overloaded.)
129 .
130 .IP "\fB\-\-retry\fR"
131 Without this option, if \fBovs\-vsctl\fR connects outward to the
132 database server (the default) then \fBovs\-vsctl\fR will try to
133 connect once and exit with an error if the connection fails (which
134 usually means that \fBovsdb\-server\fR is not running).
135 .IP
136 With this option, or if \fB\-\-db\fR specifies that \fBovs\-vsctl\fR
137 should listen for an incoming connection from the database server,
138 then \fBovs\-vsctl\fR will wait for a connection to the database
139 forever.
140 .IP
141 Regardless of this setting, \fB\-\-timeout\fR always limits how long
142 \fBovs\-vsctl\fR will wait.
143 .
144 .SS "Table Formatting Options"
145 These options control the format of output from the \fBlist\fR and
146 \fBfind\fR commands.
147 .so lib/table.man
148 .
149 .SS "Public Key Infrastructure Options"
150 .so lib/ssl.man
151 .so lib/ssl-bootstrap.man
152 .so lib/ssl-peer-ca-cert.man
153 .so lib/vlog.man
154 .
155 .SH COMMANDS
156 The commands implemented by \fBovs\-vsctl\fR are described in the
157 sections below.
158 .SS "Open vSwitch Commands"
159 These commands work with an Open vSwitch as a whole.
160 .
161 .IP "\fBinit\fR"
162 Initializes the Open vSwitch database, if it is empty.  If the
163 database has already been initialized, this command has no effect.
164 .IP
165 Any successful \fBovs\-vsctl\fR command automatically initializes the
166 Open vSwitch database if it is empty.  This command is provided to
167 initialize the database without executing any other command.
168 .
169 .IP "\fBshow\fR"
170 Prints a brief overview of the database contents.
171 .
172 .IP "\fBemer\-reset\fR"
173 Reset the configuration into a clean state.  It deconfigures OpenFlow
174 controllers, OVSDB servers, and SSL, and deletes port mirroring,
175 \fBfail_mode\fR, NetFlow, sFlow, and IPFIX configuration.  This
176 command also removes all \fBother\-config\fR keys from all database
177 records, except that \fBother\-config:hwaddr\fR is preserved if it is
178 present in a Bridge record.  Other networking configuration is left
179 as-is.
180 .
181 .SS "Bridge Commands"
182 These commands examine and manipulate Open vSwitch bridges.
183 .
184 .IP "[\fB\-\-may\-exist\fR] \fBadd\-br \fIbridge\fR"
185 Creates a new bridge named \fIbridge\fR.  Initially the bridge will
186 have no ports (other than \fIbridge\fR itself).
187 .IP
188 Without \fB\-\-may\-exist\fR, attempting to create a bridge that
189 exists is an error.  With \fB\-\-may\-exist\fR, this command does
190 nothing if \fIbridge\fR already exists as a real bridge.
191 .
192 .IP "[\fB\-\-may\-exist\fR] \fBadd\-br \fIbridge parent vlan\fR"
193 Creates a ``fake bridge'' named \fIbridge\fR within the existing Open
194 vSwitch bridge \fIparent\fR, which must already exist and must not
195 itself be a fake bridge.  The new fake bridge will be on 802.1Q VLAN
196 \fIvlan\fR, which must be an integer between 0 and 4095.  Initially
197 \fIbridge\fR will have no ports (other than \fIbridge\fR itself).
198 .IP
199 Without \fB\-\-may\-exist\fR, attempting to create a bridge that
200 exists is an error.  With \fB\-\-may\-exist\fR, this command does
201 nothing if \fIbridge\fR already exists as a VLAN bridge under
202 \fIparent\fR for \fIvlan\fR.
203 .
204 .IP "[\fB\-\-if\-exists\fR] \fBdel\-br \fIbridge\fR"
205 Deletes \fIbridge\fR and all of its ports.  If \fIbridge\fR is a real
206 bridge, this command also deletes any fake bridges that were created
207 with \fIbridge\fR as parent, including all of their ports.
208 .IP
209 Without \fB\-\-if\-exists\fR, attempting to delete a bridge that does
210 not exist is an error.  With \fB\-\-if\-exists\fR, attempting to
211 delete a bridge that does not exist has no effect.
212 .
213 .IP "[\fB\-\-real\fR|\fB\-\-fake\fR] \fBlist\-br\fR"
214 Lists all existing real and fake bridges on standard output, one per
215 line.  With \fB\-\-real\fR or \fB\-\-fake\fR, only bridges of that type
216 are returned.
217 .
218 .IP "\fBbr\-exists \fIbridge\fR"
219 Tests whether \fIbridge\fR exists as a real or fake bridge.  If so,
220 \fBovs\-vsctl\fR exits successfully with exit code 0.  If not,
221 \fBovs\-vsctl\fR exits unsuccessfully with exit code 2.
222 .
223 .IP "\fBbr\-to\-vlan \fIbridge\fR"
224 If \fIbridge\fR is a fake bridge, prints the bridge's 802.1Q VLAN as a
225 decimal integer.  If \fIbridge\fR is a real bridge, prints 0.
226 .
227 .IP "\fBbr\-to\-parent \fIbridge\fR"
228 If \fIbridge\fR is a fake bridge, prints the name of its parent
229 bridge.  If \fIbridge\fR is a real bridge, print \fIbridge\fR.
230 .
231 .IP "\fBbr\-set\-external\-id \fIbridge key\fR [\fIvalue\fR]"
232 Sets or clears an ``external ID'' value on \fIbridge\fR.  These values
233 are intended to identify entities external to Open vSwitch with which
234 \fIbridge\fR is associated, e.g. the bridge's identifier in a
235 virtualization management platform.  The Open vSwitch database schema
236 specifies well-known \fIkey\fR values, but \fIkey\fR and \fIvalue\fR
237 are otherwise arbitrary strings.
238 .IP
239 If \fIvalue\fR is specified, then \fIkey\fR is set to \fIvalue\fR for
240 \fIbridge\fR, overwriting any previous value.  If \fIvalue\fR is
241 omitted, then \fIkey\fR is removed from \fIbridge\fR's set of external
242 IDs (if it was present).
243 .IP
244 For real bridges, the effect of this command is similar to that of a
245 \fBset\fR or \fBremove\fR command in the \fBexternal\-ids\fR column of
246 the \fBBridge\fR table.  For fake bridges, it actually modifies keys
247 with names prefixed by \fBfake\-bridge\-\fR in the \fBPort\fR table.
248 .
249 .IP "\fBbr\-get\-external\-id \fIbridge\fR [\fIkey\fR]"
250 Queries the external IDs on \fIbridge\fR.  If \fIkey\fR is specified,
251 the output is the value for that \fIkey\fR or the empty string if
252 \fIkey\fR is unset.  If \fIkey\fR is omitted, the output is
253 \fIkey\fB=\fIvalue\fR, one per line, for each key-value pair.
254 .IP
255 For real bridges, the effect of this command is similar to that of a
256 \fBget\fR command in the \fBexternal\-ids\fR column of the
257 \fBBridge\fR table.  For fake bridges, it queries keys with names
258 prefixed by \fBfake\-bridge\-\fR in the \fBPort\fR table.
259 .
260 .SS "Port Commands"
261 .
262 These commands examine and manipulate Open vSwitch ports.  These
263 commands treat a bonded port as a single entity.
264 .
265 .IP "\fBlist\-ports \fIbridge\fR"
266 Lists all of the ports within \fIbridge\fR on standard output, one per
267 line.  The local port \fIbridge\fR is not included in the list.
268 .
269 .IP "[\fB\-\-may\-exist\fR] \fBadd\-port \fIbridge port \fR[\fIcolumn\fR[\fB:\fIkey\fR]\fR=\fIvalue\fR]\&...\fR"
270 Creates on \fIbridge\fR a new port named \fIport\fR from the network
271 device of the same name.
272 .IP
273 Optional arguments set values of column in the Port record created by
274 the command.  For example, \fBtag=9\fR would make the port an access
275 port for VLAN 9.  The syntax is the same as that for the \fBset\fR
276 command (see \fBDatabase Commands\fR below).
277 .IP
278 Without \fB\-\-may\-exist\fR, attempting to create a port that exists
279 is an error.  With \fB\-\-may\-exist\fR, this command does nothing if
280 \fIport\fR already exists on \fIbridge\fR and is not a bonded port.
281 .
282 .IP "[\fB\-\-fake\-iface\fR] \fBadd\-bond \fIbridge port iface\fR\&... [\fIcolumn\fR[\fB:\fIkey\fR]\fR=\fIvalue\fR]\&...\fR"
283 Creates on \fIbridge\fR a new port named \fIport\fR that bonds
284 together the network devices given as each \fIiface\fR.  At least two
285 interfaces must be named.
286 .IP
287 Optional arguments set values of column in the Port record created by
288 the command.  The syntax is the same as that for the \fBset\fR command
289 (see \fBDatabase Commands\fR below).
290 .IP
291 With \fB\-\-fake\-iface\fR, a fake interface with the name \fIport\fR is
292 created.  This should only be used for compatibility with legacy
293 software that requires it.
294 .IP
295 Without \fB\-\-may\-exist\fR, attempting to create a port that exists
296 is an error.  With \fB\-\-may\-exist\fR, this command does nothing if
297 \fIport\fR already exists on \fIbridge\fR and bonds together exactly
298 the specified interfaces.
299 .
300 .IP "[\fB\-\-if\-exists\fR] \fBdel\-port \fR[\fIbridge\fR] \fIport\fR"
301 Deletes \fIport\fR.  If \fIbridge\fR is omitted, \fIport\fR is removed
302 from whatever bridge contains it; if \fIbridge\fR is specified, it
303 must be the real or fake bridge that contains \fIport\fR.
304 .IP
305 Without \fB\-\-if\-exists\fR, attempting to delete a port that does
306 not exist is an error.  With \fB\-\-if\-exists\fR, attempting to
307 delete a port that does not exist has no effect.
308 .
309 .IP "[\fB\-\-if\-exists\fR] \fB\-\-with\-iface del\-port \fR[\fIbridge\fR] \fIiface\fR"
310 Deletes the port named \fIiface\fR or that has an interface named
311 \fIiface\fR.  If \fIbridge\fR is omitted, the port is removed from
312 whatever bridge contains it; if \fIbridge\fR is specified, it must be
313 the real or fake bridge that contains the port.
314 .IP
315 Without \fB\-\-if\-exists\fR, attempting to delete the port for an
316 interface that does not exist is an error.  With \fB\-\-if\-exists\fR,
317 attempting to delete the port for an interface that does not exist has
318 no effect.
319 .
320 .IP "\fBport\-to\-br \fIport\fR"
321 Prints the name of the bridge that contains \fIport\fR on standard
322 output.
323 .
324 .SS "Interface Commands"
325 .
326 These commands examine the interfaces attached to an Open vSwitch
327 bridge.  These commands treat a bonded port as a collection of two or
328 more interfaces, rather than as a single port.
329 .
330 .IP "\fBlist\-ifaces \fIbridge\fR"
331 Lists all of the interfaces within \fIbridge\fR on standard output,
332 one per line.  The local port \fIbridge\fR is not included in the
333 list.
334 .
335 .IP "\fBiface\-to\-br \fIiface\fR"
336 Prints the name of the bridge that contains \fIiface\fR on standard
337 output.
338 .
339 .SS "OpenFlow Controller Connectivity"
340 .
341 \fBovs\-vswitchd\fR can perform all configured bridging and switching
342 locally, or it can be configured to communicate with one or more
343 external OpenFlow controllers.  The switch is typically configured to
344 connect to a primary controller that takes charge of the bridge's flow
345 table to implement a network policy.  In addition, the switch can be
346 configured to listen to connections from service controllers.  Service
347 controllers are typically used for occasional support and maintenance,
348 e.g. with \fBovs\-ofctl\fR.
349 .
350 .IP "\fBget\-controller\fR \fIbridge\fR"
351 Prints the configured controller target.
352 .
353 .IP "\fBdel\-controller\fR \fIbridge\fR"
354 Deletes the configured controller target.
355 .
356 .IP "\fBset\-controller\fR \fIbridge\fR \fItarget\fR\&..."
357 Sets the configured controller target or targets.  Each \fItarget\fR may
358 use any of the following forms:
359 .
360 .RS
361 .so lib/vconn-active.man
362 .so lib/vconn-passive.man
363 .RE
364 .
365 .ST "Controller Failure Settings"
366 .PP
367 When a controller is configured, it is, ordinarily, responsible for
368 setting up all flows on the switch.  Thus, if the connection to
369 the controller fails, no new network connections can be set up.  If
370 the connection to the controller stays down long enough, no packets
371 can pass through the switch at all.
372 .PP
373 If the value is \fBstandalone\fR, or if neither of these settings
374 is set, \fBovs\-vswitchd\fR will take over
375 responsibility for setting up
376 flows when no message has been received from the controller for three
377 times the inactivity probe interval.  In this mode,
378 \fBovs\-vswitchd\fR causes the datapath to act like an ordinary
379 MAC-learning switch.  \fBovs\-vswitchd\fR will continue to retry connecting
380 to the controller in the background and, when the connection succeeds,
381 it discontinues its standalone behavior.
382 .PP
383 If this option is set to \fBsecure\fR, \fBovs\-vswitchd\fR will not
384 set up flows on its own when the controller connection fails.
385 .
386 .IP "\fBget\-fail\-mode\fR \fIbridge\fR"
387 Prints the configured failure mode.
388 .
389 .IP "\fBdel\-fail\-mode\fR \fIbridge\fR"
390 Deletes the configured failure mode.
391 .
392 .IP "\fBset\-fail\-mode\fR \fIbridge\fR \fBstandalone\fR|\fBsecure\fR"
393 Sets the configured failure mode.
394 .
395 .SS "Manager Connectivity"
396 .
397 These commands manipulate the \fBmanager_options\fR column in the
398 \fBOpen_vSwitch\fR table and rows in the \fBManagers\fR table.  When
399 \fBovsdb\-server\fR is configured to use the \fBmanager_options\fR column for
400 OVSDB connections (as described in \fBINSTALL.Linux\fR and in the startup
401 scripts provided with Open vSwitch), this allows the administrator to use
402 \fBovs\-vsctl\fR to configure database connections.
403 .
404 .IP "\fBget\-manager\fR"
405 Prints the configured manager(s).
406 .
407 .IP "\fBdel\-manager\fR"
408 Deletes the configured manager(s).
409 .
410 .IP "\fBset\-manager\fR \fItarget\fR\&..."
411 Sets the configured manager target or targets.  Each \fItarget\fR may
412 use any of the following forms:
413 .
414 .RS
415 .so ovsdb/remote-active.man
416 .so ovsdb/remote-passive.man
417 .RE
418 .
419 .SS "SSL Configuration"
420 When \fBovs\-vswitchd\fR is configured to connect over SSL for management or
421 controller connectivity, the following parameters are required:
422 .TP
423 \fIprivate-key\fR
424 Specifies a PEM file containing the private key used as the virtual
425 switch's identity for SSL connections to the controller.
426 .TP
427 \fIcertificate\fR
428 Specifies a PEM file containing a certificate, signed by the
429 certificate authority (CA) used by the controller and manager, that
430 certifies the virtual switch's private key, identifying a trustworthy
431 switch.
432 .TP
433 \fIca-cert\fR
434 Specifies a PEM file containing the CA certificate used to verify that
435 the virtual switch is connected to a trustworthy controller.
436 .PP
437 These files are read only once, at \fBovs\-vswitchd\fR startup time.  If
438 their contents change, \fBovs\-vswitchd\fR must be killed and restarted.
439 .PP
440 These SSL settings apply to all SSL connections made by the virtual
441 switch.
442 .
443 .IP "\fBget\-ssl\fR"
444 Prints the SSL configuration.
445 .
446 .IP "\fBdel\-ssl\fR"
447 Deletes the current SSL configuration.
448 .
449 .IP "[\fB\-\-bootstrap\fR] \fBset\-ssl\fR \fIprivate-key\fR \fIcertificate\fR \fIca-cert\fR"
450 Sets the SSL configuration.  The \fB\-\-bootstrap\fR option is described 
451 below.
452 .
453 .ST "CA Certificate Bootstrap"
454 .PP
455 Ordinarily, all of the files named in the SSL configuration must exist
456 when \fBovs\-vswitchd\fR starts.  However, if the \fIca-cert\fR file
457 does not exist and the \fB\-\-bootstrap\fR
458 option is given, then \fBovs\-vswitchd\fR will attempt to obtain the
459 CA certificate from the controller on its first SSL connection and
460 save it to the named PEM file.  If it is successful, it will
461 immediately drop the connection and reconnect, and from then on all
462 SSL connections must be authenticated by a certificate signed by the
463 CA certificate thus obtained.
464 .PP
465 \fBThis option exposes the SSL connection to a man-in-the-middle
466 attack obtaining the initial CA certificate\fR, but it may be useful
467 for bootstrapping.
468 .PP
469 This option is only useful if the controller sends its CA certificate
470 as part of the SSL certificate chain.  The SSL protocol does not
471 require the controller to send the CA certificate, but
472 \fBovs\-controller\fR(8) can be configured to do so with the
473 \fB\-\-peer\-ca\-cert\fR option.
474 .
475 .SS "Database Commands"
476 .
477 These commands query and modify the contents of \fBovsdb\fR tables.
478 They are a slight abstraction of the \fBovsdb\fR interface and as such
479 they operate at a lower level than other \fBovs\-vsctl\fR commands.
480 .PP
481 .ST "Identifying Tables, Records, and Columns"
482 .PP
483 Each of these commands has a \fItable\fR parameter to identify a table
484 within the database.  Many of them also take a \fIrecord\fR parameter
485 that identifies a particular record within a table.  The \fIrecord\fR
486 parameter may be the UUID for a record, and many tables offer
487 additional ways to identify records.  Some commands also take
488 \fIcolumn\fR parameters that identify a particular field within the
489 records in a table.
490 .PP
491 The following tables are currently defined:
492 .IP "\fBOpen_vSwitch\fR"
493 Global configuration for an \fBovs\-vswitchd\fR.  This table contains
494 exactly one record, identified by specifying \fB.\fR as the record
495 name.
496 .IP "\fBBridge\fR"
497 Configuration for a bridge within an Open vSwitch.  Records may be
498 identified by bridge name.
499 .IP "\fBPort\fR"
500 A bridge port.  Records may be identified by port name.
501 .IP "\fBInterface\fR"
502 A network device attached to a port.  Records may be identified by
503 name.
504 .IP "\fBFlow_Table\fR"
505 Configuration for a particular OpenFlow flow table.  Records may be
506 identified by name.
507 .IP "\fBQoS\fR"
508 Quality-of-service configuration for a \fBPort\fR.  Records may be
509 identified by port name.
510 .IP "\fBQueue\fR"
511 Configuration for one queue within a \fBQoS\fR configuration.  Records
512 may only be identified by UUID.
513 .IP "\fBMirror\fR"
514 A port mirroring configuration attached to a bridge.  Records may be
515 identified by mirror name.
516 .IP "\fBController\fR"
517 Configuration for an OpenFlow controller.  A controller attached to a
518 particular bridge may be identified by the bridge's name.
519 .IP "\fBManager\fR"
520 Configuration for an OVSDB connection.  Records may be identified
521 by target (e.g. \fBtcp:1.2.3.4\fR).
522 .IP "\fBNetFlow\fR"
523 A NetFlow configuration attached to a bridge.  Records may be
524 identified by bridge name.
525 .IP "\fBSSL\fR"
526 The global SSL configuration for \fBovs\-vswitchd\fR.  The record
527 attached to the \fBOpen_vSwitch\fR table may be identified by
528 specifying \fB.\fR as the record name.
529 .IP "\fBsFlow\fR"
530 An sFlow exporter configuration attached to a bridge.  Records may be
531 identified by bridge name.
532 .IP "\fBIPFIX\fR"
533 An IPFIX exporter configuration attached to a bridge.  Records may be
534 identified by bridge name.
535 .IP "\fBFlow_Sample_Collector_Set\fR"
536 An IPFIX exporter configuration attached to a bridge for sampling
537 packets on a per-flow basis using OpenFlow \fBsample\fR actions.
538 .PP
539 Record names must be specified in full and with correct
540 capitalization.  Names of tables and columns are not case-sensitive,
541 and \fB\-\-\fR and \fB_\fR are treated interchangeably.  Unique
542 abbreviations are acceptable, e.g. \fBnet\fR or \fBn\fR is sufficient
543 to identify the \fBNetFlow\fR table.
544 .
545 .ST "Database Values"
546 .PP
547 Each column in the database accepts a fixed type of data.  The
548 currently defined basic types, and their representations, are:
549 .IP "integer"
550 A decimal integer in the range \-2**63 to 2**63\-1, inclusive.
551 .IP "real"
552 A floating-point number.
553 .IP "Boolean"
554 True or false, written \fBtrue\fR or \fBfalse\fR, respectively.
555 .IP "string"
556 An arbitrary Unicode string, except that null bytes are not allowed.
557 Quotes are optional for most strings that begin with an English letter
558 or underscore and consist only of letters, underscores, hyphens, and
559 periods.  However, \fBtrue\fR and \fBfalse\fR and strings that match
560 the syntax of UUIDs (see below) must be enclosed in double quotes to
561 distinguish them from other basic types.  When double quotes are used,
562 the syntax is that of strings in JSON, e.g. backslashes may be used to
563 escape special characters.  The empty string must be represented as a
564 pair of double quotes (\fB""\fR).
565 .IP "UUID"
566 Either a universally unique identifier in the style of RFC 4122,
567 e.g. \fBf81d4fae\-7dec\-11d0\-a765\-00a0c91e6bf6\fR, or an \fB@\fIname\fR
568 defined by a \fBget\fR or \fBcreate\fR command within the same \fBovs\-vsctl\fR
569 invocation.
570 .PP
571 Multiple values in a single column may be separated by spaces or a
572 single comma.  When multiple values are present, duplicates are not
573 allowed, and order is not important.  Conversely, some database
574 columns can have an empty set of values, represented as \fB[]\fR, and
575 square brackets may optionally enclose other non-empty sets or single
576 values as well.
577 .PP
578 A few database columns are ``maps'' of key-value pairs, where the key
579 and the value are each some fixed database type.  These are specified
580 in the form \fIkey\fB=\fIvalue\fR, where \fIkey\fR and \fIvalue\fR
581 follow the syntax for the column's key type and value type,
582 respectively.  When multiple pairs are present (separated by spaces or
583 a comma), duplicate keys are not allowed, and again the order is not
584 important.  Duplicate values are allowed.  An empty map is represented
585 as \fB{}\fR.  Curly braces may optionally enclose non-empty maps as
586 well (but use quotes to prevent the shell from expanding
587 \fBother-config={0=x,1=y}\fR into \fBother-config=0=x
588 other-config=1=y\fR, which may not have the desired effect).
589 .
590 .ST "Database Command Syntax"
591 .
592 .IP "[\fB\-\-if\-exists\fR] [\fB\-\-columns=\fIcolumn\fR[\fB,\fIcolumn\fR]...] \fBlist \fItable \fR[\fIrecord\fR]..."
593 Lists the data in each specified \fIrecord\fR.  If no
594 records are specified, lists all the records in \fItable\fR.
595 .IP
596 If \fB\-\-columns\fR is specified, only the requested columns are
597 listed, in the specified order.  Otherwise, all columns are listed, in
598 alphabetical order by column name.
599 .IP
600 Without \fB\-\-if-exists\fR, it is an error if any specified
601 \fIrecord\fR does not exist.  With \fB\-\-if-exists\fR, the command
602 ignores any \fIrecord\fR that does not exist, without producing any
603 output.
604 .
605 .IP "[\fB\-\-columns=\fIcolumn\fR[\fB,\fIcolumn\fR]...] \fBfind \fItable \fR[\fIcolumn\fR[\fB:\fIkey\fR]\fB=\fIvalue\fR]..."
606 Lists the data in each record in \fItable\fR whose \fIcolumn\fR equals
607 \fIvalue\fR or, if \fIkey\fR is specified, whose \fIcolumn\fR contains
608 a \fIkey\fR with the specified \fIvalue\fR.  The following operators
609 may be used where \fB=\fR is written in the syntax summary:
610 .RS
611 .IP "\fB= != < > <= >=\fR"
612 Selects records in which \fIcolumn\fR[\fB:\fIkey\fR] equals, does not
613 equal, is less than, is greater than, is less than or equal to, or is
614 greater than or equal to \fIvalue\fR, respectively.
615 .IP
616 Consider \fIcolumn\fR[\fB:\fIkey\fR] and \fIvalue\fR as sets of
617 elements.  Identical sets are considered equal.  Otherwise, if the
618 sets have different numbers of elements, then the set with more
619 elements is considered to be larger.  Otherwise, consider a element
620 from each set pairwise, in increasing order within each set.  The
621 first pair that differs determines the result.  (For a column that
622 contains key-value pairs, first all the keys are compared, and values
623 are considered only if the two sets contain identical keys.)
624 .IP "\fB{=} {!=}\fR"
625 Test for set equality or inequality, respectively.
626 .IP "\fB{<=}\fR"
627 Selects records in which \fIcolumn\fR[\fB:\fIkey\fR] is a subset of
628 \fIvalue\fR.  For example, \fBflood-vlans{<=}1,2\fR selects records in
629 which the \fBflood-vlans\fR column is the empty set or contains 1 or 2
630 or both.
631 .IP "\fB{<}\fR"
632 Selects records in which \fIcolumn\fR[\fB:\fIkey\fR] is a proper
633 subset of \fIvalue\fR.  For example, \fBflood-vlans{<}1,2\fR selects
634 records in which the \fBflood-vlans\fR column is the empty set or
635 contains 1 or 2 but not both.
636 .IP "\fB{>=} {>}\fR"
637 Same as \fB{<=}\fR and \fB{<}\fR, respectively, except that the
638 relationship is reversed.  For example, \fBflood-vlans{>=}1,2\fR
639 selects records in which the \fBflood-vlans\fR column contains both 1
640 and 2.
641 .RE
642 .IP
643 For arithmetic operators (\fB= != < > <= >=\fR), when \fIkey\fR is
644 specified but a particular record's \fIcolumn\fR does not contain
645 \fIkey\fR, the record is always omitted from the results.  Thus, the
646 condition \fBother-config:mtu!=1500\fR matches records that have a
647 \fBmtu\fR key whose value is not 1500, but not those that lack an
648 \fBmtu\fR key.
649 .IP
650 For the set operators, when \fIkey\fR is specified but a particular
651 record's \fIcolumn\fR does not contain \fIkey\fR, the comparison is
652 done against an empty set.  Thus, the condition
653 \fBother-config:mtu{!=}1500\fR matches records that have a \fBmtu\fR
654 key whose value is not 1500 and those that lack an \fBmtu\fR key.
655 .IP
656 Don't forget to escape \fB<\fR or \fB>\fR from interpretation by the
657 shell.
658 .IP
659 If \fB\-\-columns\fR is specified, only the requested columns are
660 listed, in the specified order.  Otherwise all columns are listed, in
661 alphabetical order by column name.
662 .IP
663 The UUIDs shown for rows created in the same \fBovs\-vsctl\fR
664 invocation will be wrong.
665 .
666 .IP "[\fB\-\-if\-exists\fR] [\fB\-\-id=@\fIname\fR] \fBget \fItable record \fR[\fIcolumn\fR[\fB:\fIkey\fR]]..."
667 Prints the value of each specified \fIcolumn\fR in the given
668 \fIrecord\fR in \fItable\fR.  For map columns, a \fIkey\fR may
669 optionally be specified, in which case the value associated with
670 \fIkey\fR in the column is printed, instead of the entire map.
671 .IP
672 Without \fB\-\-if\-exists\fR, it is an error if \fIrecord\fR does not
673 exist or \fIkey\fR is specified, if \fIkey\fR does not exist in
674 \fIrecord\fR.  With \fB\-\-if\-exists\fR, a missing \fIrecord\fR
675 yields no output and a missing \fIkey\fR prints a blank line.
676 .IP
677 If \fB@\fIname\fR is specified, then the UUID for \fIrecord\fR may be
678 referred to by that name later in the same \fBovs\-vsctl\fR
679 invocation in contexts where a UUID is expected.
680 .IP
681 Both \fB\-\-id\fR and the \fIcolumn\fR arguments are optional, but
682 usually at least one or the other should be specified.  If both are
683 omitted, then \fBget\fR has no effect except to verify that
684 \fIrecord\fR exists in \fItable\fR.
685 .IP
686 \fB\-\-id\fR and \fB\-\-if\-exists\fR cannot be used together.
687 .
688 .IP "[\fB\-\-if\-exists\fR] \fBset \fItable record column\fR[\fB:\fIkey\fR]\fB=\fIvalue\fR..."
689 Sets the value of each specified \fIcolumn\fR in the given
690 \fIrecord\fR in \fItable\fR to \fIvalue\fR.  For map columns, a
691 \fIkey\fR may optionally be specified, in which case the value
692 associated with \fIkey\fR in that column is changed (or added, if none
693 exists), instead of the entire map.
694 .IP
695 Without \fB\-\-if-exists\fR, it is an error if \fIrecord\fR does not
696 exist.  With \fB\-\-if-exists\fR, this command does nothing if
697 \fIrecord\fR does not exist.
698 .
699 .IP "[\fB\-\-if\-exists\fR] \fBadd \fItable record column \fR[\fIkey\fB=\fR]\fIvalue\fR..."
700 Adds the specified value or key-value pair to \fIcolumn\fR in
701 \fIrecord\fR in \fItable\fR.  If \fIcolumn\fR is a map, then \fIkey\fR
702 is required, otherwise it is prohibited.  If \fIkey\fR already exists
703 in a map column, then the current \fIvalue\fR is not replaced (use the
704 \fBset\fR command to replace an existing value).
705 .IP
706 Without \fB\-\-if-exists\fR, it is an error if \fIrecord\fR does not
707 exist.  With \fB\-\-if-exists\fR, this command does nothing if
708 \fIrecord\fR does not exist.
709 .
710 .IP "[\fB\-\-if\-exists\fR] \fBremove \fItable record column \fR\fIvalue\fR..."
711 .IQ "[\fB\-\-if\-exists\fR] \fBremove \fItable record column \fR\fIkey\fR..."
712 .IQ "[\fB\-\-if\-exists\fR] \fBremove \fItable record column \fR\fIkey\fB=\fR\fIvalue\fR..."
713 Removes the specified values or key-value pairs from \fIcolumn\fR in
714 \fIrecord\fR in \fItable\fR.  The first form applies to columns that
715 are not maps: each specified \fIvalue\fR is removed from the column.
716 The second and third forms apply to map columns: if only a \fIkey\fR
717 is specified, then any key-value pair with the given \fIkey\fR is
718 removed, regardless of its value; if a \fIvalue\fR is given then a
719 pair is removed only if both key and value match.
720 .IP
721 It is not an error if the column does not contain the specified key or
722 value or pair.
723 .IP
724 Without \fB\-\-if-exists\fR, it is an error if \fIrecord\fR does not
725 exist.  With \fB\-\-if-exists\fR, this command does nothing if
726 \fIrecord\fR does not exist.
727 .
728 .IP "[\fB\-\-if\-exists\fR] \fBclear\fR \fItable record column\fR..."
729 Sets each \fIcolumn\fR in \fIrecord\fR in \fItable\fR to the empty set
730 or empty map, as appropriate.  This command applies only to columns
731 that are allowed to be empty.
732 .IP
733 Without \fB\-\-if-exists\fR, it is an error if \fIrecord\fR does not
734 exist.  With \fB\-\-if-exists\fR, this command does nothing if
735 \fIrecord\fR does not exist.
736 .
737 .IP "[\fB\-\-id=@\fIname\fR] \fBcreate\fR \fItable column\fR[\fB:\fIkey\fR]\fB=\fIvalue\fR..."
738 Creates a new record in \fItable\fR and sets the initial values of
739 each \fIcolumn\fR.  Columns not explicitly set will receive their
740 default values.  Outputs the UUID of the new row.
741 .IP
742 If \fB@\fIname\fR is specified, then the UUID for the new row may be
743 referred to by that name elsewhere in the same \fBovs\-vsctl\fR
744 invocation in contexts where a UUID is expected.  Such references may
745 precede or follow the \fBcreate\fR command.
746 .IP
747 Records in the Open vSwitch database are significant only when they
748 can be reached directly or indirectly from the \fBOpen_vSwitch\fR
749 table.  Except for records in the \fBQoS\fR or \fBQueue\fR tables,
750 records that are not reachable from the \fBOpen_vSwitch\fR table are
751 automatically deleted from the database.  This deletion happens
752 immediately, without waiting for additional \fBovs\-vsctl\fR commands
753 or other database activity.  Thus, a \fBcreate\fR command must
754 generally be accompanied by additional commands \fIwithin the same
755 \fBovs\-vsctl\fI invocation\fR to add a chain of references to the
756 newly created record from the top-level \fBOpen_vSwitch\fR record.
757 The \fBEXAMPLES\fR section gives some examples that show how to do
758 this.
759 .
760 .IP "\fR[\fB\-\-if\-exists\fR] \fBdestroy \fItable record\fR..."
761 Deletes each specified \fIrecord\fR from \fItable\fR.  Unless
762 \fB\-\-if\-exists\fR is specified, each \fIrecord\fRs must exist.
763 .IP "\fB\-\-all destroy \fItable\fR"
764 Deletes all records from the \fItable\fR.
765 .IP
766 The \fBdestroy\fR command is only useful for records in the \fBQoS\fR
767 or \fBQueue\fR tables.  Records in other tables are automatically
768 deleted from the database when they become unreachable from the
769 \fBOpen_vSwitch\fR table.  This means that deleting the last reference
770 to a record is sufficient for deleting the record itself.  For records
771 in these tables, \fBdestroy\fR is silently ignored.  See the
772 \fBEXAMPLES\fR section below for more information.
773 .
774 .IP "\fBwait\-until \fItable record \fR[\fIcolumn\fR[\fB:\fIkey\fR]\fB=\fIvalue\fR]..."
775 Waits until \fItable\fR contains a record named \fIrecord\fR whose
776 \fIcolumn\fR equals \fIvalue\fR or, if \fIkey\fR is specified, whose
777 \fIcolumn\fR contains a \fIkey\fR with the specified \fIvalue\fR.  Any
778 of the operators \fB!=\fR, \fB<\fR, \fB>\fR, \fB<=\fR, or \fB>=\fR may
779 be substituted for \fB=\fR to test for inequality, less than, greater
780 than, less than or equal to, or greater than or equal to,
781 respectively.  (Don't forget to escape \fB<\fR or \fB>\fR from
782 interpretation by the shell.)
783 .IP
784 If no \fIcolumn\fR[\fB:\fIkey\fR]\fB=\fIvalue\fR arguments are given,
785 this command waits only until \fIrecord\fR exists.  If more than one
786 such argument is given, the command waits until all of them are
787 satisfied.
788 .IP
789 Usually \fBwait\-until\fR should be placed at the beginning of a set
790 of \fBovs\-vsctl\fR commands.  For example, \fBwait\-until bridge br0
791 \-\- get bridge br0 datapath_id\fR waits until a bridge named
792 \fBbr0\fR is created, then prints its \fBdatapath_id\fR column,
793 whereas \fBget bridge br0 datapath_id \-\- wait\-until bridge br0\fR
794 will abort if no bridge named \fBbr0\fR exists when \fBovs\-vsctl\fR
795 initially connects to the database.
796 .IP
797 Consider specifying \fB\-\-timeout=0\fR along with
798 \fB\-\-wait\-until\fR, to prevent \fBovs\-vsctl\fR from terminating
799 after waiting only at most 5 seconds.
800 .IP "\fBcomment \fR[\fIarg\fR]..."
801 This command has no effect on behavior, but any database log record
802 created by the command will include the command and its arguments.
803 .SH "EXAMPLES"
804 Create a new bridge named br0 and add port eth0 to it:
805 .IP
806 .B "ovs\-vsctl add\-br br0"
807 .br
808 .B "ovs\-vsctl add\-port br0 eth0"
809 .PP
810 Alternatively, perform both operations in a single atomic transaction:
811 .IP 
812 .B "ovs\-vsctl add\-br br0 \-\- add\-port br0 eth0"
813 .PP
814 Delete bridge \fBbr0\fR, reporting an error if it does not exist:
815 .IP
816 .B "ovs\-vsctl del\-br br0"
817 .PP
818 Delete bridge \fBbr0\fR if it exists:
819 .IP
820 .B "ovs\-vsctl \-\-if\-exists del\-br br0"
821 .PP
822 Set the \fBqos\fR column of the \fBPort\fR record for \fBeth0\fR to
823 point to a new \fBQoS\fR record, which in turn points with its queue 0
824 to a new \fBQueue\fR record:
825 .IP
826 .B "ovs\-vsctl \-\- set port eth0 qos=@newqos \-\- \-\-id=@newqos create qos type=linux\-htb other\-config:max\-rate=1000000 queues:0=@newqueue \-\- \-\-id=@newqueue create queue other\-config:min\-rate=1000000 other\-config:max\-rate=1000000"
827 .SH "CONFIGURATION COOKBOOK"
828 .SS "Port Configuration"
829 .PP
830 Add an ``internal port'' \fBvlan10\fR to bridge \fBbr0\fR as a VLAN
831 access port for VLAN 10, and configure it with an IP address:
832 .IP
833 .B "ovs\-vsctl add\-port br0 vlan10 tag=10 \-\- set Interface vlan10 type=internal"
834 .IP
835 .B "ifconfig vlan10 192.168.0.123"
836 .
837 .PP
838 Add a GRE tunnel port \fBgre0\fR to remote IP address 1.2.3.4 to
839 bridge \fBbr0\fR:
840 .IP
841 .B "ovs\-vsctl add\-port br0 gre0 \-\- set Interface gre0 type=gre options:remote_ip=1.2.3.4"
842 .
843 .SS "Port Mirroring"
844 .PP
845 Mirror all packets received or sent on \fBeth0\fR or \fBeth1\fR onto
846 \fBeth2\fR, assuming that all of those ports exist on bridge \fBbr0\fR
847 (as a side-effect this causes any packets received on \fBeth2\fR to be
848 ignored):
849 .IP
850 .B "ovs\-vsctl \-\- set Bridge br0 mirrors=@m \(rs"
851 .IP
852 .B "\-\- \-\-id=@eth0 get Port eth0 \(rs"
853 .IP
854 .B "\-\- \-\-id=@eth1 get Port eth1 \(rs"
855 .IP
856 .B "\-\- \-\-id=@eth2 get Port eth2 \(rs"
857 .IP
858 .B "\-\- \-\-id=@m create Mirror name=mymirror select-dst-port=@eth0,@eth1 select-src-port=@eth0,@eth1 output-port=@eth2"
859 .PP
860 Remove the mirror created above from \fBbr0\fR, which also destroys
861 the Mirror record (since it is now unreferenced):
862 .IP
863 .B "ovs\-vsctl \-\- \-\-id=@rec get Mirror mymirror \(rs"
864 .IP
865 .B "\-\- remove Bridge br0 mirrors @rec"
866 .PP
867 The following simpler command also works:
868 .IP
869 .B "ovs\-vsctl clear Bridge br0 mirrors"
870 .SS "Quality of Service (QoS)"
871 .PP
872 Create a \fBlinux\-htb\fR QoS record that points to a few queues and
873 use it on \fBeth0\fR and \fBeth1\fR:
874 .IP
875 .B "ovs\-vsctl \-\- set Port eth0 qos=@newqos \(rs"
876 .IP
877 .B "\-\- set Port eth1 qos=@newqos \(rs"
878 .IP
879 .B "\-\- \-\-id=@newqos create QoS type=linux\-htb other\-config:max\-rate=1000000000 queues=0=@q0,1=@q1 \(rs"
880 .IP
881 .B "\-\- \-\-id=@q0 create Queue other\-config:min\-rate=100000000 other\-config:max\-rate=100000000 \(rs"
882 .IP
883 .B "\-\- \-\-id=@q1 create Queue other\-config:min\-rate=500000000"
884 .PP
885 Deconfigure the QoS record above from \fBeth1\fR only:
886 .IP
887 .B "ovs\-vsctl clear Port eth1 qos"
888 .PP
889 To deconfigure the QoS record from both \fBeth0\fR and \fBeth1\fR and
890 then delete the QoS record (which must be done explicitly because
891 unreferenced QoS records are not automatically destroyed):
892 .IP
893 .B "ovs\-vsctl \-\- destroy QoS eth0 \-\- clear Port eth0 qos \-\- clear Port eth1 qos"
894 .PP
895 (This command will leave two unreferenced Queue records in the
896 database.  To delete them, use "\fBovs\-vsctl list Queue\fR" to find
897 their UUIDs, then "\fBovs\-vsctl destroy Queue \fIuuid1\fR
898 \fIuuid2\fR" to destroy each of them or use
899 "\fBovs\-vsctl -- --all destroy Queue\fR" to delete all records.)
900 .SS "Connectivity Monitoring"
901 .PP
902 Monitor connectivity to a remote maintenance point on eth0.
903 .IP
904 .B "ovs\-vsctl set Interface eth0 cfm_mpid=1"
905 .PP
906 Deconfigure connectivity monitoring from above:
907 .IP
908 .B "ovs\-vsctl clear Interface eth0 cfm_mpid"
909 .SS "NetFlow"
910 .PP
911 Configure bridge \fBbr0\fR to send NetFlow records to UDP port 5566 on
912 host 192.168.0.34, with an active timeout of 30 seconds:
913 .IP
914 .B "ovs\-vsctl \-\- set Bridge br0 netflow=@nf \(rs"
915 .IP
916 .B "\-\- \-\-id=@nf create NetFlow targets=\(rs\(dq192.168.0.34:5566\(rs\(dq active\-timeout=30"
917 .PP
918 Update the NetFlow configuration created by the previous command to
919 instead use an active timeout of 60 seconds:
920 .IP
921 .B "ovs\-vsctl set NetFlow br0 active_timeout=60"
922 .PP
923 Deconfigure the NetFlow settings from \fBbr0\fR, which also destroys
924 the NetFlow record (since it is now unreferenced):
925 .IP
926 .B "ovs\-vsctl clear Bridge br0 netflow"
927 .SS "sFlow"
928 .PP
929 Configure bridge \fBbr0\fR to send sFlow records to a collector on
930 10.0.0.1 at port 6343, using \fBeth1\fR\'s IP address as the source,
931 with specific sampling parameters:
932 .IP
933 .B "ovs\-vsctl \-\- \-\-id=@s create sFlow agent=eth1 target=\(rs\(dq10.0.0.1:6343\(rs\(dq header=128 sampling=64 polling=10 \(rs"
934 .IP
935 .B "\-\- set Bridge br0 sflow=@s"
936 .PP
937 Deconfigure sFlow from \fBbr0\fR, which also destroys the sFlow record
938 (since it is now unreferenced):
939 .IP
940 .B "ovs\-vsctl \-\- clear Bridge br0 sflow"
941 .SS "IPFIX"
942 .PP
943 Configure bridge \fBbr0\fR to send one IPFIX flow record per packet
944 sample to UDP port 4739 on host 192.168.0.34, with Observation Domain
945 ID 123 and Observation Point ID 456, a flow cache active timeout of 1
946 minute (60 seconds), and a maximum flow cache size of 13 flows:
947 .IP
948 .B "ovs\-vsctl \-\- set Bridge br0 ipfix=@i \(rs"
949 .IP
950 .B "\-\- \-\-id=@i create IPFIX targets=\(rs\(dq192.168.0.34:4739\(rs\(dq obs_domain_id=123 obs_point_id=456 cache_active_timeout=60 cache_max_flows=13"
951 .PP
952 Deconfigure the IPFIX settings from \fBbr0\fR, which also destroys the
953 IPFIX record (since it is now unreferenced):
954 .IP
955 .B "ovs\-vsctl clear Bridge br0 ipfix"
956 .SS "802.1D Spanning Tree Protocol (STP)"
957 .PP
958 Configure bridge \fBbr0\fR to participate in an 802.1D spanning tree:
959 .IP
960 .B "ovs\-vsctl set Bridge br0 stp_enable=true"
961 .PP
962 Set the bridge priority of \fBbr0\fR to 0x7800:
963 .IP
964 .B "ovs\-vsctl set Bridge br0 other_config:stp-priority=0x7800"
965 .PP
966 Set the path cost of port \fBeth0\fR to 10:
967 .IP
968 .B "ovs\-vsctl set Port eth0 other_config:stp-path-cost=10"
969 .PP
970 Deconfigure STP from above:
971 .IP
972 .B "ovs\-vsctl clear Bridge br0 stp_enable"
973 .PP
974 .SS "OpenFlow Version"
975 .PP
976 Configure bridge \fBbr0\fR to support OpenFlow versions 1.0, 1.2, and
977 1.3:
978 .IP
979 .B "ovs\-vsctl set bridge br0 protocols=openflow10,openflow12,openflow13"
980 .
981 .SH "EXIT STATUS"
982 .IP "0"
983 Successful program execution.
984 .IP "1"
985 Usage, syntax, or configuration file error.
986 .IP "2"
987 The \fIbridge\fR argument to \fBbr\-exists\fR specified the name of a
988 bridge that does not exist.
989 .SH "SEE ALSO"
990 .
991 .BR ovsdb\-server (1),
992 .BR ovs\-vswitchd (8),
993 .BR ovs\-vswitchd.conf.db (5).