+ # apply resource registry update for TENANT_RESOURCES
+ self._config_resource_reg(TENANT_RESOURCES, postfix)
+
+ if STORAGE_NETWORK in net_settings.enabled_network_list:
+ storage_range = nets[STORAGE_NETWORK]['overcloud_ip_range']
+ self[param_def]['StorageAllocationPools'] = \
+ [{'start': str(storage_range[0]),
+ 'end': str(storage_range[1])}]
+ storage_cidr = nets[STORAGE_NETWORK]['cidr']
+ self[param_def]['StorageNetCidr'] = str(storage_cidr)
+ if storage_cidr.version == 6:
+ postfix = '/storage_v6.yaml'
+ else:
+ postfix = '/storage.yaml'
+ storage_vlan = self._get_vlan(nets[STORAGE_NETWORK])
+ if isinstance(storage_vlan, int):
+ self[param_def]['StorageNetworkVlanID'] = storage_vlan
+ else:
+ postfix = '/noop.yaml'
+
+ # apply resource registry update for STORAGE_RESOURCES
+ self._config_resource_reg(STORAGE_RESOURCES, postfix)
+
+ if API_NETWORK in net_settings.enabled_network_list:
+ api_range = nets[API_NETWORK]['overcloud_ip_range']
+ self[param_def]['InternalApiAllocationPools'] = \
+ [{'start': str(api_range[0]),
+ 'end': str(api_range[1])}]
+ api_cidr = nets[API_NETWORK]['cidr']
+ self[param_def]['InternalApiNetCidr'] = str(api_cidr)
+ if api_cidr.version == 6:
+ postfix = '/internal_api_v6.yaml'
+ else:
+ postfix = '/internal_api.yaml'
+ api_vlan = self._get_vlan(nets[API_NETWORK])
+ if isinstance(api_vlan, int):
+ self[param_def]['InternalApiNetworkVlanID'] = api_vlan
+ else:
+ postfix = '/noop.yaml'
+
+ # apply resource registry update for API_RESOURCES
+ self._config_resource_reg(API_RESOURCES, postfix)
+
+ # Set IPv6 related flags to True. Not that we do not set those to False
+ # when IPv4 is configured, we'll use the default or whatever the user
+ # may have set.
+ if net_settings.get_ip_addr_family() == 6:
+ for flag in IPV6_FLAGS:
+ self[param_def][flag] = True
+
+ def _get_vlan(self, network):
+ if isinstance(network['nic_mapping'][CONTROLLER]['vlan'], int):
+ return network['nic_mapping'][CONTROLLER]['vlan']
+ elif isinstance(network['nic_mapping'][COMPUTE]['vlan'], int):
+ return network['nic_mapping'][COMPUTE]['vlan']
+ else:
+ return 'native'
+
+ def _set_tht_dir(self):
+ self.tht_dir = None
+ for key, prefix in TENANT_RESOURCES.items():