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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user