Rename "secchan" to "ofproto" (library) and "ovs-openflowd" (program).
[sliver-openvswitch.git] / vswitchd / ovs-vswitchd.conf.5.in
1 .\" -*- nroff -*-
2 .de TQ
3 .  br
4 .  ns
5 .  TP "\\$1"
6 ..
7 .de IQ
8 .  br
9 .  ns
10 .  IP "\\$1"
11 ..
12 .de ST
13 .  PP
14 .  RS -0.15in
15 .  I "\\$1"
16 .  RE
17 .  PP
18 ..
19 .TH ovs\-vswitchd.conf 5 "June 2009" "Open vSwitch" "Open vSwitch Manual"
20 .
21 .SH NAME
22 ovs\-vswitchd.conf \- configuration file for \fBovs\-vswitchd\fR
23 .
24 .SH DESCRIPTION
25 This manual page describes the syntax for the configuration file used 
26 by \fBovs\-vswitchd\fR(8), the Open vSwitch daemon.
27 .PP
28 The configuration file is based on key-value pairs, which are given
29 one per line in the form \fIkey\fB=\fIvalue\fR.  Each \fIkey\fR
30 consists of one or more parts separated by dots,
31 e.g. \fIpart1\fB.\fIpart2\fB.\fIpart3\fR.  Each \fIpart\fR may consist
32 only of the English letters, digits, and the special characters
33 \fB_-@$:+\fR.  White space within \fIvalue\fR  and at the beginning of a
34 line is significant, but is otherwise ignored.
35 .PP
36 If a single key is specified more than once, that key has multiple
37 values, one value for each time the key is specified.  The ordering of
38 key-value pairs, and the ordering of multiple values for a single key,
39 within a configuration file is not significant.
40 .PP
41 Blank lines, lines that consist only of white space, and lines that
42 begin with \fB#\fR (optionally preceded by white space) are ignored.
43 Keep in mind that programs that modify the configuration file, such as 
44 \fBovs\-brcompatd\fR and \fBovs-cfg-mod\fR, may alter the order of
45 elements and 
46 strip comments and blank lines.
47 .PP
48 The following subsections describe how key-value pairs are used to
49 configure \fBovs\-vswitchd\fR.
50 .SS "Bridge Configuration"
51 A bridge (switch) with a given \fIname\fR is configured by specifying
52 the names of its network devices as values for key
53 \fBbridge.\fIname\fB.port\fR.
54 .PP
55 The names given on \fBbridge.\fIname\fB.port\fR must be the names of
56 existing network devices, except for ``internal ports.''  An internal
57 port is a simulated network device that receives traffic only
58 through the switch and switches any traffic sent it through the
59 switch.  An internal port may configured with an IP address,
60 etc. using the usual system tools (e.g. \fBifconfig\fR, \fBip\fR).  To
61 designate network device \fInetdev\fR as an internal port, add
62 \fBiface.\fInetdev\fB.internal=true\fR to the configuration file.
63 \fBovs\-vswitchd\fR will honor this configuration setting by automatically
64 creating the named internal port.
65 .PP
66 A bridge with a given \fIname\fR always has an internal port with the
67 same \fIname\fR, called the ``local port.''  This network device may
68 be included
69 in the bridge, by specifying it as one of the values for key
70 \fBbridge.\fIname\fB.port\fR, or it may be omitted.  If it is
71 included, then its MAC address is by default the lowest-numbered MAC
72 address among the other bridge ports, ignoring other internal ports
73 and bridge ports that are
74 used as port mirroring destinations (see \fBPort Mirroring\fR, below).  To
75 use a specific MAC address instead, set \fBbridge.\fIname\fB.mac\fR to
76 a MAC address in the format
77 \fIxx\fB:\fIxx\fB:\fIxx\fB:\fIxx\fB:\fIxx\fB:\fIxx\fR, where each
78 \fIx\fR is a hex digit.  If no valid MAC address can be determined
79 either of these ways, then a MAC address is randomly generated.
80 .PP
81 The following syntax defines a bridge named \fBmybr\fR, configured
82 with network devices \fBeth0\fR, \fBeth1\fR, and \fBeth2\fR:
83 .RS
84 .nf
85
86 bridge.mybr.port=eth0
87 bridge.mybr.port=eth1
88 bridge.mybr.port=eth2
89
90 .fi
91 .RE
92 .SS "802.1Q VLAN support"
93 A bridge port may be configured either as a trunk port or as belonging
94 to a single, untagged VLAN.  These two options are mutually exclusive,
95 and a port must be configured in one way or the other.
96 .ST "Trunk Ports"
97 By default, bridge ports are trunk ports that carry all VLANs.  To
98 limit the VLANs that a trunk port carries, define
99 \fBvlan.\fIport\fB.trunks\fR to one or more integers between 0 and
100 4095 designating VLANs.  Only frames that have an 802.1Q header with
101 one of the listed VLANs are accepted on a trunk port.  If 0 is
102 included in the list, then frames without an 802.1Q header are also
103 accepted.  Other frames are discarded.
104 .PP
105 The following syntax makes network device \fBeth0\fR a trunk port that
106 carries VLANs 1, 2, and 3:
107 .PP
108 .RS
109 .nf
110
111 vlan.eth0.trunks=1
112 vlan.eth0.trunks=2
113 vlan.eth0.trunks=3
114         
115 .fi
116 .RE
117 .ST "Untagged VLAN Ports"
118 A bridge port may be configured with an implicit, untagged VLAN.  
119 Define key
120 \fBvlan.\fIport\fB.tag\fR to an integer value \fIvid\fR between 0 and
121 4095, inclusive, to designate the named \fIport\fR as a member
122 of 802.1Q VLAN \fIvid\fR.  When \fIport\fR is assigned a VLAN tag this
123 way, frames arriving on trunk ports will be forwarded to \fIport\fR
124 only if they are tagged with VLAN \fIvid\fR, and frames arriving on
125 other VLAN ports will be forwarded to \fIport\fR only if their
126 \fIvid\fR values are equal.  Frames forwarded to \fIport\fR will not
127 have an 802.1Q header.
128 .PP
129 When \fIvid\fR is 0, frames arriving on trunk ports without an 802.1Q
130 VLAN header will also be forwarded to \fIport\fR.
131 .PP
132 When a frame with a 802.1Q header that indicates a nonzero VLAN is
133 received on an implicit VLAN port, it is discarded.
134 .PP
135 The following syntax makes network device \fBeth0\fR a member of VLAN
136 101:
137 .PP
138 .RS
139 .nf
140
141 vlan.eth0.tag=101
142         
143 .fi
144 .RE
145 .SS "Network Device Bonding"
146 Bonding allows multiple ``slave'' network devices to be treated as if
147 they were a single virtual ``bonded'' network device.  It is useful for
148 load balancing and fail-over.
149 .PP
150 \fBovs\-vswitchd\fR supports ``source load balancing'' (SLB) bonding, which
151 assigns flows to slaves based on source MAC address, with periodic
152 rebalancing as traffic patterns change.  This form of bonding does not
153 require 802.3ad or other special support from the upstream switch to
154 which the slave devices are connected.
155 .PP
156 To configure bonding, create a virtual bonding device by specifying
157 the slave network device names as values for
158 \fBbonding.\fIname\fB.slave\fR, then specify \fIname\fR as a bridge
159 port.  The chosen \fIname\fR should not be the name of any real
160 network device on the host system.
161 .PP
162 By default, bonding interfaces are enabled or disabled immediately
163 when a carrier is detected or dropped on the underlying network
164 device.  To insert a delay when carrier comes up or goes down before
165 enabling or disabling an interface, set the value of
166 \fBbonding.\fIname\fB.updelay\fR or
167 \fBbonding.\fIname\fB.downdelay\fR, respectively, to a positive
168 integer, interpreted in milliseconds.
169 .PP
170 The following syntax bonds \fBeth0\fR and \fBeth1\fR into a bonding
171 device named \fBbond0\fR, which is added to bridge \fBmybr\fR along
172 with physical network devices \fBeth2\fR and \fBeth3\fR:
173 .PP
174 .RS
175 .nf
176
177 bridge.mybr.port=bond0
178 bridge.mybr.port=eth2
179 bridge.mybr.port=eth3
180
181 bonding.bond0.slave=eth0
182 bonding.bond0.slave=eth1
183         
184 .fi
185 .RE
186 .SS "Port Mirroring (SPAN and RSPAN)"
187 \fBovs\-vswitchd\fR may be configured to send selected frames to special
188 ``mirrored'' ports, in addition to their normal destinations.  Mirroring
189 traffic may also be referred to as SPAN or RSPAN, depending on the
190 mechanism used for delivery.
191 .PP
192 Up to 32 instances of port mirroring may be configured on a given
193 bridge.  Each must be given a name that is unique within the bridge.
194 The keys associated with port mirroring instance \fIpmname\fR for
195 bridge \fIbrname\fR begin with \fBmirror.\fIbrname\fB.\fIpmname\fR.
196 .PP
197 The selection of the frames to mirror and the form in which they
198 should be output is configured separately for each port mirroring
199 instances, through a subsection of
200 \fBmirror.\fIbrname\fB.\fIpmname\fR, named \fBselect\fR, and
201 \fBoutput\fR, respectively.
202 .ST "Selecting Frames to Mirror"
203 The values for the following keys, if specified, limit the frames that
204 are chosen for mirroring.  If none of these keys is specified, then
205 all frames received by the bridge are mirrored.  If more than one of
206 these keys is specified, then a frame must meet all specified criteria
207 to be mirrored.
208 .TP
209 \fBmirror.\fIbrname\fB.\fIpmname\fB.select.src-port=\fIport\fR
210 .TQ
211 \fBmirror.\fIbrname\fB.\fIpmname\fB.select.dst-port=\fIport\fR
212 .TQ
213 \fBmirror.\fIbrname\fB.\fIpmname\fB.select.port=\fIport\fR
214 Frame received on \fIport\fR, output to \fIport\fR, or either received
215 on or output to \fIport\fR, respectively.  \fIport\fR must be part of
216 the bridge \fIbrname\fR; that is, it must be listed on
217 \fBbridge.\fIbrname\fB.port\fR.
218 .TP
219 \fBmirror.\fIbrname\fB.\fIpmname\fB.select.vlan=\fIvid\fR
220 .
221 \fIvid\fR must be an integer between 0 and 4095, inclusive.  A nonzero
222 \fIvid\fR selects frames that belong to VLAN \fIvid\fR, that is,
223 frames that arrived on a trunk port tagged with VLAN \fIvid\fR or on a
224 port that is configured as part of VLAN \fIvid\fR (see \fB802.1Q VLAN
225 tagging\fR, above).  A \fIvid\fR of zero selects frames that do not
226 belong to a VLAN, that is, frames that arrived on a trunk port without
227 a VLAN tag or tagged with VLAN 0.
228 .ST "Mirror Output"
229 The values of the following keys determine how frames selected for
230 mirroring are output.  Only one of the keys may be specified.
231 .TP
232 \fBmirror.\fIbrname\fB.\fIpmname\fB.output.port=\fIport\fR
233 .
234 Causes the selected frames to be sent out \fIport\fR, which must be
235 part of the bridge \fIbrname\fR; that is, it must be listed on
236 \fBbridge.\fIbrname\fB.port\fR.
237 .IP
238 Specifying a \fIport\fR in this way reserves that port exclusively for
239 mirroring.  No frames other than those selected for mirroring will be
240 forwarded to \fIport\fR, and any frames received on \fIport\fR will be
241 discarded.  This type of mirroring may be referred to as SPAN.
242 .TP
243 \fBmirror.\fIbrname\fB.\fIpmname\fB.output.vlan=\fIvid\fR
244 .
245 Causes the selected frames to be sent on the VLAN numbered \fIvid\fR,
246 which must be an integer between 0 and 4095, inclusive.  The frames
247 will be sent out all ports that trunk VLAN \fIvid\fR, as well as any
248 ports with implicit VLAN \fIvid\fR.  When a mirrored frame is sent out
249 a trunk port, the frame's VLAN tag will be set to \fIvid\fR, replacing
250 any existing tag; when it is sent out an implicit VLAN port, the frame
251 will not be tagged.  This type of mirroring may be referred to as
252 RSPAN.
253 .ST "Example"
254 The following \fBovs\-vswitchd\fR configuration copies all frames received
255 on \fBeth1\fR or \fBeth2\fR to \fBeth3\fR.
256 .PP
257 .RS
258 .nf
259
260 bridge.mybr.port=eth1
261 bridge.mybr.port=eth2
262 bridge.mybr.port=eth3
263
264 mirror.mybr.a.select.src-port=eth1
265 mirror.mybr.a.select.src-port=eth2
266 mirror.mybr.a.output.port=eth3
267         
268 .fi
269 .RE
270 .SS "Port Rate-Limiting"
271 Traffic policing and shaping are configured on physical ports.  Policing
272 defines a hard limit at which traffic that exceeds the specified rate is
273 dropped.  Shaping uses queues to delay packets so that egress traffic
274 leaves at the specified rate.
275
276 .ST "Ingress Policing"
277 The rate at which traffic is allowed to enter through a port may be 
278 configured with ingress policing.  Note that "ingress" is from the 
279 perspective of \fBovs\-vswitchd\fR.  If configured on a physical port, 
280 then it limits the rate at which traffic is allowed into the system from 
281 the outside.  If configured on a virtual interface that is connected to 
282 a virtual machine, then it limits the rate at which the guest is able to 
283 transmit.
284
285 The rate is specified in kilobits (1000 bits) per second with a maximum 
286 burst size specified in kilobits (1000 bits).  The burst size should be at 
287 least the size of the interface's MTU.  
288
289 A port may be configured to enforce ingress policing by defining the
290 key \fBport.\fIname\fB.ingress.policing-rate\fR with an integer
291 indicating the rate.  The port \fIname\fR will only allow traffic to be
292 received at the rate specified in kilobits per second.  If the rate is zero 
293 or the key is not defined, then ingress policing is disabled.
294
295 If ingress policing is enabled, then the burst rate may be set by defining 
296 the key \fBport.\fIname\fB.ingress.policing-burst\fR with an integer 
297 indicating the burst rate in kilobits.  If the key is not supplied or is 
298 zero, then the default burst is 10 kilobits.
299
300 .PP
301 The following syntax limits port \fBeth1\fR to receiving traffic at
302 \fB512\fR kilobits per second with a burst of \fB20\fR kilobits:
303 .PP
304 .RS
305 .nf
306
307 port.eth1.ingress.policing-rate=512
308 port.eth1.ingress.policing-burst=20
309
310 .fi
311 .SS "NetFlow v5 Flow Logging"
312 NetFlow is a protocol that exports a number of details about terminating 
313 IP flows, such as the principals involved and duration.  A bridge may be 
314 configured to send NetFlow v5 records to NetFlow collectors when flows 
315 end.  To enable, define the key \fBnetflow.\fIbridge\fB.host\fR for each 
316 collector in the form \fIhost\fB:\fIport\fR.  Records from \fIbridge\fR 
317 will be sent to each \fIhost\fR on UDP \fIport\fR.
318
319 The NetFlow messages will use the datapath index for the engine type and id.  
320 This can be overridden with the \fBnetflow.\fIbridge\fB.engine-type\fR and 
321 \fBnetflow.\fIbridge\fB.engine-id\fR, respectively.  Each takes a value
322 between 0 and 255, inclusive. 
323
324 Many NetFlow collectors do not expect multiple switches to be
325 sending messages from the same host, and they do not store the engine
326 information which could be used to disambiguate the traffic.  To prevent
327 flows from multiple switches appearing as if they came on the interface,
328 add \fBnetflow.\fIbridge\fB.add-id-to-iface=true\fR to the configuration
329 file.  This will place the least significant 7 bits of the engine id
330 into the most significant bits of the ingress and egress interface fields 
331 of flow records.  By default, this behavior is disabled.
332
333 The following syntax sends NetFlow records for \fBmybr\fR to the NetFlow
334 collector \fBnflow.example.com\fR on UDP port \fB9995\fR:
335 .PP
336 .RS
337 .nf
338
339 netflow.mybr.host=nflow.example.com:9995
340
341 .fi
342 .RE
343 .SS "Remote Management"
344 A \fBovs\-vswitchd\fR instance may be remotely managed by a controller that
345 supports the OpenFlow Management Protocol, such as NOX.  This
346 functionality is enabled by setting the key \fBmgmt.controller\fR to one 
347 of the following values:
348 .
349 .TP
350 \fBssl:\fIhost\fR[\fB:\fIport\fR]
351 The specified SSL \fIport\fR (default: 6633) on the given remote
352 \fIhost\fR.  SSL must be configured when this form is used (see \fBSSL
353 Configuration\fR, below).
354 .
355 .TP
356 \fBtcp:\fIhost\fR[\fB:\fIport\fR]
357 The specified TCP \fIport\fR (default: 6633) on the given remote
358 \fIhost\fR.
359 .PP
360 The maximum time between attempts to connect to the controller may be
361 specified in integral seconds with the \fBmgmt.max-backoff\fR key.  The
362 default maximum backoff is 15 seconds, and the minimum value is 1
363 second.
364
365 An inactivity probe may be configured with the \fBmgmt.inactivity-probe\fR
366 key.  If \fBovs\-vswitchd\fR does not communicate with the controller for the
367 specified number of seconds, it will send a probe.  If a response is not
368 received for an additional amount of that time, \fBovs\-vswitchd\fR assumes
369 the connection has been broken and attempts to reconnect.  The default
370 is 15 seconds, and the minimum value is 5 seconds.
371
372 A management id may be specified with the \fBmgmt.id\fR key.  It takes
373 an id in the form of exactly 12 hexadecimal digits.  If one is not
374 specified, a random id is generated each time \fBovs\-vswitchd\fR is started.
375 .fi
376 .RE
377 .SS "OpenFlow Controller Connectivity"
378 \fBovs\-vswitchd\fR can perform all configured bridging and switching
379 locally, or it can be configured to connect a given bridge to an
380 external OpenFlow controller, such as NOX.  Its behavior depends on
381 the \fBbridge.\fIname\fB.controller\fR setting:
382 .
383 .TP
384 \fI\[la]unset\[ra]\fR
385 When the key is not set, the behavior depends on whether remote 
386 management is configured.  If management is configured, then the switch 
387 will connect to the controller specified on \fBmgmt.controller\fR.  If 
388 management is not configured, the switch will perform all configured 
389 bridging and switching locally.
390 .
391 .TP
392 \fI\[la]empty\[ra]\fR
393 Setting an empty string value disables controller connectivity.  The
394 switch will perform all configured bridging and switching locally.
395 .
396 .TP
397 \fBdiscover\fR
398 Use controller discovery to find the local OpenFlow controller.
399 Refer to \fB\ovs\-openflowd\fR(8) for information on how to configure a DHCP
400 server to support controller discovery.  The following additional
401 options control the discovery process:
402 .
403 .RS
404 .TP
405 \fBbridge.\fIname\fB.controller.accept-regex=\fIregex\fR
406 A POSIX extended regular expression against which the discovered
407 controller location is validated.  Only controllers whose names match
408 the regular expression will be accepted.
409 .IP
410 The default regular expression is \fBssl:.*\fR, meaning that only SSL
411 controller connections will be accepted, when SSL is configured (see
412 \fBSSL Configuration\fR), and \fBtcp:.*\fR otherwise, meaning that only
413 TCP controller connections will be accepted.
414 .IP
415 The regular expression is implicitly anchored at the beginning of the
416 controller location string, as if it begins with \fB^\fR.
417 .TP
418 \fBbridge.\fIname\fB.controller.update-resolv.conf=\fBtrue\fR|\fBfalse\fR
419 By default, or if this is set to \fBtrue\fR, \fBovs\-vswitchd\fR overwrites
420 the system's \fB/etc/resolv.conf\fR with domain information and DNS
421 servers obtained via DHCP.  If this setting is \fBfalse\fR,
422 \fBovs\-vswitchd\fR will not modify \fB/etc/resolv.conf\fR.
423 .IP
424 \fBovs\-vswitchd\fR will only modify \fBresolv.conf\fR if the DHCP response
425 that it receives specifies one or more DNS servers.
426 .RE
427 .
428 .TP
429 \fBssl:\fIhost\fR[\fB:\fIport\fR]
430 The specified SSL \fIport\fR (default: 6633) on the given remote
431 \fIhost\fR.  SSL must be configured when this form is used (see \fBSSL
432 Configuration\fR, below).
433 .
434 .TP
435 \fBtcp:\fIhost\fR[\fB:\fIport\fR]
436 The specified TCP \fIport\fR (default: 6633) on the given remote
437 \fIhost\fR.
438 .
439 .TP
440 \fBunix:\fIfile\fR
441 The Unix domain server socket named \fIfile\fR.
442 .PP
443 The datapath ID used by the bridge to identify itself to the remote
444 controller may be specified as \fBbridge.\fIname\fB.datapath-id\fR,
445 in the form of exactly 12 hexadecimal digits.  If the datapath ID
446 is not specified, then it defaults to the bridge's MAC address (see
447 \fBBridge Configuration\fR, above, for information on how the bridge's
448 MAC address is chosen).
449 .ST "Local Port Network Configuration"
450 When an external controller is configured, but controller discovery is
451 not in use, the following additional settings are honored:
452 .TP
453 \fBbridge.\fIname\fB.controller.in-band=\fBtrue\fR|\fBfalse\fR
454 By default, or if this is set to \fBtrue\fR, \fBovs\-vswitchd\fR connects
455 to the controller in-band.  If this is set to \fBfalse\fR,
456 \fBovs\-vswitchd\fR connects to the controller out-of-band.  Refer to
457 \fBovs\-openflowd\fR(8) for a description of in-band and out-of-band control.
458 .IP "\fBbridge.\fIname\fB.controller.ip=\fIip\fR"
459 If specified, the IP address to configure on the bridge's local port.
460 .IP "\fBbridge.\fIname\fB.controller.netmask=\fInetmask\fR"
461 When an IP is specified, the corresponding netmask.  The default is
462 255.255.255.0 for a Class C IP address, 255.255.0.0 for Class B, and
463 255.0.0.0 for Class A.
464 .IP "\fBbridge.\fIname\fB.controller.gateway=\fIip\fR"
465 When an IP is specified, the corresponding IP gateway.  There is no
466 default gateway.
467 .ST "Controller Failure Settings"
468 The following additional settings take effect when any remote
469 controller is configured:
470 .IP "\fBbridge.\fIname\fB.controller.inactivity-probe=\fIsecs\fR"
471 This optional setting may be set to \fIsecs\fR, a number of seconds.
472 The minimum value of \fIsecs\fR is 5 seconds.  The default is taken
473 from \fBmgmt.inactivity-probe\fR (see above).
474 .IP
475 When the switch is connected to the controller, it waits for a
476 message to be received from the controller for \fIsecs\fR seconds
477 before it sends a inactivity probe to the controller.  After sending
478 the inactivity probe, if no response is received for an additional
479 \fIsecs\fR seconds, \fBovs-vswitchd\fR assumes that the connection has
480 been broken and attempts to reconnect.
481 .IP
482 Changing the inactivity probe interval also changes the interval
483 before entering standalone mode (see below).
484 .IP "\fBbridge.\fIname\fB.controller.fail-mode=\fBstandalone\fR|\fBsecure\fR"
485 .IQ "\fBmgmt.fail-mode=standalone\fR|\fBsecure\fR"
486 When a controller is configured, it is, ordinarily, responsible for
487 setting up all flows on the switch.  Thus, if the connection to
488 the controller fails, no new network connections can be set up.  If
489 the connection to the controller stays down long enough, no packets
490 can pass through the switch at all.
491 .IP
492 The first of these that is set takes effect.
493 If the value is \fBstandalone\fR, \fBovs\-vswitchd\fR will take over
494 responsibility for setting up
495 flows when no message has been received from the controller for three
496 times the inactivity probe interval (see above).  In this mode,
497 \fBovs\-vswitchd\fR causes the datapath to act like an ordinary
498 MAC-learning switch.  \fBovs\-vswitchd\fR will continue to retry connecting
499 to the controller in the background and, when the connection succeeds,
500 it discontinues its standalone behavior.
501 .IP
502 If this option is set to \fBsecure\fR, or if neither of these settings
503 is set, \fBovs\-vswitchd\fR will not set up flows on its own when the
504 controller connection fails.
505 .IP "\fBbridge.\fIname\fB.controller.max-backoff=\fIsecs\fR"
506 Sets the maximum time between attempts to connect to the controller to
507 \fIsecs\fR, which must be at least 1.  The actual interval between
508 connection attempts starts at 1 second and doubles on each failing
509 attempt until it reaches the maximum.  The default maximum backoff
510 time is taken from \fBmgmt.max-backoff\fR.
511 .ST "Controller Rate-Limiting"
512 These settings configure how the switch applies a ``token
513 bucket'' to limit the rate at which packets in unknown flows are
514 forwarded to the OpenFlow controller for flow-setup processing.  This
515 feature prevents a single bridge from overwhelming a controller.
516 .IP "\fBbridge.\fIname\fB.controller.rate-limit=\fIrate\fR"
517 .IQ "\fBmgmt.rate-limit=\fIrate\fR"
518 Limits the maximum rate at which packets will be forwarded to the
519 OpenFlow controller to \fIrate\fR packets per second.  A rate specified
520 explicitly for \fIname\fR overrides a value configured using the
521 \fBmgmt.rate-limit\fR key.
522 .IP
523 If neither one of these settings is set, then the bridge does not
524 limit the rate at which packets are forwarded to the controller.
525 .IP "\fBbridge.\fIname\fB.controller.burst-limit=\fIburst\fR"
526 .IQ "\fBmgmt.burst-limit=\fIburst\fR"
527 Sets the maximum number of unused packet credits that the bridge will
528 allow to accumulate during the time in which no packets are being
529 forwarded to the OpenFlow controller to \fIburst\fR (measured in
530 packets).  The default \fIburst\fR is one-quarter of the \fIrate\fR
531 specified in the rate-limit setting.
532 .IP
533 A burst specified explicitly for \fIname\fR overrides a value configured 
534 using the \fBmgmt.burst-limit\fR key.  This option takes effect only 
535 when a rate-limit is specified.
536 .ST "Remote Command Execution Settings"
537 These settings configure the commands that remote OpenFlow connections
538 are allowed to invoke using (e.g.) \fBovs\-ofctl execute\fR.  To be
539 permitted, a command name must be whitelisted and must not be
540 blacklisted.  When the whitelist and blacklist permit a command name,
541 \fBovs\-vswitchd\fR looks for a program with the same name as the command
542 in the commands directory (see below).  Other directories are not
543 searched.
544 .IP "\fBbridge.\fIname\fB.controller.commands.acl=\fIglob\fR"
545 Whitelists commands whose names match shell glob pattern \fIglob\fR,
546 allowing those commands to be invoked by the remote controller.
547 .IP
548 By default, no commands are whitelisted, so this setting is mandatory
549 if any remote command execution is to be allowed.
550 .IP "\fBbridge.\fIname\fB.controller.commands.acl=\fB!\fR\fIglob\fR"
551 Blacklists commands whose names match shell glob pattern \fIglob\fR,
552 prohibiting those commands from being invoked by the remote
553 controller.  Command names that include characters other than upper-
554 and lower-case English letters, digits, and the underscore and hyphen
555 characters are blacklisted unconditionally.
556 .IP "\fBbridge.\fIname\fB.controller.commands.dir=\fIdirectory\fR"
557 Sets the directory searched for remote command execution to
558 \fIdirectory\fR.  The default directory is
559 \fB@pkgdatadir@/commands\fR.
560 .SS "SSL Configuration"
561 When \fBovs\-vswitchd\fR is configured to connect over SSL for management or
562 for controller connectivity, the following settings are required:
563 .TP
564 \fBssl.private-key=\fIprivkey.pem\fR
565 Specifies a PEM file containing the private key used as the 
566 switch's identity for SSL connections to the controller.
567 .TP
568 \fBssl.certificate=\fIcert.pem\fR
569 Specifies a PEM file containing a certificate, signed by the
570 certificate authority (CA) used by the controller and manager, that
571 certifies the switch's private key, identifying a trustworthy
572 switch.
573 .TP
574 \fBssl.ca-cert=\fIcacert.pem\fR
575 Specifies a PEM file containing the CA certificate used to verify that
576 the switch is connected to a trustworthy controller.
577 .PP
578 These files are read only once, at \fBovs\-vswitchd\fR startup time.  If
579 their contents change, \fBovs\-vswitchd\fR must be killed and restarted.
580 .PP
581 These SSL settings apply to all SSL connections made by the switch.
582 .ST "CA Certificate Bootstrap"
583 Ordinarily, all of the files named in the SSL configuration must exist
584 when \fBovs\-vswitchd\fR starts.  However, if \fBssl.bootstrap-ca-cert\fR
585 is set to \fBtrue\fR, then \fBovs\-vswitchd\fR will attempt to obtain the
586 CA certificate from the controller on its first SSL connection and
587 save it to the named PEM file.  If it is successful, it will
588 immediately drop the connection and reconnect, and from then on all
589 SSL connections must be authenticated by a certificate signed by the
590 CA certificate thus obtained.
591 .PP
592 \fBThis option exposes the SSL connection to a man-in-the-middle
593 attack obtaining the initial CA certificate\fR, but it may be useful
594 for bootstrapping.
595 .PP
596 This option is only useful if the controller sends its CA certificate
597 as part of the SSL certificate chain.  The SSL protocol does not
598 require the controller to send the CA certificate, but
599 \fBcontroller\fR(8) can be configured to do so with the
600 \fB--peer-ca-cert\fR option.
601 .SS "OpenFlow Management Connections"
602 By default, each bridge \fIname\fR listens for OpenFlow management
603 connections on a Unix domain socket named
604 \fB@RUNDIR@/\fIname\fB.mgmt\fR.  This socket can be used to perform
605 local OpenFlow monitoring and administration, e.g., \fBovs\-ofctl dump-flows
606 unix:@RUNDIR@/\fIname\fB.mgmt\fR to display the flows currently set up
607 in bridge \fIname\fR.
608 .PP
609 If \fBbridge.\fIname\fB.openflow.listeners\fR is set to one or more
610 values, \fBovs\-vswitchd\fR instead listens on the specified connection
611 methods.  Acceptable connection methods include:
612 .RS
613 .IP "\fBpunix:\fIfile\fR"
614 Listens for connections on the Unix domain server socket named \fIfile\fR.
615 .IP "\fBpssl:\fR[\fIport\fR]"
616 Listens for SSL connections on \fIport\fR (default: 6633).  SSL must
617 be configured when this form is used (see \fBSSL Configuration\fR,
618 above).
619 .IP "\fBptcp:\fR[\fIport\fR][\fB:\fIip\fR]"
620 Listens for TCP connections on \fIport\fR (default: 6633).
621 By default, \fB\ovs\-vswitchd\fR listens for connections to any local
622 IP address, but \fIip\fR may be specified to limit connections to the
623 specified local \fIip\fR.
624 .RE
625 To entirely disable listening for management connections, set
626 \fBbridge.\fIname\fB.openflow.listeners\fR to the single value
627 \fBnone\fR.
628
629 .SS "OpenFlow Controller Connection Snooping"
630 By default, each bridge \fIname\fR listens for OpenFlow controller
631 connection snooping connections on a Unix domain socket named
632 \fB@RUNDIR@/\fIname\fB.snoop\fR.  A client that connects to this
633 socket, e.g., \fBovs\-ofctl monitor unix:@RUNDIR@/\fIname\fB.snoop\fR, will
634 receive a copy of every OpenFlow message sent by the switch to the
635 controller, or vice versa, on the primary OpenFlow controller
636 connection.
637 .PP
638 If \fBbridge.\fIname\fB.openflow.snoops\fR is set to one or more
639 values, \fBovs\-vswitchd\fR instead listens on the specified connection
640 methods.  The acceptable connection methods are the same as for
641 OpenFlow management connections (see above).
642 .PP
643 To entirely disable controller connection snooping, set
644 \fBbridge.\fIname\fB.openflow.snoops\fR to the single value
645 \fBnone\fR.
646 .SH "SEE ALSO"
647 .BR ovs\-brcompatd (8),
648 .BR ovs\-cfg\-mod (8),
649 .BR ovs\-vswitchd (8)