X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=utilities%2Fovs-vsctl.8.in;h=7f6326e96e93545f492971ac014381cf65deea67;hb=d879a707a38eff0335e1b5c12ae4c61f4aa0296b;hp=acb4a80ed2b32bcfd6449defb3b8c3b2272ee9c7;hpb=37c84020e98ae97356447740a0cf906bdb4d3e64;p=openvswitch diff --git a/utilities/ovs-vsctl.8.in b/utilities/ovs-vsctl.8.in index acb4a80e..7f6326e9 100644 --- a/utilities/ovs-vsctl.8.in +++ b/utilities/ovs-vsctl.8.in @@ -12,6 +12,7 @@ ovs\-vsctl \- utility for querying and configuring \fBovs\-vswitchd\fR . .SH SYNOPSIS \fBovs\-vsctl\fR [\fIoptions\fR] \fIcommand \fR[\fIargs\fR\&...] +[\fB\-\-\fR \fIcommand \fR[\fIargs\fR\&...]] . .SH DESCRIPTION The \fBovs\-vsctl\fR program configures \fBovs\-vswitchd\fR(8), mainly @@ -22,7 +23,8 @@ when \fBovs\-vswitchd\fR is running, but it can also be used when changes will only take effect when \fBovs\-vswitchd\fR is started. .PP By default, each time \fBovs\-vsctl\fR runs, it examines and, -depending on the requested command, possibly applies changes to an +depending on the requested command or commands, possibly applies +changes to an \fBovs\-vswitchd.conf\fR file. Then, if it applied any changes and if \fBovs\-vswitchd\fR is running, it tells \fBovs\-vswitchd\fR to reload the modified configuration file and waits for the reload to complete @@ -98,6 +100,12 @@ its configuration file. By default, \fBovs\-vsctl\fR logs its arguments and the details of any changes that it makes to the system log. This option disables this logging. +.IP "\fB\-\-oneline\fR" +Modifies the output format so that the output for each command is printed +on a single line. New-line characters that would otherwise separate +lines are printed as \fB\\n\fR, and any instances of \fB\\\fR that +would otherwise appear in the output are doubled. +Prints a blank line for each command that has no output. . .SH COMMANDS The commands implemented by \fBovs\-vsctl\fR are described in the @@ -157,8 +165,10 @@ Creates on \fIbridge\fR a new port named \fIport\fR that bonds together the network devices given as each \fIiface\fR. At least two interfaces must be named. . -.IP "\fBdel\-port \fIbridge port\fR" -Deletes \fBport\fR from \fIbridge\fR. +.IP "\fBdel\-port \fR[\fIbridge\fR] \fIport\fR" +Deletes \fIport\fR. If \fIbridge\fR is omitted, \fIport\fR is removed +from whatever bridge contains it; if \fIbridge\fR is specified, it +must be the real or fake bridge that contains \fIport\fR. . .IP "\fBport\-to\-br \fIport\fR" Prints the name of the bridge that contains \fIport\fR on standard @@ -178,6 +188,16 @@ list. .IP "\fBiface\-to\-br \fIiface\fR" Prints the name of the bridge that contains \fIiface\fR on standard output. +.SH "EXAMPLES" +Create a new bridge named br0 and add port eth0 to it: +.IP +.B "ovs-vsctl add\-br br0" +.br +.B "ovs-vsctl add\-port br0 eth0" +.PP +Alternatively, perform both operations in a single atomic transaction: +.IP +.B "ovs-vsctl add\-br br0 \-\- add\-port br0 eth0" . .SH "EXIT STATUS" .IP "0"