X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=lib%2Fpython%2Fapex%2Fdeploy_settings.py;h=2a9d5a67caf3d0dd3b031a9bd53f6e52fc8ef072;hb=8f38df4d1c7be93822f2f8ec7f385d98d172a613;hp=3133d7f87a053d3ded8ea63fefa314f0efab99df;hpb=c055fcef6a23ed15ae42dd6c68005d48ed3c0a96;p=apex.git diff --git a/lib/python/apex/deploy_settings.py b/lib/python/apex/deploy_settings.py index 3133d7f8..2a9d5a67 100644 --- a/lib/python/apex/deploy_settings.py +++ b/lib/python/apex/deploy_settings.py @@ -22,9 +22,10 @@ REQ_DEPLOY_SETTINGS = ['sdn_controller', 'sfc', 'vpn', 'vpp', - 'ceph'] + 'ceph', + 'gluon'] -OPT_DEPLOY_SETTINGS = ['performance', 'vsperf', 'ceph_device'] +OPT_DEPLOY_SETTINGS = ['performance', 'vsperf', 'ceph_device', 'yardstick'] VALID_ROLES = ['Controller', 'Compute', 'ObjectStorage'] VALID_PERF_OPTS = ['kernel', 'nova', 'vpp'] @@ -69,6 +70,15 @@ class DeploySettings(dict): if not isinstance(deploy_options, dict): raise DeploySettingsException("deploy_options should be a list") + if ('gluon' in self['deploy_options'] and + 'vpn' in self['deploy_options']): + if (self['deploy_options']['gluon'] is True and + self['deploy_options']['vpn'] is False): + raise DeploySettingsException( + "Invalid deployment configuration: " + "If gluon is enabled, " + "vpn also needs to be enabled") + for setting, value in deploy_options.items(): if setting not in REQ_DEPLOY_SETTINGS + OPT_DEPLOY_SETTINGS: raise DeploySettingsException("Invalid deploy_option {} "