5789964a8da758787ac90d8f014222bee44302f7
[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="managers">
19         Remote database clients to which the Open vSwitch's database server
20         should connect or to which it should listen.
21       </column>
22
23       <column name="ssl">
24         SSL used globally by the daemon.
25       </column>
26
27       <column name="external_ids">
28         Key-value pairs for use by external frameworks that integrate
29         with Open vSwitch, rather than by Open vSwitch itself.  System
30         integrators should either use the Open vSwitch development
31         mailing list to coordinate on common key-value definitions, or
32         choose key names that are likely to be unique.  The currently
33         defined common key-value pairs are:
34         <dl>
35           <dt><code>system-uuid</code></dt>
36           <dd>A universally unique identifier for the Open vSwitch's
37             physical host.  The form of the identifier depends on the
38             type of the host.  On a Citrix XenServer, this is the host
39             UUID displayed by, e.g., <code>xe host-list</code>.</dd>
40         </dl>
41       </column>
42     </group>
43
44     <group title="Status">
45       <column name="next_cfg">
46         Sequence number for client to increment.  When a client modifies
47         any part of the database configuration and wishes to wait for
48         Open vSwitch to finish applying the changes, it may increment
49         this sequence number.
50       </column>
51
52       <column name="cur_cfg">
53         Sequence number that Open vSwitch sets to the current value of
54         <ref column="next_cfg"/> after it finishes applying a set of
55         configuration changes.
56       </column>
57
58       <column name="capabilities">
59         Describes functionality supported by the hardware and software platform
60         on which this Open vSwitch is based.  Clients should not modify this
61         column.  See the <ref table="Capability"/> description for defined
62         capability categories and the meaning of associated
63         <ref table="Capability"/> records.
64       </column>
65
66       <column name="statistics">
67         <p>
68           Key-value pairs that report statistics about a running Open_vSwitch
69           daemon.  The current implementation updates these counters
70           periodically.  In the future, we plan to, instead, update them only
71           when they are queried (e.g. using an OVSDB <code>select</code>
72           operation) and perhaps at other times, but not on any regular
73           periodic basis.</p>
74         <p>
75           The currently defined key-value pairs are listed below.  Some Open
76           vSwitch implementations may not support some statistics, in which
77           case those key-value pairs are omitted.</p>
78         <dl>
79           <dt><code>load-average</code></dt>
80           <dd>
81             System load average multiplied by 100 and rounded to the nearest
82             integer.</dd>
83         </dl>
84       </column>
85     </group>
86   </table>
87
88   <table name="Bridge">
89     <p>
90       Configuration for a bridge within an
91       <ref table="Open_vSwitch"/>.
92     </p>
93     <p>
94       A <ref table="Bridge"/> record represents an Ethernet switch with one or
95       more ``ports,'' which are the <ref table="Port"/> records pointed to by
96       the <ref table="Bridge"/>'s <ref column="ports"/> column.
97     </p>
98
99     <group title="Core Features">
100       <column name="name">
101         Bridge identifier.  Should be alphanumeric and no more than about 8
102         bytes long.  Must be unique among the names of ports, interfaces, and
103         bridges on a host.
104       </column>
105
106       <column name="ports">
107         Ports included in the bridge.
108       </column>
109
110       <column name="mirrors">
111         Port mirroring configuration.
112       </column>
113
114       <column name="netflow">
115         NetFlow configuration.
116       </column>
117
118       <column name="sflow">
119         sFlow configuration.
120       </column>
121
122       <column name="flood_vlans">
123         VLAN IDs of VLANs on which MAC address learning should be disabled, so
124         that packets are flooded instead of being sent to specific ports that
125         are believed to contain packets' destination MACs.  This should
126         ordinarily be used to disable MAC learning on VLANs used for mirroring
127         (RSPAN VLANs).  It may also be useful for debugging.
128       </column>
129     </group>
130
131     <group title="OpenFlow Configuration">
132       <column name="controller">
133         OpenFlow controller set.  If unset, then no OpenFlow controllers
134         will be used.
135       </column>
136
137       <column name="fail_mode">
138         <p>When a controller is configured, it is, ordinarily, responsible
139           for setting up all flows on the switch.  Thus, if the connection to
140           the controller fails, no new network connections can be set up.
141           If the connection to the controller stays down long enough,
142           no packets can pass through the switch at all.  This setting
143           determines the switch's response to such a situation.  It may be set
144           to one of the following:
145           <dl>
146             <dt><code>standalone</code></dt>
147             <dd>If no message is received from the controller for three
148               times the inactivity probe interval
149               (see <ref column="inactivity_probe"/>), then Open vSwitch
150               will take over responsibility for setting up flows.  In
151               this mode, Open vSwitch causes the bridge to act like an
152               ordinary MAC-learning switch.  Open vSwitch will continue
153               to retry connecting to the controller in the background
154               and, when the connection succeeds, it will discontinue its
155               standalone behavior.</dd>
156             <dt><code>secure</code></dt>
157             <dd>Open vSwitch will not set up flows on its own when the
158               controller connection fails or when no controllers are
159               defined.  The bridge will continue to retry connecting to
160               any defined controllers forever.</dd>
161           </dl>
162         </p>
163         <p>If this value is unset, the default is implementation-specific.</p>
164         <p>When more than one controller is configured, 
165           <ref column="fail_mode"/> is considered only when none of the
166           configured controllers can be contacted.</p>
167       </column>
168
169       <column name="datapath_id">
170         Reports the OpenFlow datapath ID in use.  Exactly 16 hex
171         digits.  (Setting this column will have no useful effect.  Set
172         <ref column="other_config"/>:<code>other-config</code>
173         instead.)
174       </column>
175     </group>
176
177     <group title="Other Features">
178       <column name="datapath_type">
179         Name of datapath provider.  The kernel datapath has
180         type <code>system</code>.  The userspace datapath has
181         type <code>netdev</code>.
182       </column>
183
184       <column name="external_ids">
185         Key-value pairs for use by external frameworks that integrate
186         with Open vSwitch, rather than by Open vSwitch itself.  System
187         integrators should either use the Open vSwitch development
188         mailing list to coordinate on common key-value definitions, or
189         choose key names that are likely to be unique.  The currently
190         defined common key-value pairs are:
191         <dl>
192           <dt><code>network-uuids</code></dt>
193           <dd>Semicolon-delimited set of universally unique identifier(s) for
194             the network with which this bridge is associated.  The form of the
195             identifier(s) depends on the type of the host.  On a Citrix
196             XenServer host, the network identifiers are RFC 4122 UUIDs as
197             displayed by, e.g., <code>xe network-list</code>.</dd>
198         </dl>
199       </column>
200
201       <column name="other_config">
202         Key-value pairs for configuring rarely used bridge
203         features.  The currently defined key-value pairs are:
204         <dl>
205           <dt><code>datapath-id</code></dt>
206           <dd>Exactly 16 hex
207             digits to set the OpenFlow datapath ID to a specific
208             value.</dd>
209           <dt><code>hwaddr</code></dt>
210           <dd>An Ethernet address in the form
211             <var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var>
212             to set the hardware address of the local port and influence the
213             datapath ID.</dd>
214         </dl>
215       </column>
216     </group>
217   </table>
218
219   <table name="Port" table="Port or bond configuration.">
220     <p>A port within a <ref table="Bridge"/>.</p>
221     <p>Most commonly, a port has exactly one ``interface,'' pointed to by its
222       <ref column="interfaces"/> column.  Such a port logically
223       corresponds to a port on a physical Ethernet switch.  A port
224       with more than one interface is a ``bonded port'' (see
225       <ref group="Bonding Configuration"/>).</p>
226     <p>Some properties that one might think as belonging to a port are actually
227       part of the port's <ref table="Interface"/> members.</p>
228
229     <column name="name">
230       Port name.  Should be alphanumeric and no more than about 8
231       bytes long.  May be the same as the interface name, for
232       non-bonded ports.  Must otherwise be unique among the names of
233       ports, interfaces, and bridges on a host.
234     </column>
235
236     <column name="interfaces">
237       The port's interfaces.  If there is more than one, this is a
238       bonded Port.
239     </column>
240
241     <group title="VLAN Configuration">
242       <p>A bridge port must be configured for VLANs in one of two
243         mutually exclusive ways:
244         <ul>
245           <li>A ``trunk port'' has an empty value for <ref
246             column="tag"/>.  Its <ref column="trunks"/> value may be
247             empty or non-empty.</li>
248           <li>An ``implicitly tagged VLAN port'' or ``access port''
249             has an nonempty value for <ref column="tag"/>.  Its
250             <ref column="trunks"/> value must be empty.</li>
251         </ul>
252         If <ref column="trunks"/> and <ref column="tag"/> are both
253         nonempty, the configuration is ill-formed.
254       </p>
255
256       <column name="tag">
257         <p>
258           If this is an access port (see above), the port's implicitly
259           tagged VLAN.  Must be empty if this is a trunk port.
260         </p>
261         <p>
262           Frames arriving on trunk ports will be forwarded to this
263           port only if they are tagged with the given VLAN (or, if
264           <ref column="tag"/> is 0, then if they lack a VLAN header).
265           Frames arriving on other access ports will be forwarded to
266           this port only if they have the same <ref column="tag"/>
267           value.  Frames forwarded to this port will not have an
268           802.1Q header.
269         </p>
270         <p>
271           When a frame with a 802.1Q header that indicates a nonzero
272           VLAN is received on an access port, it is discarded.
273         </p>
274       </column>
275
276       <column name="trunks">
277         <p>
278           If this is a trunk port (see above), the 802.1Q VLAN(s) that
279           this port trunks; if it is empty, then the port trunks all
280           VLANs.  Must be empty if this is an access port.
281         </p>
282         <p>
283           Frames arriving on trunk ports are dropped if they are not
284           in one of the specified VLANs.  For this purpose, packets
285           that have no VLAN header are treated as part of VLAN 0.
286         </p>
287       </column>
288     </group>
289
290     <group title="Bonding Configuration">
291       <p>A port that has more than one interface is a ``bonded port.''
292         Bonding allows for load balancing and fail-over.  Open vSwitch
293         supports ``source load balancing'' (SLB) bonding, which
294         assigns flows to slaves based on source MAC address, with
295         periodic rebalancing as traffic patterns change.  This form of
296         bonding does not require 802.3ad or other special support from
297         the upstream switch to which the slave devices are
298         connected.</p>
299
300       <p>These columns apply only to bonded ports.  Their values are
301         otherwise ignored.</p>
302
303       <column name="bond_updelay">
304         <p>For a bonded port, the number of milliseconds for which carrier must
305           stay up on an interface before the interface is considered to be up.
306           Specify <code>0</code> to enable the interface immediately.</p>
307         <p>This setting is honored only when at least one bonded interface is
308           already enabled.  When no interfaces are enabled, then the first bond
309           interface to come up is enabled immediately.</p>
310       </column>
311
312       <column name="bond_downdelay">
313         For a bonded port, the number of milliseconds for which carrier must
314         stay down on an interface before the interface is considered to be
315         down.  Specify <code>0</code> to disable the interface immediately.
316       </column>
317
318       <column name="bond_fake_iface">
319         For a bonded port, whether to create a fake internal interface with the
320         name of the port.  Use only for compatibility with legacy software that
321         requires this.
322       </column>
323     </group>
324
325     <group title="Other Features">
326       <column name="qos">
327         Quality of Service configuration for this port.
328       </column>
329       
330       <column name="mac">
331         The MAC address to use for this port for the purpose of choosing the
332         bridge's MAC address.  This column does not necessarily reflect the
333         port's actual MAC address, nor will setting it change the port's actual
334         MAC address.
335       </column>
336
337       <column name="fake_bridge">
338         Does this port represent a sub-bridge for its tagged VLAN within the
339         Bridge?  See ovs-vsctl(8) for more information.
340       </column>
341
342       <column name="external_ids">
343         <p>
344           Key-value pairs for use by external frameworks that integrate with
345           Open vSwitch, rather than by Open vSwitch itself.  System integrators
346           should either use the Open vSwitch development mailing list to
347           coordinate on common key-value definitions, or choose key names that
348           are likely to be unique.
349         </p>
350         <p>
351           No key-value pairs native to <ref table="Port"/> are currently
352           defined.  For fake bridges (see the <ref column="fake_bridge"/>
353           column), external IDs for the fake bridge are defined here by
354           prefixing a <ref table="Bridge"/> <ref table="Bridge"
355           column="external_ids"/> key with <code>fake-bridge-</code>,
356           e.g. <code>fake-bridge-network-uuids</code>.
357         </p>
358       </column>
359
360       <column name="other_config">
361         Key-value pairs for configuring rarely used port features.  The
362         currently defined key-value pairs are:
363         <dl>
364           <dt><code>hwaddr</code></dt>
365           <dd>An Ethernet address in the form
366             <code><var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var></code>.</dd>
367           <dt><code>bond-rebalance-interval</code></dt>
368           <dd>For a bonded port, the number of milliseconds between
369             successive attempts to rebalance the bond, that is, to
370             move source MACs and their flows from one interface on
371             the bond to another in an attempt to keep usage of each
372             interface roughly equal.  The default is 10000 (10
373             seconds), and the minimum is 1000 (1 second).</dd>
374         </dl>
375       </column>
376     </group>
377   </table>
378
379   <table name="Interface" title="One physical network device in a Port.">
380     An interface within a <ref table="Port"/>.
381
382     <group title="Core Features">
383       <column name="name">
384         Interface name.  Should be alphanumeric and no more than about 8 bytes
385         long.  May be the same as the port name, for non-bonded ports.  Must
386         otherwise be unique among the names of ports, interfaces, and bridges
387         on a host.
388       </column>
389
390       <column name="mac">
391         <p>Ethernet address to set for this interface.  If unset then the
392           default MAC address is used:</p>
393         <ul>
394           <li>For the local interface, the default is the lowest-numbered MAC
395             address among the other bridge ports, either the value of the
396             <ref table="Port" column="mac"/> in its <ref table="Port"/> record,
397             if set, or its actual MAC (for bonded ports, the MAC of its slave
398             whose name is first in alphabetical order).  Internal ports and
399             bridge ports that are used as port mirroring destinations (see the
400             <ref table="Mirror"/> table) are ignored.</li>
401           <li>For other internal interfaces, the default MAC is randomly
402             generated.</li>
403           <li>External interfaces typically have a MAC address associated with
404             their hardware.</li>
405         </ul>
406         <p>Some interfaces may not have a software-controllable MAC
407         address.</p>
408       </column>
409
410       <column name="ofport">
411         <p>OpenFlow port number for this interface.  Unlike most columns, this
412           column's value should be set only by Open vSwitch itself.  Other
413           clients should set this column to an empty set (the default) when
414           creating an <ref table="Interface"/>.</p>
415         <p>Open vSwitch populates this column when the port number becomes
416           known.  If the interface is successfully added,
417           <ref column="ofport"/> will be set to a number between 1 and 65535
418           (generally either in the range 1 to 65280, exclusive, or 65534, the
419           port number for the OpenFlow ``local port'').  If the interface
420           cannot be added then Open vSwitch sets this column
421           to -1.</p>
422       </column>
423     </group>
424
425     <group title="System-Specific Details">
426       <column name="type">
427         The interface type, one of:
428         <dl>
429           <dt><code>system</code></dt>
430           <dd>An ordinary network device, e.g. <code>eth0</code> on Linux.
431             Sometimes referred to as ``external interfaces'' since they are
432             generally connected to hardware external to that on which the Open
433             vSwitch is running.  The empty string is a synonym for
434             <code>system</code>.</dd>
435           <dt><code>internal</code></dt>
436           <dd>A simulated network device that sends and receives traffic.  An
437             internal interface whose <ref column="name"/> is the same as its
438             bridge's <ref table="Open_vSwitch" column="name"/> is called the
439             ``local interface.''  It does not make sense to bond an internal
440             interface, so the terms ``port'' and ``interface'' are often used
441             imprecisely for internal interfaces.</dd>
442           <dt><code>tap</code></dt>
443           <dd>A TUN/TAP device managed by Open vSwitch.</dd>
444           <dt><code>gre</code></dt>
445           <dd>An Ethernet over RFC 2890 Generic Routing Encapsulation over IPv4
446              tunnel.  Each tunnel must be uniquely identified by the
447              combination of <code>remote_ip</code>, <code>local_ip</code>, and
448              <code>in_key</code>.  Note that if two ports are defined that are
449              the same except one has an optional identifier and the other does
450              not, the more specific one is matched first.  <code>in_key</code>
451              is considered more specific than <code>local_ip</code> if a port
452              defines one and another port defines the other.  The following 
453              options may be specified in the <ref column="options"/> column:
454             <dl>
455               <dt><code>remote_ip</code></dt>
456               <dd>Required.  The tunnel endpoint.</dd>
457             </dl>
458             <dl>
459               <dt><code>local_ip</code></dt>
460               <dd>Optional.  The destination IP that received packets must
461                 match.  Default is to match all addresses.</dd>
462             </dl>
463             <dl>
464               <dt><code>in_key</code></dt>
465               <dd>Optional.  The GRE key that received packets must contain.
466                 It may either be a 32-bit number (no key and a key of 0 are
467                 treated as equivalent) or the word <code>flow</code>.  If
468                 <code>flow</code> is specified then any key will be accepted
469                 and the key will be placed in the <code>tun_id</code> field
470                 for matching in the flow table.  The ovs-ofctl manual page
471                 contains additional information about matching fields in
472                 OpenFlow flows.  Default is no key.</dd>
473             </dl>
474             <dl>
475               <dt><code>out_key</code></dt>
476               <dd>Optional.  The GRE key to be set on outgoing packets.  It may
477                 either be a 32-bit number or the word <code>flow</code>.  If
478                 <code>flow</code> is specified then the key may be set using
479                 the <code>set_tunnel</code> Nicira OpenFlow vendor extension (0
480                 is used in the absence of an action).  The ovs-ofctl manual
481                 page contains additional information about the Nicira OpenFlow
482                 vendor extensions.  Default is no key.</dd>
483             </dl>
484             <dl>
485               <dt><code>key</code></dt>
486               <dd>Optional.  Shorthand to set <code>in_key</code> and
487                 <code>out_key</code> at the same time.</dd>
488             </dl>
489             <dl>
490               <dt><code>tos</code></dt>
491               <dd>Optional.  The value of the ToS bits to be set on the
492                 encapsulating packet.  It may also be the word
493                 <code>inherit</code>, in which case the ToS will be copied from
494                 the inner packet if it is IPv4 or IPv6 (otherwise it will be
495                 0).  Note that the ECN fields are always inherited.  Default is
496                 0.</dd>
497             </dl>
498             <dl>
499               <dt><code>ttl</code></dt>
500               <dd>Optional.  The TTL to be set on the encapsulating packet.
501                 It may also be the word <code>inherit</code>, in which case the
502                 TTL will be copied from the inner packet if it is IPv4 or IPv6
503                 (otherwise it will be the system default, typically 64).
504                 Default is the system default TTL.</dd>
505             </dl>
506             <dl>
507               <dt><code>csum</code></dt>
508               <dd>Optional.  Compute GRE checksums on outgoing packets.
509                 Checksums present on incoming packets will be validated
510                 regardless of this setting.  Note that GRE checksums
511                 impose a significant performance penalty as they cover the
512                 entire packet.  As the contents of the packet is typically
513                 covered by L3 and L4 checksums, this additional checksum only
514                 adds value for the GRE and encapsulated Ethernet headers.
515                 Default is disabled, set to <code>true</code> to enable.</dd>
516             </dl>
517             <dl>
518               <dt><code>pmtud</code></dt>
519               <dd>Optional.  Enable tunnel path MTU discovery.  If enabled
520                 ``ICMP destination unreachable - fragmentation'' needed
521                 messages will be generated for IPv4 packets with the DF bit set
522                 and IPv6 packets above the minimum MTU if the packet size
523                 exceeds the path MTU minus the size of the tunnel headers.  It
524                 also forces the encapsulating packet DF bit to be set (it is
525                 always set if the inner packet implies path MTU discovery).
526                 Note that this option causes behavior that is typically
527                 reserved for routers and therefore is not entirely in
528                 compliance with the IEEE 802.1D specification for bridges.
529                 Default is enabled, set to <code>false</code> to disable.</dd>
530             </dl>
531           </dd>
532           <dt><code>capwap</code></dt>
533           <dd>Ethernet tunneling over the UDP transport portion of CAPWAP
534              (RFC 5415).  This allows interoperability with certain switches
535              where GRE is not available.  Note that only the tunneling component
536              of the protocol is implemented.  Due to the non-standard use of
537              CAPWAP, UDP ports 58881 and 58882 are used as the source and
538              destinations ports respectivedly.  Each tunnel must be uniquely
539              identified by the combination of <code>remote_ip</code> and
540              <code>local_ip</code>.  If two ports are defined that are the same
541              except one includes <code>local_ip</code> and the other does not,
542              the more specific one is matched first.  CAPWAP support is not
543              available on all platforms.  Currently it is only supported in the
544              Linux kernel module with kernel versions >= 2.6.25.  The following
545              options may be specified in the <ref column="options"/> column:
546             <dl>
547               <dt><code>remote_ip</code></dt>
548               <dd>Required.  The tunnel endpoint.</dd>
549             </dl>
550             <dl>
551               <dt><code>local_ip</code></dt>
552               <dd>Optional.  The destination IP that received packets must
553                 match.  Default is to match all addresses.</dd>
554             </dl>
555             <dl>
556               <dt><code>tos</code></dt>
557               <dd>Optional.  The value of the ToS bits to be set on the
558                 encapsulating packet.  It may also be the word
559                 <code>inherit</code>, in which case the ToS will be copied from
560                 the inner packet if it is IPv4 or IPv6 (otherwise it will be
561                 0).  Note that the ECN fields are always inherited.  Default is
562                 0.</dd>
563             </dl>
564             <dl>
565               <dt><code>ttl</code></dt>
566               <dd>Optional.  The TTL to be set on the encapsulating packet.
567                 It may also be the word <code>inherit</code>, in which case the
568                 TTL will be copied from the inner packet if it is IPv4 or IPv6
569                 (otherwise it will be the system default, typically 64).
570                 Default is the system default TTL.</dd>
571             </dl>
572             <dl>
573               <dt><code>pmtud</code></dt>
574               <dd>Optional.  Enable tunnel path MTU discovery.  If enabled
575                 ``ICMP destination unreachable - fragmentation'' needed
576                 messages will be generated for IPv4 packets with the DF bit set
577                 and IPv6 packets above the minimum MTU if the packet size
578                 exceeds the path MTU minus the size of the tunnel headers.  It
579                 also forces the encapsulating packet DF bit to be set (it is
580                 always set if the inner packet implies path MTU discovery).
581                 Note that this option causes behavior that is typically
582                 reserved for routers and therefore is not entirely in
583                 compliance with the IEEE 802.1D specification for bridges.
584                 Default is enabled, set to <code>false</code> to disable.</dd>
585             </dl>
586           </dd>
587           <dt><code>patch</code></dt>
588           <dd>
589             <p>
590               A pair of virtual devices that act as a patch cable.  The <ref
591               column="options"/> column must have the following key-value pair:
592             </p>
593             <dl>
594               <dt><code>peer</code></dt>
595               <dd>
596                 The <ref column="name"/> of the <ref table="Interface"/> for
597                 the other side of the patch.  The named <ref
598                 table="Interface"/>'s own <code>peer</code> option must specify
599                 this <ref table="Interface"/>'s name.  That is, the two patch
600                 interfaces must have reversed <ref column="name"/> and
601                 <code>peer</code> values.
602               </dd>
603             </dl>
604           </dd>
605         </dl>
606       </column>
607
608       <column name="options">
609         Configuration options whose interpretation varies based on
610         <ref column="type"/>.
611       </column>
612
613       <column name="status">
614         <p>
615           Key-value pairs that report port status.  Supported status
616           values are <code>type</code>-dependent.
617         </p>
618         <p>The only currently defined key-value pair is:</p>
619         <dl>
620           <dt><code>source_ip</code></dt>
621           <dd>The source IP address used for an IPv4 tunnel end-point,
622             such as <code>gre</code> or <code>capwap</code>.  Not
623             supported by all implementations.</dd>
624         </dl>
625       </column>
626     </group>
627
628     <group title="Ingress Policing">
629       <column name="ingress_policing_burst">
630         <p>Maximum burst size for data received on this interface, in kb.  The
631           default burst size if set to <code>0</code> is 1000 kb.  This value
632           has no effect if <ref column="ingress_policing_rate"/>
633           is <code>0</code>.</p>
634         <p>The burst size should be at least the size of the interface's
635           MTU.</p>
636       </column>
637
638       <column name="ingress_policing_rate">
639         <p>Maximum rate for data received on this interface, in kbps.  Data
640           received faster than this rate is dropped.  Set to <code>0</code> to
641           disable policing.</p>
642         <p>The meaning of ``ingress'' is from Open vSwitch's perspective.  If
643           configured on a physical interface, then it limits the rate at which
644           traffic is allowed into the system from the outside.  If configured
645           on a virtual interface that is connected to a virtual machine, then
646           it limits the rate at which the guest is able to transmit.</p>
647       </column>
648     </group>
649
650     <group title="Other Features">
651       <column name="external_ids">
652         <p>
653           Key-value pairs for use by external frameworks that integrate
654           with Open vSwitch, rather than by Open vSwitch itself.  System
655           integrators should either use the Open vSwitch development
656           mailing list to coordinate on common key-value definitions, or
657           choose key names that are likely to be unique.
658         </p>
659         <p>
660           All of the currently defined key-value pairs specifically
661           apply to an interface that represents a virtual Ethernet interface
662           connected to a virtual machine.  These key-value pairs should not be
663           present for other types of interfaces.  Keys whose names end
664           in <code>-uuid</code> have values that uniquely identify the entity
665           in question.  For a Citrix XenServer hypervisor, these values are
666           UUIDs in RFC 4122 format.  Other hypervisors may use other
667           formats.
668         </p>
669         <p>The currently defined key-value pairs are:</p>
670         <dl>
671           <dt><code>vif-uuid</code></dt>
672           <dd>The virtual interface associated with this interface.</dd>
673           <dt><code>network-uuid</code></dt>
674           <dd>The virtual network to which this interface is attached.</dd>
675           <dt><code>vm-uuid</code></dt>
676           <dd>The VM to which this interface belongs.</dd>
677           <dt><code>vif-mac</code></dt>
678           <dd>The MAC address programmed into the "virtual hardware" for this
679               interface, in the
680               form <var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var>:<var>xx</var>.
681               For Citrix XenServer, this is the value of the <code>MAC</code>
682               field in the VIF record for this interface.</dd>
683         </dl>
684       </column>
685
686       <column name="statistics">
687         <p>
688           Key-value pairs that report interface statistics.  The current
689           implementation updates these counters periodically.  In the future,
690           we plan to, instead, update them when an interface is created, when
691           they are queried (e.g. using an OVSDB <code>select</code> operation),
692           and just before an interface is deleted due to virtual interface
693           hot-unplug or VM shutdown, and perhaps at other times, but not on any
694           regular periodic basis.</p>
695         <p>
696           The currently defined key-value pairs are listed below.  These are
697           the same statistics reported by OpenFlow in its <code>struct
698           ofp_port_stats</code> structure.  If an interface does not support a
699           given statistic, then that pair is omitted.</p>
700         <ul>
701           <li>
702             Successful transmit and receive counters:
703             <dl>
704               <dt><code>rx_packets</code></dt>
705               <dd>Number of received packets.</dd>
706               <dt><code>rx_bytes</code></dt>
707               <dd>Number of received bytes.</dd>
708               <dt><code>tx_packets</code></dt>
709               <dd>Number of transmitted packets.</dd>
710               <dt><code>tx_bytes</code></dt>
711               <dd>Number of transmitted bytes.</dd>
712             </dl>
713           </li>
714           <li>
715             Receive errors:
716             <dl>
717               <dt><code>rx_dropped</code></dt>
718               <dd>Number of packets dropped by RX.</dd>
719               <dt><code>rx_frame_err</code></dt>
720               <dd>Number of frame alignment errors.</dd>
721               <dt><code>rx_over_err</code></dt>
722               <dd>Number of packets with RX overrun.</dd>
723               <dt><code>rx_crc_err</code></dt>
724               <dd>Number of CRC errors.</dd>
725               <dt><code>rx_errors</code></dt>
726               <dd>
727                 Total number of receive errors, greater than or equal
728                 to the sum of the above.
729               </dd>
730             </dl>
731           </li>
732           <li>
733             Transmit errors:
734             <dl>
735               <dt><code>tx_dropped</code></dt>
736               <dd>Number of packets dropped by TX.</dd>
737               <dt><code>collisions</code></dt>
738               <dd>Number of collisions.</dd>
739               <dt><code>tx_errors</code></dt>
740               <dd>
741                 Total number of transmit errors, greater
742                 than or equal to the sum of the above.
743               </dd>
744             </dl>
745           </li>
746         </ul>
747       </column>
748     </group>
749   </table>
750
751   <table name="QoS" title="Quality of Service configuration">
752     <p>Quality of Service (QoS) configuration for each Port that
753       references it.</p>
754
755     <column name="type">
756       <p>The type of QoS to implement.  The <ref table="Open_vSwitch"
757         column="capabilities"/> column in the <ref table="Open_vSwitch"/> table
758         identifies the types that a switch actually supports.  The currently
759         defined types are listed below:</p>
760       <dl>
761         <dt><code>linux-htb</code></dt>
762         <dd>Linux ``hierarchy token bucket'' classifier.</dd>
763       </dl>
764     </column>
765
766     <column name="queues">
767       <p>A map from queue numbers to <ref table="Queue"/> records.  The
768         supported range of queue numbers depend on <ref column="type"/>.  The
769         queue numbers are the same as the <code>queue_id</code> used in
770         OpenFlow in <code>struct ofp_action_enqueue</code> and other
771         structures.  Queue 0 is used by OpenFlow output actions that do not
772         specify a specific queue.</p>
773     </column>
774
775     <column name="other_config">
776       <p>Key-value pairs for configuring QoS features that depend on
777         <ref column="type"/>.</p>
778       <p>The <code>linux-htb</code> class supports the following key-value
779         pairs:</p>
780       <dl>
781         <dt><code>max-rate</code></dt>
782         <dd>Maximum rate shared by all queued traffic, in bit/s.
783           Optional.  If not specified, for physical interfaces, the
784           default is the link rate.  For other interfaces or if the
785           link rate cannot be determined, the default is currently 100
786           Mbps.</dd>
787       </dl>
788     </column>
789
790     <column name="external_ids">
791       Key-value pairs for use by external frameworks that integrate with Open
792       vSwitch, rather than by Open vSwitch itself.  System integrators should
793       either use the Open vSwitch development mailing list to coordinate on
794       common key-value definitions, or choose key names that are likely to be
795       unique.  No common key-value pairs are currently defined.
796     </column>
797   </table>
798
799   <table name="Queue" title="QoS output queue.">
800     <p>A configuration for a port output queue, used in configuring Quality of
801       Service (QoS) features.  May be referenced by <ref column="queues"
802       table="QoS"/> column in <ref table="QoS"/> table.</p>
803
804     <column name="other_config">
805       <p>Key-value pairs for configuring the output queue.  The supported
806         key-value pairs and their meanings depend on the <ref column="type"/>
807         of the <ref column="QoS"/> records that reference this row.</p>
808       <p>The key-value pairs defined for <ref table="QoS"/> <ref table="QoS"
809         column="type"/> of <code>min-rate</code> are:</p>
810       <dl>
811         <dt><code>min-rate</code></dt>
812         <dd>Minimum guaranteed bandwidth, in bit/s.  Required.</dd>
813       </dl>
814       <p>The key-value pairs defined for <ref table="QoS"/> <ref table="QoS"
815         column="type"/> of <code>linux-htb</code> are:</p>
816       <dl>
817         <dt><code>min-rate</code></dt>
818         <dd>Minimum guaranteed bandwidth, in bit/s.  Required.</dd>
819         <dt><code>max-rate</code></dt>
820         <dd>Maximum allowed bandwidth, in bit/s.  Optional.  If specified, the
821           queue's rate will not be allowed to exceed the specified value, even
822           if excess bandwidth is available.  If unspecified, defaults to no
823           limit.</dd>
824         <dt><code>burst</code></dt>
825         <dd>Burst size, in bits.  This is the maximum amount of ``credits''
826           that a queue can accumulate while it is idle.  Optional.  Details of
827           the <code>linux-htb</code> implementation require a minimum burst
828           size, so a too-small <code>burst</code> will be silently
829           ignored.</dd>
830         <dt><code>priority</code></dt>
831         <dd>A nonnegative 32-bit integer.  Defaults to 0 if
832           unspecified.  A queue with a smaller <code>priority</code>
833           will receive all the excess bandwidth that it can use before
834           a queue with a larger value receives any.  Specific priority
835           values are unimportant; only relative ordering matters.</dd>
836       </dl>
837     </column>
838
839     <column name="external_ids">
840       Key-value pairs for use by external frameworks that integrate with Open
841       vSwitch, rather than by Open vSwitch itself.  System integrators should
842       either use the Open vSwitch development mailing list to coordinate on
843       common key-value definitions, or choose key names that are likely to be
844       unique.  No common key-value pairs are currently defined.
845     </column>
846   </table>
847
848   <table name="Mirror" title="Port mirroring (SPAN/RSPAN).">
849     <p>A port mirror within a <ref table="Bridge"/>.</p>
850     <p>A port mirror configures a bridge to send selected frames to special
851       ``mirrored'' ports, in addition to their normal destinations.  Mirroring
852       traffic may also be referred to as SPAN or RSPAN, depending on the
853       mechanism used for delivery.</p>
854
855     <column name="name">
856       Arbitrary identifier for the <ref table="Mirror"/>.
857     </column>
858
859     <group title="Selecting Packets for Mirroring">
860       <column name="select_all">
861         If true, every packet arriving or departing on any port is
862         selected for mirroring.
863       </column>
864
865       <column name="select_dst_port">
866         Ports on which departing packets are selected for mirroring.
867       </column>
868
869       <column name="select_src_port">
870         Ports on which arriving packets are selected for mirroring.
871       </column>
872
873       <column name="select_vlan">
874         VLANs on which packets are selected for mirroring.  An empty set
875         selects packets on all VLANs.
876       </column>
877     </group>
878
879     <group title="Mirroring Destination Configuration">
880       <column name="output_port">
881         <p>Output port for selected packets, if nonempty.  Mutually exclusive
882           with <ref column="output_vlan"/>.</p>
883         <p>Specifying a port for mirror output reserves that port exclusively
884           for mirroring.  No frames other than those selected for mirroring
885           will be forwarded to the port, and any frames received on the port
886           will be discarded.</p>
887         <p>This type of mirroring is sometimes called SPAN.</p>
888       </column>
889
890       <column name="output_vlan">
891         <p>Output VLAN for selected packets, if nonempty.  Mutually exclusive
892           with <ref column="output_port"/>.</p>
893         <p>The frames will be sent out all ports that trunk
894           <ref column="output_vlan"/>, as well as any ports with implicit VLAN
895           <ref column="output_vlan"/>.  When a mirrored frame is sent out a
896           trunk port, the frame's VLAN tag will be set to
897           <ref column="output_vlan"/>, replacing any existing tag; when it is
898           sent out an implicit VLAN port, the frame will not be tagged.  This
899           type of mirroring is sometimes called RSPAN.</p>
900         <p><em>Please note:</em> Mirroring to a VLAN can disrupt a network that
901           contains unmanaged switches.  Consider an unmanaged physical switch
902           with two ports: port 1, connected to an end host, and port 2,
903           connected to an Open vSwitch configured to mirror received packets
904           into VLAN 123 on port 2.  Suppose that the end host sends a packet on
905           port 1 that the physical switch forwards to port 2.  The Open vSwitch
906           forwards this packet to its destination and then reflects it back on
907           port 2 in VLAN 123.  This reflected packet causes the unmanaged
908           physical switch to replace the MAC learning table entry, which
909           correctly pointed to port 1, with one that incorrectly points to port
910           2.  Afterward, the physical switch will direct packets destined for
911           the end host to the Open vSwitch on port 2, instead of to the end
912           host on port 1, disrupting connectivity.  If mirroring to a VLAN is
913           desired in this scenario, then the physical switch must be replaced
914           by one that learns Ethernet addresses on a per-VLAN basis.  In
915           addition, learning should be disabled on the VLAN containing mirrored
916           traffic. If this is not done then intermediate switches will learn
917           the MAC address of each end host from the mirrored traffic.  If
918           packets being sent to that end host are also mirrored, then they will
919           be dropped since the switch will attempt to send them out the input
920           port. Disabling learning for the VLAN will cause the switch to
921           correctly send the packet out all ports configured for that VLAN.  If
922           Open vSwitch is being used as an intermediate switch, learning can be
923           disabled by adding the mirrored VLAN to <ref column="flood_vlans"/>
924           in the appropriate <ref table="Bridge"/> table or tables.</p>
925       </column>
926     </group>
927
928     <group title="Other Features">
929       <column name="external_ids">
930         Key-value pairs for use by external frameworks that integrate with Open
931         vSwitch, rather than by Open vSwitch itself.  System integrators should
932         either use the Open vSwitch development mailing list to coordinate on
933         common key-value definitions, or choose key names that are likely to be
934         unique.  No common key-value pairs are currently defined.
935       </column>
936     </group>
937   </table>
938
939   <table name="Controller" title="OpenFlow controller configuration.">
940     <p>An OpenFlow controller.</p>
941
942     <p>
943       Open vSwitch supports two kinds of OpenFlow controllers:
944     </p>
945     
946     <dl>
947       <dt>Primary controllers</dt>
948       <dd>
949         <p>
950           This is the kind of controller envisioned by the OpenFlow 1.0
951           specification.  Usually, a primary controller implements a network
952           policy by taking charge of the switch's flow table.
953         </p>
954
955         <p>
956           Open vSwitch initiates and maintains persistent connections to
957           primary controllers, retrying the connection each time it fails or
958           drops.  The <ref table="Bridge" column="fail_mode"/> column in the
959           <ref table="Bridge"/> table applies to primary controllers.
960         </p>
961
962         <p>
963           Open vSwitch permits a bridge to have any number of primary
964           controllers.  When multiple controllers are configured, Open
965           vSwitch connects to all of them simultaneously.  Because
966           OpenFlow 1.0 does not specify how multiple controllers
967           coordinate in interacting with a single switch, more than
968           one primary controller should be specified only if the
969           controllers are themselves designed to coordinate with each
970           other.  (The Nicira-defined <code>NXT_ROLE</code> OpenFlow
971           vendor extension may be useful for this.)
972         </p>
973       </dd>
974       <dt>Service controllers</dt>
975       <dd>
976         <p>
977           These kinds of OpenFlow controller connections are intended for
978           occasional support and maintenance use, e.g. with
979           <code>ovs-ofctl</code>.  Usually a service controller connects only
980           briefly to inspect or modify some of a switch's state.
981         </p>
982
983         <p>
984           Open vSwitch listens for incoming connections from service
985           controllers.  The service controllers initiate and, if necessary,
986           maintain the connections from their end.  The <ref table="Bridge"
987           column="fail_mode"/> column in the <ref table="Bridge"/> table does
988           not apply to service controllers.
989         </p>
990
991         <p>
992           Open vSwitch supports configuring any number of service controllers.
993         </p>
994       </dd>
995     </dl>
996
997     <p>
998       The <ref column="target"/> determines the type of controller.
999     </p>
1000
1001     <group title="Core Features">
1002       <column name="target">
1003         <p>Connection method for controller.</p>
1004         <p>
1005           The following connection methods are currently supported for primary
1006           controllers:
1007         </p>
1008         <dl>
1009           <dt><code>ssl:<var>ip</var></code>[<code>:<var>port</var></code>]</dt>
1010           <dd>
1011             <p>The specified SSL <var>port</var> (default: 6633) on the host at
1012             the given <var>ip</var>, which must be expressed as an IP address
1013             (not a DNS name).  The <ref table="Open_vSwitch" column="ssl"/>
1014             column in the <ref table="Open_vSwitch"/> table must point to a
1015             valid SSL configuration when this form is used.</p>
1016             <p>SSL support is an optional feature that is not always built as
1017               part of Open vSwitch.</p>
1018           </dd>
1019           <dt><code>tcp:<var>ip</var></code>[<code>:<var>port</var></code>]</dt>
1020           <dd>The specified TCP <var>port</var> (default: 6633) on the host at
1021             the given <var>ip</var>, which must be expressed as an IP address
1022             (not a DNS name).</dd>
1023           <dt><code>discover</code></dt>
1024           <dd>
1025             <p>Enables controller discovery.</p>
1026             <p>In controller discovery mode, Open vSwitch broadcasts a DHCP
1027               request with vendor class identifier <code>OpenFlow</code> across
1028               all of the bridge's network devices.  It will accept any valid
1029               DHCP reply that has the same vendor class identifier and includes
1030               a vendor-specific option with code 1 whose contents are a string
1031               specifying the location of the controller in the same format as
1032               <ref column="target"/>.</p>
1033             <p>The DHCP reply may also, optionally, include a vendor-specific
1034               option with code 2 whose contents are a string specifying the URI
1035               to the base of the OpenFlow PKI
1036               (e.g. <code>http://192.168.0.1/openflow/pki</code>).  This URI is
1037               used only for bootstrapping the OpenFlow PKI at initial switch
1038               setup; <code>ovs-vswitchd</code> does not use it at all.</p>
1039           </dd>
1040         </dl>
1041         <p>
1042           The following connection methods are currently supported for service
1043           controllers:
1044         </p>
1045         <dl>
1046           <dt><code>pssl:</code>[<var>port</var>][<code>:<var>ip</var></code>]</dt>
1047           <dd>
1048             <p>
1049               Listens for SSL connections on the specified TCP <var>port</var>
1050               (default: 6633).  If <var>ip</var>, which must be expressed as an
1051               IP address (not a DNS name), is specified, then connections are
1052               restricted to the specified local IP address.
1053             </p>
1054             <p>
1055               The <ref table="Open_vSwitch" column="ssl"/> column in the <ref
1056               table="Open_vSwitch"/> table must point to a valid SSL
1057               configuration when this form is used.
1058             </p>
1059             <p>SSL support is an optional feature that is not always built as
1060               part of Open vSwitch.</p>
1061           </dd>
1062           <dt><code>ptcp:</code>[<var>port</var>][<code>:<var>ip</var></code>]</dt>
1063           <dd>
1064             Listens for connections on the specified TCP <var>port</var>
1065             (default: 6633).  If <var>ip</var>, which must be expressed as an
1066             IP address (not a DNS name), is specified, then connections are
1067             restricted to the specified local IP address.
1068           </dd>
1069         </dl>
1070         <p>When multiple controllers are configured for a single bridge, the
1071           <ref column="target"/> values must be unique.  Duplicate
1072           <ref column="target"/> values yield unspecified results.</p>
1073       </column>
1074
1075       <column name="connection_mode">
1076         <p>If it is specified, this setting must be one of the following
1077         strings that describes how Open vSwitch contacts this OpenFlow
1078         controller over the network:</p>
1079
1080         <dl>
1081           <dt><code>in-band</code></dt>
1082           <dd>In this mode, this controller's OpenFlow traffic travels over the
1083             bridge associated with the controller.  With this setting, Open
1084             vSwitch allows traffic to and from the controller regardless of the
1085             contents of the OpenFlow flow table.  (Otherwise, Open vSwitch
1086             would never be able to connect to the controller, because it did
1087             not have a flow to enable it.)  This is the most common connection
1088             mode because it is not necessary to maintain two independent
1089             networks.</dd>
1090           <dt><code>out-of-band</code></dt>
1091           <dd>In this mode, OpenFlow traffic uses a control network separate
1092             from the bridge associated with this controller, that is, the
1093             bridge does not use any of its own network devices to communicate
1094             with the controller.  The control network must be configured
1095             separately, before or after <code>ovs-vswitchd</code> is started.
1096           </dd>
1097         </dl>
1098
1099         <p>If not specified, the default is implementation-specific.  If
1100           <ref column="target"/> is <code>discover</code>, the connection mode
1101           is always treated as <code>in-band</code> regardless of the actual
1102           setting.</p>
1103       </column>
1104     </group>
1105
1106     <group title="Controller Failure Detection and Handling">
1107       <column name="max_backoff">
1108         Maximum number of milliseconds to wait between connection attempts.
1109         Default is implementation-specific.
1110       </column>
1111
1112       <column name="inactivity_probe">
1113         Maximum number of milliseconds of idle time on connection to
1114         controller before sending an inactivity probe message.  If Open
1115         vSwitch does not communicate with the controller for the specified
1116         number of seconds, it will send a probe.  If a response is not
1117         received for the same additional amount of time, Open vSwitch
1118         assumes the connection has been broken and attempts to reconnect.
1119         Default is implementation-specific.
1120       </column>
1121     </group>
1122
1123     <group title="OpenFlow Rate Limiting">
1124         <column name="controller_rate_limit">
1125           <p>The maximum rate at which packets in unknown flows will be
1126             forwarded to the OpenFlow controller, in packets per second.  This
1127             feature prevents a single bridge from overwhelming the controller.
1128             If not specified, the default is implementation-specific.</p>
1129           <p>In addition, when a high rate triggers rate-limiting, Open
1130             vSwitch queues controller packets for each port and transmits
1131             them to the controller at the configured rate.  The number of
1132             queued packets is limited by
1133             the <ref column="controller_burst_limit"/> value.  The packet
1134             queue is shared fairly among the ports on a bridge.</p><p>Open
1135             vSwitch maintains two such packet rate-limiters per bridge.
1136             One of these applies to packets sent up to the controller
1137             because they do not correspond to any flow.  The other applies
1138             to packets sent up to the controller by request through flow
1139             actions. When both rate-limiters are filled with packets, the
1140             actual rate that packets are sent to the controller is up to
1141             twice the specified rate.</p>
1142         </column>
1143
1144         <column name="controller_burst_limit">
1145           In conjunction with <ref column="controller_rate_limit"/>,
1146           the maximum number of unused packet credits that the bridge will
1147           allow to accumulate, in packets.  If not specified, the default
1148           is implementation-specific.
1149         </column>
1150     </group>
1151
1152     <group title="Additional Discovery Configuration">
1153       <p>These values are considered only when <ref column="target"/>
1154         is <code>discover</code>.</p>
1155
1156       <column name="discover_accept_regex">
1157         A POSIX
1158         extended regular expression against which the discovered controller
1159         location is validated.  The regular expression is implicitly
1160         anchored at the beginning of the controller location string, as
1161         if it begins with <code>^</code>.  If not specified, the default
1162         is implementation-specific.
1163       </column>
1164
1165       <column name="discover_update_resolv_conf">
1166         Whether to update <code>/etc/resolv.conf</code> when the
1167         controller is discovered.  If not specified, the default
1168         is implementation-specific.  Open vSwitch will only modify
1169         <code>/etc/resolv.conf</code> if the DHCP response that it receives
1170         specifies one or more DNS servers.
1171       </column>
1172     </group>
1173
1174     <group title="Additional In-Band Configuration">
1175       <p>These values are considered only in in-band control mode (see
1176         <ref column="connection_mode"/>) and only when <ref column="target"/>
1177         is not <code>discover</code>.  (For controller discovery, the network
1178         configuration obtained via DHCP is used instead.)</p>
1179
1180       <p>When multiple controllers are configured on a single bridge, there
1181         should be only one set of unique values in these columns.  If different
1182         values are set for these columns in different controllers, the effect
1183         is unspecified.</p>
1184
1185       <column name="local_ip">
1186         The IP address to configure on the local port,
1187         e.g. <code>192.168.0.123</code>.  If this value is unset, then
1188         <ref column="local_netmask"/> and <ref column="local_gateway"/> are
1189         ignored.
1190       </column>
1191
1192       <column name="local_netmask">
1193         The IP netmask to configure on the local port,
1194         e.g. <code>255.255.255.0</code>.  If <ref column="local_ip"/> is set
1195         but this value is unset, then the default is chosen based on whether
1196         the IP address is class A, B, or C.
1197       </column>
1198
1199       <column name="local_gateway">
1200         The IP address of the gateway to configure on the local port, as a
1201         string, e.g. <code>192.168.0.1</code>.  Leave this column unset if
1202         this network has no gateway.
1203       </column>
1204     </group>
1205
1206     <group title="Other Features">
1207       <column name="external_ids">
1208         Key-value pairs for use by external frameworks that integrate with Open
1209         vSwitch, rather than by Open vSwitch itself.  System integrators should
1210         either use the Open vSwitch development mailing list to coordinate on
1211         common key-value definitions, or choose key names that are likely to be
1212         unique.  No common key-value pairs are currently defined.
1213       </column>
1214     </group>
1215   </table>
1216
1217   <table name="NetFlow">
1218     A NetFlow target.  NetFlow is a protocol that exports a number of
1219     details about terminating IP flows, such as the principals involved
1220     and duration.
1221
1222     <column name="targets">
1223       NetFlow targets in the form
1224       <code><var>ip</var>:<var>port</var></code>.  The <var>ip</var>
1225       must be specified numerically, not as a DNS name.
1226     </column>
1227
1228     <column name="engine_id">
1229       Engine ID to use in NetFlow messages.  Defaults to datapath index
1230       if not specified.
1231     </column>
1232
1233     <column name="engine_type">
1234       Engine type to use in NetFlow messages.  Defaults to datapath
1235       index if not specified.
1236     </column>
1237
1238     <column name="active_timeout">
1239       The interval at which NetFlow records are sent for flows that are
1240       still active, in seconds.  A value of <code>0</code> requests the
1241       default timeout (currently 600 seconds); a value of <code>-1</code>
1242       disables active timeouts.
1243     </column>
1244
1245     <column name="add_id_to_interface">
1246       <p>If this column's value is <code>false</code>, the ingress and egress
1247         interface fields of NetFlow flow records are derived from OpenFlow port
1248         numbers.  When it is <code>true</code>, the 7 most significant bits of
1249         these fields will be replaced by the least significant 7 bits of the
1250         engine id.  This is useful because many NetFlow collectors do not
1251         expect multiple switches to be sending messages from the same host, so
1252         they do not store the engine information which could be used to
1253         disambiguate the traffic.</p>
1254       <p>When this option is enabled, a maximum of 508 ports are supported.</p>
1255     </column>
1256
1257     <column name="external_ids">
1258       Key-value pairs for use by external frameworks that integrate with Open
1259       vSwitch, rather than by Open vSwitch itself.  System integrators should
1260       either use the Open vSwitch development mailing list to coordinate on
1261       common key-value definitions, or choose key names that are likely to be
1262       unique.  No common key-value pairs are currently defined.
1263     </column>
1264   </table>
1265
1266   <table name="SSL">
1267     SSL configuration for an Open_vSwitch.
1268
1269     <column name="private_key">
1270       Name of a PEM file containing the private key used as the switch's
1271       identity for SSL connections to the controller.
1272     </column>
1273
1274     <column name="certificate">
1275       Name of a PEM file containing a certificate, signed by the
1276       certificate authority (CA) used by the controller and manager,
1277       that certifies the switch's private key, identifying a trustworthy
1278       switch.
1279     </column>
1280
1281     <column name="ca_cert">
1282       Name of a PEM file containing the CA certificate used to verify
1283       that the switch is connected to a trustworthy controller.
1284     </column>
1285
1286     <column name="bootstrap_ca_cert">
1287       If set to <code>true</code>, then Open vSwitch will attempt to
1288       obtain the CA certificate from the controller on its first SSL
1289       connection and save it to the named PEM file. If it is successful,
1290       it will immediately drop the connection and reconnect, and from then
1291       on all SSL connections must be authenticated by a certificate signed
1292       by the CA certificate thus obtained.  <em>This option exposes the
1293         SSL connection to a man-in-the-middle attack obtaining the initial
1294         CA certificate.</em>  It may still be useful for bootstrapping.
1295     </column>
1296
1297     <column name="external_ids">
1298       Key-value pairs for use by external frameworks that integrate with Open
1299       vSwitch, rather than by Open vSwitch itself.  System integrators should
1300       either use the Open vSwitch development mailing list to coordinate on
1301       common key-value definitions, or choose key names that are likely to be
1302       unique.  No common key-value pairs are currently defined.
1303     </column>
1304   </table>
1305
1306   <table name="sFlow">
1307     <p>An sFlow(R) target.  sFlow is a protocol for remote monitoring
1308       of switches.</p>
1309
1310     <column name="agent">
1311       Name of the network device whose IP address should be reported as the
1312       ``agent address'' to collectors.  If not specified, the IP address
1313       defaults to the <ref table="Controller" column="local_ip"/> in the
1314       collector's <ref table="Controller"/>.  If an agent IP address cannot be
1315       determined either way, sFlow is disabled.
1316     </column>
1317
1318     <column name="header">
1319       Number of bytes of a sampled packet to send to the collector.
1320       If not specified, the default is 128 bytes.
1321     </column>
1322
1323     <column name="polling">
1324       Polling rate in seconds to send port statistics to the collector.
1325       If not specified, defaults to 30 seconds.
1326     </column>
1327
1328     <column name="sampling">
1329       Rate at which packets should be sampled and sent to the collector.
1330       If not specified, defaults to 400, which means one out of 400
1331       packets, on average, will be sent to the collector.
1332     </column>
1333
1334     <column name="targets">
1335       sFlow targets in the form
1336       <code><var>ip</var>:<var>port</var></code>.
1337     </column>
1338
1339     <column name="external_ids">
1340       Key-value pairs for use by external frameworks that integrate with Open
1341       vSwitch, rather than by Open vSwitch itself.  System integrators should
1342       either use the Open vSwitch development mailing list to coordinate on
1343       common key-value definitions, or choose key names that are likely to be
1344       unique.  No common key-value pairs are currently defined.
1345     </column>
1346   </table>
1347
1348   <table name="Capability">
1349     <p>Records in this table describe functionality supported by the hardware
1350       and software platform on which this Open vSwitch is based.  Clients
1351       should not modify this table.</p>
1352
1353     <p>A record in this table is meaningful only if it is referenced by the
1354       <ref table="Open_vSwitch" column="capabilities"/> column in the
1355       <ref table="Open_vSwitch"/> table.  The key used to reference it, called
1356       the record's ``category,'' determines the meanings of the
1357       <ref column="details"/> column.  The following general forms of
1358       categories are currently defined:</p>
1359
1360     <dl>
1361       <dt><code>qos-<var>type</var></code></dt>
1362       <dd><var>type</var> is supported as the value for
1363         <ref column="type" table="QoS"/> in the <ref table="QoS"/> table.
1364       </dd>
1365     </dl>
1366
1367     <column name="details">
1368       <p>Key-value pairs that describe capabilities.  The meaning of the pairs
1369       depends on the category key that the <ref table="Open_vSwitch"
1370       column="capabilities"/> column in the <ref table="Open_vSwitch"/> table
1371       uses to reference this record, as described above.</p>
1372
1373       <p>The presence of a record for category <code>qos-<var>type</var></code>
1374           indicates that the switch supports <var>type</var> as the value of
1375           the <ref table="QoS" column="type"/> column in the <ref table="QoS"/>
1376           table.  The following key-value pairs are defined to further describe
1377           QoS capabilities:</p>
1378
1379       <dl>
1380         <dt><code>n-queues</code></dt>
1381         <dd>Number of supported queues, as a positive integer.  Keys in the
1382           <ref table="QoS" column="queues"/> column for <ref table="QoS"/>
1383           records whose <ref table="QoS" column="type"/> value
1384           equals <var>type</var> must range between 0 and this value minus one,
1385           inclusive.</dd>
1386       </dl>
1387     </column>
1388   </table>
1389 </database>