[ovs-dev] [PATCH 4/4] ovn-nbctl: Improve ovn-nbctl manpage

Ben Pfaff blp at ovn.org
Thu Oct 6 00:49:32 UTC 2016


On Wed, Oct 05, 2016 at 04:20:45AM -0700, nickcooper-zhangtonghao wrote:
> Signed-off-by: nickcooper-zhangtonghao <nickcooper-zhangtonghao at opencloud.tech>

Thanks for pointing out the omission.  I ended up doing significant
further work here.  I applied the following final patch.

--8<--------------------------cut here-------------------------->8--

From: nickcooper-zhangtonghao <nickcooper-zhangtonghao at opencloud.tech>
Date: Wed, 5 Oct 2016 04:20:45 -0700
Subject: [PATCH] ovn-nbctl: Improve ovn-nbctl manpage

Signed-off-by: nickcooper-zhangtonghao <nickcooper-zhangtonghao at opencloud.tech>
[blp at ovn.org added further improvements]
Signed-off-by: Ben Pfaff <blp at ovn.org>
---
 ovn/utilities/ovn-nbctl.8.xml | 40 ++++++++++++++++++++++++++++++++--------
 1 file changed, 32 insertions(+), 8 deletions(-)

diff --git a/ovn/utilities/ovn-nbctl.8.xml b/ovn/utilities/ovn-nbctl.8.xml
index 7cd515f..2cbd6e0 100644
--- a/ovn/utilities/ovn-nbctl.8.xml
+++ b/ovn/utilities/ovn-nbctl.8.xml
@@ -169,14 +169,38 @@
 
       <dt><code>lsp-set-addresses</code> <var>port</var> [<var>address</var>]...</dt>
       <dd>
-        Sets the addresses associated with <var>port</var> to
-        <var>address</var>.  Each <var>address</var> should be either an
-        Ethernet address or an Ethernet address followed by IP addresses
-        (separated by space and quoted to form a single command-line
-        argument).  The special form <code>unknown</code> is also valid.
-        Multiple Ethernet addresses or Ethernet+IPs combinations may be set.
-        If no <var>address</var> argument is given, <var>port</var> will have
-        no addresses associated with it.
+        <p>
+          Sets the addresses associated with <var>port</var> to
+          <var>address</var>.  Each <var>address</var> should be one of the
+          following:
+        </p>
+
+        <dl>
+          <dt>an Ethernet address, optionally followed by a space and one or more IP addresses</dt>
+          <dd>
+            OVN delivers packets for the Ethernet address to this port.
+          </dd>
+
+          <dt><code>unknown</code></dt>
+          <dd>
+            OVN delivers unicast Ethernet packets whose destination MAC address
+            is not in any logical port's addresses column to ports with address
+            <code>unknown</code>.
+          </dd>
+
+          <dt><code>dynamic</code></dt>
+          <dd>
+            Use this keyword to make <code>ovn-northd</code> generate a
+            globally unique MAC address and choose an unused IPv4 address with
+            the logical port's subnet and store them in the port's
+            <code>dynamic_addresses</code> column.
+          </dd>
+        </dl>
+
+        <p>
+          Multiple addresses may be set.  If no <var>address</var> argument is
+          given, <var>port</var> will have no addresses associated with it.
+        </p>
       </dd>
 
       <dt><code>lsp-get-addresses</code> <var>port</var></dt>
-- 
2.1.3




More information about the dev mailing list