On Fri, Mar 10, 2017 at 07:47:20AM +0530, nusid...@redhat.com wrote:
> From: Numan Siddique <nusid...@redhat.com>
> 
> OVN will generate the IPv6 address for a logical port if requested
> using the IPv6 prefix and the MAC address (as IEEE EUI64 identifier).
> To generate the IPv6 address, CMS should define the IPv6 prefix in the
> 'Logical_switch.other_config:ipv6_prefix' column.
> 
> Signed-off-by: Numan Siddique <nusid...@redhat.com>
> Co-authored-by: Ben Pfaff <b...@ovn.org>

Thanks a lot for implementing this!  It's nice to have feature parity
for IPv4 and IPv6 to the greatest extent we can.

I'm going to apply this soon, with the following changes folded in.

diff --git a/NEWS b/NEWS
index 8607b04b6ed5..eb825ac72161 100644
--- a/NEWS
+++ b/NEWS
@@ -14,6 +14,7 @@ Post-v2.7.0
      "dot1q-tunnel" port VLAN mode.
    - OVN:
      * IPAM for IPv4 can now exclude user-defined addresses from assignment.
+     * IPAM can now assign IPv6 addresses.
      * Make the DHCPv4 router setting optional.
      * Gratuitous ARP for NAT addresses on a distributed logical router.
      * Allow ovn-controller SSL configuration to be obtained from vswitchd
diff --git a/ovn/ovn-nb.xml b/ovn/ovn-nb.xml
index cd1a02ab2e8b..2b416cede42e 100644
--- a/ovn/ovn-nb.xml
+++ b/ovn/ovn-nb.xml
@@ -137,12 +137,19 @@
     <group title="IP Address Assignment">
       <p>
         These options control automatic IP address management (IPAM) for ports
-        attached to the logical switch.  To enable IPAM, set <ref
+        attached to the logical switch.  To enable IPAM for IPv4, set <ref
         column="other_config" key="subnet"/> and optionally <ref
-        column="other_config:exclude_ips"/>.  Then, to request dynamic address
-        assignment for a particular port, use the <code>dynamic</code> keyword
-        in the <ref table="Logical_Switch_Port" column="addresses"/> column of
-        the port's <ref table="Logical_Switch_Port"/> row.
+        column="other_config:exclude_ips"/>.  To enable IPAM for IPv6, set
+        <ref column="other_config" key="ipv6_prefix"/>.  IPv4 and IPv6 may
+        be enabled together or separately.
+      </p>
+
+      <p>
+        To request dynamic address assignment for a particular port, use the
+        <code>dynamic</code> keyword in the <ref table="Logical_Switch_Port"
+        column="addresses"/> column of the port's <ref
+        table="Logical_Switch_Port"/> row.  This requests both an IPv4 and an
+        IPv6 address, if IPAM for IPv4 and IPv6 are both enabled.
       </p>
 
       <column name="other_config" key="subnet">
@@ -175,14 +182,11 @@
 
       <column name="other_config" key="ipv6_prefix">
         Set this to an IPv6 prefix to enable <code>ovn-northd</code> to
-        automatically assign IPv6 addresses using this prefix. Use the
-        <code>dynamic</code> keyword in the <ref table="Logical_Switch_Port"/>
-        table's <ref table="Logical_Switch_Port" column="addresses"/> column to
-        request dynamic address assignment for a particular port. The assigned
-        IPv6 address will be generated using the IPv6 prefix and the
-        MAC address (as IEEE EUI64 identifier) of the port.
-        The IPv6 prefix defined here should be a valid IPv6 address ending with
-        "::".
+        automatically assign IPv6 addresses using this prefix.  The assigned
+        IPv6 address will be generated using the IPv6 prefix and the MAC
+        address (converted to an IEEE EUI64 identifier) of the port.  The IPv6
+        prefix defined here should be a valid IPv6 address ending with
+        <code>::</code>.
         <p>
           Examples:
         </p>
-- 
2.10.2

_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to