Add documentation for the vswitch database schema.
[sliver-openvswitch.git] / vswitchd / vswitch.xml
1 <database title="Open vSwitch Configuration Database">
2   <p>A database with this schema holds the configuration for one Open
3     vSwitch daemon.  The root of the configuration for the daemon is
4     the <ref table="Open_vSwitch"/> table, which must have exactly one
5     record.  Records in other tables are significant only when they
6     can be reached directly or indirectly from the
7     <ref table="Open_vSwitch"/> table.</p>
8
9   <table name="Open_vSwitch" title="Open vSwitch configuration.">
10     Configuration for an Open vSwitch daemon.  There must be exactly one record
11     in the <ref table="Open_vSwitch"/> table.
12
13     <group title="Configuration">
14       <column name="bridges">
15         Set of bridges managed by the daemon.
16       </column>
17
18       <column name="controller">
19         Default <ref table="Controller"/> used by bridges.  If a
20         <ref table="Bridge"/> record has a <ref table="Bridge"
21         column="controller"/> column, then this
22         <ref table="Controller"/> is used instead.
23       </column>
24
25       <column name="managers">
26         Remote database clients to which the Open vSwitch's database server
27         should connect or to which it should listen.
28       </column>
29
30       <column name="ssl">
31         SSL used globally by the daemon.
32       </column>
33     </group>
34
35     <group title="Status">
36       <column name="next_cfg">
37         Sequence number for client to increment.  When a client modifies
38         any part of the database configuration and wishes to wait for
39         Open vSwitch to finish applying the changes, it may increment
40         this sequence number.
41       </column>
42
43       <column name="cur_cfg">
44         Sequence number that Open vSwitch sets to the current value of
45         <ref column="next_cfg"/> after it finishing applying a set of
46         configuration changes.
47       </column>
48     </group>
49   </table>
50
51   <table name="Bridge">
52     <p>
53       Configuration for a bridge within an
54       <ref table="Open_vSwitch"/>.
55     </p>
56     <p>
57       A <ref table="Bridge"/> record represents an Ethernet switch with one or
58       more ``ports,'' which are the <ref table="Port"/> records pointed to by
59       the <ref table="Bridge"/>'s <ref column="ports"/> column.
60     </p>
61
62     <group title="Core Features">
63       <column name="name">
64         Bridge identifier.  Should be alphanumeric and no more than about 8
65         bytes long.  Must be unique among the names of ports, interfaces, and
66         bridges on a host.
67       </column>
68
69       <column name="ports">
70         Ports included in the bridge.
71       </column>
72
73       <column name="mirrors">
74         Port mirroring configuration.
75       </column>
76
77       <column name="netflow">
78         NetFlow configuration.
79       </column>
80
81       <column name="sflow">
82         sFlow configuration.
83       </column>
84
85       <column name="flood_vlans">
86         VLAN IDs of VLANs on which MAC address learning should be disabled, so
87         that packets are flooded instead of being sent to specific ports that
88         are believed to contain packets' destination MACs.  This should
89         ordinarily be used to disable MAC learning on VLANs used for mirroring
90         (RSPAN VLANs).  It may also be useful for debugging.
91       </column>
92     </group>
93
94     <group title="OpenFlow Configuration">
95       <column name="controller">
96         OpenFlow controller.  If unset, defaults to that specified by
97         <ref column="controller" table="Open_vSwitch"/> in the
98         <ref table="Open_vSwitch"/> table.  If the default is also unset, then
99         no OpenFlow controller will be used.
100       </column>
101
102       <column name="datapath_id">
103         Reports the OpenFlow datapath ID in use.  Exactly 12 hex digits.
104       </column>
105     </group>
106
107     <group title="Other Features">
108       <column name="datapath_type">
109         Name of datapath provider.  The kernel datapath has
110         type <code>system</code>.  The userspace datapath has
111         type <code>netdev</code>.
112       </column>
113
114       <column name="external_ids">
115         Key-value pairs that identify this bridge's role in external systems.
116         The currently defined key-value pairs are:
117         <dl>
118           <dt><code>xs-network-uuids</code></dt>
119           <dd>Space-delimited set of the Citrix XenServer network UUIDs with
120             which this bridge is associated.</dd>
121           <dt><code>xs-network-names</code></dt>
122           <dd>Semicolon-delimited set of Citrix XenServer network names with
123             which this bridge is associated.</dd>
124         </dl>
125       </column>
126
127       <column name="other_config">
128         Key-value pairs for configuring rarely used bridge
129         features.  The currently defined key-value pairs are:
130         <dl>
131           <dt><code>datapath-id</code></dt>
132           <dd>Exactly 12 hex
133             digits to set the OpenFlow datapath ID to a specific
134             value.</dd>
135           <dt><code>hwaddr</code></dt>
136           <dd>Exactly 12 hex digits in the form
137             <var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var>
138             to set the hardware address of the local port and influence the
139             datapath ID.</dd>
140         </dl>
141       </column>
142     </group>
143   </table>
144
145   <table name="Port" table="Port or bond configuration.">
146     <p>A port within a <ref table="Bridge"/>.</p>
147     <p>Most commonly, a port has exactly one ``interface,'' pointed to by its
148       <ref column="interface"/> column.  Such a port logically
149       corresponds to a port on a physical Ethernet switch.  A port
150       with more than one interface is a ``bonded port'' (see
151       <ref group="Bonding Configuration"/>).</p>
152     <p>Some properties that one might think as belonging to a port are actually
153       part of the port's <ref table="Interface"/> members.</p>
154
155     <column name="name">
156       Port name.  Should be alphanumeric and no more than about 8
157       bytes long.  May be the same as the interface name, for
158       non-bonded ports.  Must otherwise be unique among the names of
159       ports, interfaces, and bridges on a host.
160     </column>
161
162     <column name="interfaces">
163       The port's interfaces.  If there is more than one, this is a
164       bonded Port.
165     </column>
166
167     <group title="VLAN Configuration">
168       <p>A bridge port must be configured for VLANs in one of two
169         mutually exclusive ways:
170         <ul>
171           <li>A ``trunk port'' has an empty value for
172             <ref column="tag"/> and a possibly non-empty
173             <ref column="trunks"/> value.</li>
174           <li>An ``implicitly tagged VLAN port'' or ``access port''
175             has an nonempty value for <ref column="tag"/> and an empty
176             <ref column="trunks"/> value.</li>
177         </ul>
178         If <ref column="trunks"/> and <ref column="tag"/> are both
179         nonempty, the configuration is ill-formed.
180       </p>
181
182       <column name="tag">
183         <p>If nonempty, this port's implicitly tagged VLAN.  Frames
184           arriving on trunk ports will be forwarded to this port only
185           if they are tagged with the given VLAN.  Frames arriving on
186           other VLAN ports will be forwarded to this port only if they
187           have the same <ref column="tag"/> value.  Frames forwarded
188           to this port will not have an 802.1Q header.</p>
189         <p>When a frame with a 802.1Q header that indicates a nonzero VLAN is
190           received on an implicit VLAN port, it is discarded.</p>
191         <p>Must be empty if this is a trunk port.</p>
192       </column>
193
194       <column name="trunks">
195         <p>The 802.1Q VLAN(s) that this port trunks.  If the column is
196           empty, then the port trunks all VLANs as well as packets that
197           have no VLAN header.  Otherwise, only frames that have an
198           802.1Q header with one of the specified VLANs are accepted.
199           If <code>0</code> is included, then frames without an 802.1Q
200           header are also accepted.</p>
201         <p>Must be empty unless this is a trunk port.</p>
202       </column>
203     </group>
204
205     <group title="Bonding Configuration">
206       <p>A port that has more than one interface is a ``bonded port.''
207         Bonding allows for load balancing and fail-over.  Open vSwitch
208         supports ``source load balancing'' (SLB) bonding, which
209         assigns flows to slaves based on source MAC address, with
210         periodic rebalancing as traffic patterns change.  This form of
211         bonding does not require 802.3ad or other special support from
212         the upstream switch to which the slave devices are
213         connected.</p>
214
215       <p>These columns apply only to bonded ports.  Their values are
216         otherwise ignored.</p>
217
218       <column name="bond_updelay">
219         <p>For a bonded port, the number of milliseconds for which carrier must
220           stay up on an interface before the interface is considered to be up.
221           Specify <code>0</code> to enable the interface immediately.</p>
222         <p>This setting is honored only when at least one bonded interface is
223           already enabled.  When no interfaces are enabled, then the first bond
224           interface to come up is enabled immediately.</p>
225       </column>
226
227       <column name="bond_downdelay">
228         For a bonded port, the number of milliseconds for which carrier must
229         stay down on an interface before the interface is considered to be
230         down.  Specify <code>0</code> to enable the interface immediately.
231       </column>
232
233       <column name="bond_fake_iface">
234         For a bonded port, whether to create a fake interface with the name of
235         the port.  Use only for compatibility with legacy software that
236         requires this.
237       </column>
238     </group>
239
240     <group title="Other Features">
241       <column name="mac">
242         The MAC address to use for this port for the purpose of choosing the
243         bridge's MAC address.  This column does not necessarily reflect the
244         port's actual MAC address, nor will setting it change the port's actual
245         MAC address.
246       </column>
247
248       <column name="fake_bridge">
249         Does this port represent a sub-bridge for its tagged VLAN within the
250         Bridge?  See ovs-vsctl(8) for more information.
251       </column>
252
253       <column name="external_ids">
254         Key-value pairs that identify this port's role in external systems.  No
255         key-value pairs native to <ref table="Port"/> are currently defined.
256         For fake bridges (see the <ref column="fake_bridge"/> column), external
257         IDs for the fake bridge are defined here by prefixing their keys
258         with <code>fake-bridge-</code>,
259         e.g. <code>fake-bridge-xs-network-uuids</code>.
260       </column>
261
262       <column name="other_config">
263         Key-value pairs for configuring rarely used port features.  The
264         currently defined key-value pairs are:
265         <dl>
266           <dt><code>hwaddr</code></dt>
267           <dd>Exactly 12 hex digits in the form
268             <code><var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var></code>.</dd>
269         </dl>
270       </column>
271     </group>
272   </table>
273
274   <table name="Interface" title="One physical network device in a Port.">
275     An interface within a <ref table="Port"/>.
276
277     <group title="Core Features">
278       <column name="name">
279         Interface name.  Should be alphanumeric and no more than about 8 bytes
280         long.  May be the same as the port name, for non-bonded ports.  Must
281         otherwise be unique among the names of ports, interfaces, and bridges
282         on a host.
283       </column>
284
285       <column name="mac">
286         <p>Ethernet address to set for this interface.  If unset then the
287           default MAC address is used:</p>
288         <ul>
289           <li>For the local interface, the default is the lowest-numbered MAC
290             address among the other bridge ports, either the value of the
291             <ref table="Port" column="mac"/> in its <ref table="Port"/> record,
292             if set, or its actual MAC (for bonded ports, the MAC of its slave
293             whose name is first in alphabetical order).  Internal ports and
294             bridge ports that are used as port mirroring destinations (see the
295             <ref table="Mirror"/> table) are ignored.</li>
296           <li>For other internal interface, the default MAC is randomly
297             generated.</li>
298           <li>External interfaces typically have a MAC address associated with
299             their hardware.</li>
300         </ul>
301         <p>Some interfaces may not have a software-controllable MAC
302         address.</p>
303       </column>
304
305       <column name="ofport">
306         <p>OpenFlow port number for this interface.  Unlike most columns, this
307           column's value should be set only by Open vSwitch itself.  Other
308           clients should set this column to an empty set (the default) when
309           creating an <ref table="Interface"/>.</p>
310         <p>Open vSwitch populates this column when the port number becomes
311           known.  If the interface is successfully added,
312           <ref column="ofport"/> will be set to a number between 1 and 65535
313           (generally either in the range 1 to <code>0xff00</code>, exclusive,
314           or <code>0xfffe</code>, the port number for the OpenFlow ``local
315           port'').  If the interface cannot be added then Open vSwitch sets
316           this column to <code>-1</code>.</p>
317       </column>
318     </group>
319
320     <group title="System-Specific Details">
321       <column name="type">
322         The interface type, one of:
323         <dl>
324           <dt><code>system</code></dt>
325           <dd>An ordinary network device, e.g. <code>eth0</code> on Linux.
326             Sometimes referred to as ``external interfaces'' since they are
327             generally connected to hardware external to that on which the Open
328             vSwitch is running.  The empty string is a synonym for
329             <code>system</code>.</dd>
330           <dt><code>internal</code></dt>
331           <dd>A simulated network devices that sent and receive traffic.  An
332             internal interface whose <ref column="name"/> is the same as its
333             bridge's <ref table="Open_vSwitch" column="name"/> is called the
334             ``local interface.''  It does not make sense to bond an internal
335             interface, so the terms ``port'' and ``interface'' are often used
336             imprecisely for internal interfaces.</dd>
337           <dt><code>tap</code></dt>
338           <dd>A TUN/TAP device managed by Open vSwitch.</dd>
339           <dt><code>gre</code></dt>
340           <dd>A GRE tunnel device managed by Open vSwitch.</dd>
341         </dl>
342       </column>
343
344       <column name="options">
345         Configuration options whose interpretation varies based on
346         <ref column="type"/>.
347       </column>
348     </group>
349
350     <group title="Ingress Policing">
351       <column name="ingress_policing_burst">
352         <p>Maximum burst size for data received on this interface, in kb.  The
353           default burst size if set to <code>0</code> is 1000 kb.  This value
354           has no effect if <ref column="ingress_policing_rate"/>
355           is <code>0</code>.</p>
356         <p>The burst size should be at least the size of the interface's
357           MTU.</p>
358       </column>
359
360       <column name="ingress_policing_rate">
361         <p>Maximum rate for data received on this interface, in kbps.  Data
362           received faster than this rate is dropped.  Set to <code>0</code> to
363           disable policing.</p>
364         <p>The meaning of ``ingress'' is from Open vSwitch's perspective.  If
365           configured on a physical interface, then it limits the rate at which
366           traffic is allowed into the system from the outside.  If configured
367           on a virtual interface that is connected to a virtual machine, then
368           it limits the rate at which the guest is able to transmit.</p>
369       </column>
370     </group>
371
372     <group title="Other Features">
373       <column name="external_ids">
374         Key-value pairs that identify this interface's role in external
375         systems.  The currently defined key-value pairs are:
376         <dl>
377           <dt><code>xs-vif-uuid</code></dt>
378           <dd>UUID of the Citrix XenServer VIF associated with this
379             interface</dd>
380           <dt><code>xs-network-uuid</code></dt>
381           <dd>UUID of the Citrix XenServer network to which this interface is
382             attached</dd>
383           <dt><code>xs-vif-vm-uuid</code></dt>
384           <dd>UUID of the Citrix XenServer VM to which this interface
385             belongs</dd>
386           <dt><code>xs-vif-mac</code></dt>
387           <dd>The value of the "MAC" field in the Citrix XenServer VIF record
388             for this interface.</dd>
389         </dl>
390       </column>
391     </group>
392   </table>
393
394   <table name="Mirror" title="Port mirroring (SPAN/RSPAN).">
395     <p>A port mirror within a <ref table="Bridge"/>.</p>
396     <p>A port mirror configures a bridge to send selected frames to special
397       ``mirrored'' ports, in addition to their normal destinations.  Mirroring
398       traffic may also be referred to as SPAN or RSPAN, depending on the
399       mechanism used for delivery.</p>
400
401     <column name="name">
402       Arbitrary identifier for the <ref table="Mirror"/>.
403     </column>
404
405     <group title="Selecting Packets for Mirroring">
406       <column name="select_dst_port">
407         Ports on which departing packets are selected for mirroring.
408       </column>
409
410       <column name="select_src_port">
411         Ports on which arriving packets are selected for mirroring.  If this
412         column and <ref column="select_dst_port"/> are both empty, then all
413         packets on all ports are selected for mirroring.
414       </column>
415
416       <column name="select_vlan">
417         VLANs on which packets are selected for mirroring.  An empty set
418         selects packets on all VLANs.
419       </column>
420     </group>
421
422     <group title="Mirroring Destination Configuration">
423       <column name="output_port">
424         <p>Output port for selected packets, if nonempty.  Mutually exclusive
425           with <ref column="output_vlan"/>.</p>
426         <p>Specifying a port for mirror output reserves that port exclusively
427           for mirroring.  No frames other than those selected for mirroring
428           will be forwarded to the port, and any frames received on the port
429           will be discarded.</p>
430         <p>This type of mirroring is sometimes called SPAN.</p>
431       </column>
432
433       <column name="output_vlan">
434         <p>Output VLAN for selected packets, if nonempty.  Mutually exclusive
435           with <ref column="output_port"/>.</p>
436         <p>The frames will be sent out all ports that trunk
437           <ref column="output_vlan"/>, as well as any ports with implicit VLAN
438           <ref column="output_vlan"/>.  When a mirrored frame is sent out a
439           trunk port, the frame's VLAN tag will be set to
440           <ref column="output_vlan"/>, replacing any existing tag; when it is
441           sent out an implicit VLAN port, the frame will not be tagged.  This
442           type of mirroring is sometimes called RSPAN.</p>
443         <p><em>Please note:</em> Mirroring to a VLAN can disrupt a network that
444           contains unmanaged switches.  Consider an unmanaged physical switch
445           with two ports: port 1, connected to an end host, and port 2,
446           connected to an Open vSwitch configured to mirror received packets
447           into VLAN 123 on port 2.  Suppose that the end host sends a packet on
448           port 1 that the physical switch forwards to port 2.  The Open vSwitch
449           forwards this packet to its destination and then reflects it back on
450           port 2 in VLAN 123.  This reflected packet causes the unmanaged
451           physical switch to replace the MAC learning table entry, which
452           correctly pointed to port 1, with one that incorrectly points to port
453           2.  Afterward, the physical switch will direct packets destined for
454           the end host to the Open vSwitch on port 2, instead of to the end
455           host on port 1, disrupting connectivity.  If mirroring to a VLAN is
456           desired in this scenario, then the physical switch must be replaced
457           by one that learns Ethernet addresses on a per-VLAN basis.  In
458           addition, learning should be disabled on the VLAN containing mirrored
459           traffic. If this is not done then intermediate switches will learn
460           the MAC address of each end host from the mirrored traffic.  If
461           packets being sent to that end host are also mirrored, then they will
462           be dropped since the switch will attempt to send them out the input
463           port. Disabling learning for the VLAN will cause the switch to
464           correctly send the packet out all ports configured for that VLAN.  If
465           Open vSwitch is being used as an intermediate switch, learning can be
466           disabled by adding the mirrored VLAN to <ref column="flood_vlans"/>
467           in the appropriate <ref table="Bridge"/> table or tables.</p>
468       </column>
469     </group>
470   </table>
471
472   <table name="Controller" title="OpenFlow controller configuration.">
473     An OpenFlow controller.
474
475     <group title="Core Features">
476       <column name="target">
477         Connection method for controller.
478         The following connection methods are currently
479         supported:
480         <dl>
481           <dt><code>ssl:<var>ip</var></code>[<code>:<var>port</var></code>]</dt>
482           <dd>
483             <p>The specified SSL <var>port</var> (default: 6633) on the host at
484               the given <var>ip</var>, which must be expressed as an IP address
485               (not a DNS name).  The <ref table="Open_vSwitch" column="ssl"/>
486               column in the <ref table="Open_vSwitch"/> must point to a valid
487               SSL configuration when this form is used.</p>
488             <p>SSL support is an optional feature that is not always built as
489               part of Open vSwitch.</p>
490           </dd>
491           <dt><code>tcp:<var>ip</var></code>[<code>:<var>port</var></code>]</dt>
492           <dd>The specified TCP <var>port</var> (default: 6633) on the host at
493             the given <var>ip</var>, which must be expressed as an IP address
494             (not a DNS name).</dd>
495           <dt><code>discover</code></dt>
496           <dd>Enables controller discovery.</dd>
497           <dt><code>none</code></dt>
498           <dd>Disables the controller.</dd>
499         </dl>
500       </column>
501
502       <column name="connection_mode">
503         Either <code>in-band</code> or <code>out-of-band</code>.  If not
504         specified, the default is implementation-specific.
505       </column>
506     </group>
507
508     <group title="Controller Failure Detection and Handling">
509       <column name="max_backoff">
510         Maximum number of milliseconds to wait between connection attempts.
511         Default is implementation-specific.
512       </column>
513
514       <column name="inactivity_probe">
515         Maximum number of milliseconds of idle time on connection to
516         controller before sending an inactivity probe message.  If Open
517         vSwitch does not communicate with the controller for the specified
518         number of seconds, it will send a probe.  If a response is not
519         received for the same additional amount of time, Open vSwitch
520         assumes the connection has been broken and attempts to reconnect.
521         Default is implementation-specific.
522       </column>
523
524       <column name="fail_mode">
525         <p>When a controller is configured, it is, ordinarily, responsible
526           for setting up all flows on the switch.  Thus, if the connection to
527           the controller fails, no new network connections can be set up.
528           If the connection to the controller stays down long enough,
529           no packets can pass through the switch at all.  This setting
530           determines the switch's response to such a situation.  It may be set
531           to one of the following:
532           <dl>
533             <dt><code>standalone</code></dt>
534             <dd>If no message is received from the controller for three
535               times the inactivity probe interval
536               (see <ref column="inactivity_probe"/>), then Open vSwitch
537               will take over responsibility for setting up flows.  In
538               this mode, Open vSwitch causes the datapath to act like an
539               ordinary MAC-learning switch.  Open vSwitch will continue
540               to retry connecting to the controller in the background
541               and, when the connection succeeds, it will discontinue its
542               standalone behavior.</dd>
543             <dt><code>secure</code></dt>
544             <dd>Open vSwitch will not set up flows on its own when the
545               controller connection fails.  It will continue retry
546               connecting to the controller forever.</dd>
547           </dl>
548         </p>
549         <p>If this value is unset, the default is
550         implementation-specific.</p>
551       </column>
552     </group>
553
554     <group title="OpenFlow Rate Limiting">
555         <column name="controller_burst_limit">
556           In conjunction with <ref column="controller_rate_limit"/>,
557           the maximum number of unused packet credits that the bridge will
558           allow to accumulate, in packets.  If not specified, the default
559           is implementation-specific.
560         </column>
561
562         <column name="controller_rate_limit">
563           <p>The maximum rate at which packets in unknown flows will be
564             forwarded to the OpenFlow controller, in packets per second.  This
565             feature prevents a single bridge from overwhelming the controller.
566             If not specified, the default is implementation-specific.</p>
567           <p>In addition, when a high rate triggers rate-limiting, Open
568             vSwitch queues controller packets for each port and transmits
569             them to the controller at the configured rate.  The number of
570             queued packets is limited by
571             the <ref column="controller_burst_limit"/> value.  The packet
572             queue is shared fairly among the ports on a bridge.</p><p>Open
573             vSwitch maintains two such packet rate-limiters per bridge.
574             One of these applies to packets sent up to the controller
575             because they do not correspond to any flow.  The other applies
576             to packets sent up to the controller by request through flow
577             actions. When both rate-limiters are filled with packets, the
578             actual rate that packets are sent to the controller is up to
579             twice the specified rate.</p>
580         </column>
581     </group>
582
583     <group title="Additional Configuration for Discovery">
584       <column name="discover_accept_regex">
585         If <ref column="target"/> is <code>discover</code>, a POSIX
586         extended regular expression against which the discovered controller
587         location is validated.  The regular expression is implicitly
588         anchored at the beginning of the controller location string, as
589         if it begins with <code>^</code>.  If not specified, the default
590         is implementation-specific.
591       </column>
592
593       <column name="discover_update_resolv_conf">
594         If <ref column="target"/> is <code>discover</code>,
595         whether to update <code>/etc/resolv.conf</code> when the
596         controller is discovered.  If not specified, the default
597         is implementation-specific.  Open vSwitch will only modify
598         <code>/etc/resolv.conf</code> if the DHCP response that it receives
599         specifies one or more DNS servers.
600       </column>
601     </group>
602
603     <group title="Additional Configuration without Discovery">
604       <column name="local_gateway">
605         If <ref column="target"/> is not <code>discover</code>, the IP
606         address of the gateway to configure on the local port.
607       </column>
608
609       <column name="local_ip">
610         If <ref column="target"/> is not <code>discover</code>, the IP
611         address to configure on the local port.
612       </column>
613
614       <column name="local_netmask">
615         If <ref column="target"/> is not <code>discover</code>, the IP
616         netmask to configure on the local port.
617       </column>
618     </group>
619   </table>
620
621   <table name="NetFlow">
622     A NetFlow target.  NetFlow is a protocol that exports a number of
623     details about terminating IP flows, such as the principals involved
624     and duration.
625
626     <column name="targets">
627       NetFlow targets in the form
628       <code><var>ip</var>:<var>port</var></code>.  The <var>ip</var>
629       must be specified numerically, not as a DNS name.
630     </column>
631
632     <column name="engine_id">
633       Engine ID to use in NetFlow messages.  Defaults to datapath index
634       if not specified.
635     </column>
636
637     <column name="engine_type">
638       Engine type to use in NetFlow messages.  Defaults to datapath
639       index if not specified.
640     </column>
641
642     <column name="active_timeout">
643       The interval at which NetFlow records are sent for flows that are
644       still active, in seconds.  A value of <code>0</code> requests the
645       default timeout (currently 600 seconds); a value of <code>-1</code>
646       disables active timeouts.
647     </column>
648
649     <column name="add_id_to_interface">
650       <p>If this column's value is <code>false</code>, the ingress and egress
651         interface fields of NetFlow flow records are derived from OpenFlow port
652         numbers.  When it is <code>true</code>, the 7 most significant bits of
653         these fields will be replaced by the least significant 7 bits of the
654         engine id.  This is useful because many NetFlow collectors do not
655         expect multiple switches to be sending messages from the same host, so
656         they do not store the engine information which could be used to
657         disambiguate the traffic.</p>
658       <p>When this option is enabled, a maximum of 508 ports are supported.</p>
659     </column>
660   </table>
661
662   <table name="SSL">
663     SSL configuration for an Open_vSwitch.
664
665     <column name="private_key">
666       Name of a PEM file containing the private key used as the switch's
667       identity for SSL connections to the controller.
668     </column>
669
670     <column name="certificate">
671       Name of a PEM file containing a certificate, signed by the
672       certificate authority (CA) used by the controller and manager,
673       that certifies the switch's private key, identifying a trustworthy
674       switch.
675     </column>
676
677     <column name="ca_cert">
678       Name of a PEM file containing the CA certificate used to verify
679       that the switch is connected to a trustworthy controller.
680     </column>
681
682     <column name="bootstrap_ca_cert">
683       If set to <code>true</code>, then Open vSwitch will attempt to
684       obtain the CA certificate from the controller on its first SSL
685       connection and save it to the named PEM file. If it is successful,
686       it will immediately drop the connection and reconnect, and from then
687       on all SSL connections must be authenticated by a certificate signed
688       by the CA certificate thus obtained.  <em>This option exposes the
689         SSL connection to a man-in-the-middle attack obtaining the initial
690         CA certificate.</em>  It may still be useful for bootstrapping.
691     </column>
692   </table>
693
694   <table name="sFlow">
695     <p>An sFlow(R) target.  sFlow is a protocol for remote monitoring
696       of switches.</p>
697
698     <column name="agent">
699       IP address to report as ``agent address'' to collectors.  If not
700       specified, defaults to the <ref table="Controller" column="local_ip"/> in
701       the collector's <ref table="Controller"/>.  If neither is specified,
702       sFlow is disabled.
703     </column>
704
705     <column name="header">
706       Number of bytes of a sampled packet to send to the collector.
707       If not specified, the default is 128 bytes.
708     </column>
709
710     <column name="polling">
711       Polling rate in seconds to send port statistics to the collector.
712       If not specified, defaults to 30 seconds.
713     </column>
714
715     <column name="sampling">
716       Rate at which packets should be sampled and sent to the collector.
717       If not specified, defaults to 400, which means one out of 400
718       packets, on average, will be sent to the collector.
719     </column>
720
721     <column name="targets">
722       sFlow targets in the form
723       <code><var>ip</var>:<var>port</var></code>.
724     </column>
725   </table>
726 </database>