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