Add overlay_ip_version config for IPv6 tenant networks 73/35473/1
authorFeng Pan <fpan@redhat.com>
Wed, 17 May 2017 12:09:21 +0000 (08:09 -0400)
committerFeng Pan <fpan@redhat.com>
Mon, 29 May 2017 03:44:28 +0000 (23:44 -0400)
JIRA: APEX-443
opnfv-tht-pr: 133

Change-Id: I03b28bdcc6d0649920fd58fb3400b2a4e5891e68
Signed-off-by: Feng Pan <fpan@redhat.com>
config/network/network_settings_v6.yaml
lib/python/apex/network_environment.py

index 54c4113..cee2c24 100644 (file)
@@ -89,7 +89,7 @@ networks:                            # Network configurations
                                      #
   tenant:                            # Tenant network configuration
     enabled: true
-    cidr: 11.0.0.0/24                # Subnet in CIDR format 192.168.1.0/24
+    cidr: fd00:fd00:fd00:6000::/64   # Subnet in CIDR format 192.168.1.0/24
     mtu: 1500                        # Tenant network MTU
     overlay_id_range: 2,65535        # Tenant network Overlay segmentation ID range:
                                      # VNI, VLAN-ID, etc.
@@ -157,7 +157,6 @@ networks:                            # Network configurations
   api:                               # API network configuration
     enabled: true
     cidr: fd00:fd00:fd00:4000::/64   # Subnet in CIDR format
-    vlan: 13                         # VLAN tag to use for Overcloud hosts on this network
     mtu: 1500                        # Api network MTU
     nic_mapping:                     # Mapping of network configuration for Overcloud Nodes
       compute:                       # Mapping for compute profile (nodes that will be used as Compute nodes)
index dbe89b2..211fe68 100644 (file)
@@ -120,6 +120,7 @@ class NetworkEnvironment(dict):
             self[param_def]['TenantNetCidr'] = str(tenant_cidr)
             if tenant_cidr.version == 6:
                 postfix = '/tenant_v6.yaml'
+                self[param_def]['NeutronOverlayIPVersion'] = '"6"'
             else:
                 postfix = '/tenant.yaml'
 
@@ -161,6 +162,7 @@ class NetworkEnvironment(dict):
             self[param_def]['InternalApiNetCidr'] = str(api_cidr)
             if api_cidr.version == 6:
                 postfix = '/internal_api_v6.yaml'
+                # set overlay_ip_version option in Neutron ML2 config
             else:
                 postfix = '/internal_api.yaml'
             api_vlan = self._get_vlan(nets[API_NETWORK])