[ovs-dev] [PATCH 3/3] ovn-nbctl: Update manpage.
nickcooper-zhangtonghao
nickcooper-zhangtonghao at opencloud.tech
Sun Aug 28 09:05:18 UTC 2016
Signed-off-by: nickcooper-zhangtonghao <nickcooper-zhangtonghao at opencloud.tech>
---
ovn/utilities/ovn-nbctl.8.xml | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/ovn/utilities/ovn-nbctl.8.xml b/ovn/utilities/ovn-nbctl.8.xml
index d44f039..fa908b7 100644
--- a/ovn/utilities/ovn-nbctl.8.xml
+++ b/ovn/utilities/ovn-nbctl.8.xml
@@ -102,6 +102,41 @@
</dd>
</dl>
+ <h1>Logical Switch LB Commands</h1>
+ <dl>
+ <dt>[<code>--may-exist</code>] <code>lb-add</code> <var>switch</var> <var>lb</var> <var>vip</var> <var>ips</var> [<var>protocol</var>]</dt>
+ <dd>
+ Adds the specified LB to <var>switch</var>. We should assign <var>lb</var>
+ a virtual IPv4 address (and an optional port number with : as a separator)
+ and the corresponding endpoint IPv4 addresses (and optional port numbers
+ with : as separators) separated by commas. The optional argument <var>protocol</var>
+ must be either <code>tcp</code> or <code>udp</code>. This argument is useful
+ when a port number is provided as part of the <var>vip</var>. If the <var>protocol</var>
+ is unspecified and a port number is provided as part of <var>vip</var>,
+ OVN assumes the <var>protocol</var> to be <code>tcp</code>. It is an error if a load-balancer
+ named <var>lb</var> already exists, unless <code>--may-exist</code> is specified.
+ The following example adds a load-balancer with <var>protocol</var> <code>udp</code>:
+ <p>
+ <code>lb-add ls0 lb0 30.0.0.10:80 192.168.10.10:80,192.168.10.20:80,192.168.10.30:80 udp</code>
+ </p>
+ </dd>
+
+ <dt>[<code>--if-exists</code>] <code>lb-del</code> <var>switch</var> [<var>lb</var>]</dt>
+ <dd>
+ Deletes LBs from <var>switch</var>. If only
+ <var>switch</var> is supplied, all the LBs from the logical
+ switch are deleted. If <var>lb</var> is also specified,
+ then the <var>lb</var> will be deleted only from the logical switch.
+ It is an error if <var>lb</var> does not exist, unless <code>--if-exists</code>
+ is specified.
+ </dd>
+
+ <dt><code>lb-list</code> <var>switch</var></dt>
+ <dd>
+ Lists the LBs on <var>switch</var>.
+ </dd>
+ </dl>
+
<h1>Logical Switch Port Commands</h1>
<dl>
<dt>[<code>--may-exist</code>] <code>lsp-add</code> <var>switch</var> <var>port</var></dt>
--
1.8.3.1
More information about the dev
mailing list