summaryrefslogtreecommitdiffstats
path: root/apex/settings/deploy_settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'apex/settings/deploy_settings.py')
-rw-r--r--apex/settings/deploy_settings.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/apex/settings/deploy_settings.py b/apex/settings/deploy_settings.py
index eec98225..c05922bf 100644
--- a/apex/settings/deploy_settings.py
+++ b/apex/settings/deploy_settings.py
@@ -24,7 +24,8 @@ REQ_DEPLOY_SETTINGS = ['sdn_controller',
'gluon',
'rt_kvm',
'os_version',
- 'l2gw']
+ 'l2gw',
+ 'sriov']
OPT_DEPLOY_SETTINGS = ['performance',
'vsperf',
@@ -116,6 +117,11 @@ class DeploySettings(dict):
raise DeploySettingsException(
"Invalid ODL version: {}".format(self[deploy_options][
'odl_version']))
+ elif req_set == 'sriov':
+ if self['deploy_options'][req_set] is True:
+ raise DeploySettingsException(
+ "Invalid SRIOV interface name: {}".format(
+ self['deploy_options']['sriov']))
if self['deploy_options']['odl_version'] == 'oxygen':
self['deploy_options']['odl_version'] = 'master'