Reduce minimum mgmt ip range for subcloud
For Distributed Cloud, reduce minimum mgmt ip range upon subcloud add from 8 to 5. Story: 2002869 Task: 22819 Change-Id: I05e8ddfbf4adfe723d75a4553905bf05ea107a07 Signed-off-by: Jack Ding <jack.ding@windriver.com>
This commit is contained in:
parent
9c17628f19
commit
17f1c84f7e
|
@ -346,9 +346,16 @@ class ConfigValidator(object):
|
|||
# Management network configuration
|
||||
mgmt_prefix = NETWORK_PREFIX_NAMES[self.naming_type][MGMT_TYPE]
|
||||
self.mgmt_network = Network()
|
||||
|
||||
if self.config_type == SUBCLOUD_CONFIG:
|
||||
min_addresses = 5
|
||||
else:
|
||||
min_addresses = 8
|
||||
|
||||
try:
|
||||
self.mgmt_network.parse_config(self.conf, self.config_type,
|
||||
MGMT_TYPE, min_addresses=8,
|
||||
MGMT_TYPE,
|
||||
min_addresses=min_addresses,
|
||||
multicast_addresses=16,
|
||||
naming_type=self.naming_type)
|
||||
except ConfigFail:
|
||||
|
|
|
@ -553,7 +553,7 @@ def configure_region(config_file, config_type=REGION_CONFIG):
|
|||
|
||||
# Bring up management interface to allow us to reach Region 1
|
||||
print "Configuring management interface... ",
|
||||
configure_management_interface(region_config)
|
||||
configure_management_interface(region_config, config_type=config_type)
|
||||
print "DONE"
|
||||
|
||||
# Get token from keystone
|
||||
|
|
|
@ -54,9 +54,15 @@ def configure_management_interface(region_config, config_type=REGION_CONFIG):
|
|||
naming_type = HP_NAMES
|
||||
else:
|
||||
naming_type = DEFAULT_NAMES
|
||||
|
||||
if config_type == SUBCLOUD_CONFIG:
|
||||
min_addresses = 5
|
||||
else:
|
||||
min_addresses = 8
|
||||
try:
|
||||
mgmt_network.parse_config(region_config, config_type, MGMT_TYPE,
|
||||
min_addresses=8, naming_type=naming_type)
|
||||
min_addresses=min_addresses,
|
||||
naming_type=naming_type)
|
||||
except ConfigFail:
|
||||
raise
|
||||
except Exception as e:
|
||||
|
|
Loading…
Reference in New Issue