summaryrefslogtreecommitdiffstats
path: root/apex/settings/deploy_settings.py
diff options
context:
space:
mode:
authorRicardo Noriega <rnoriega@redhat.com>2018-02-12 12:58:14 +0100
committerRicardo Noriega <rnoriega@redhat.com>2018-03-15 21:12:34 +0100
commit974993a17188f10acd6a1f9b2f48002b9c77ef24 (patch)
tree8c269c3fe710f6687bcbf6a0a45f3a3112db06da /apex/settings/deploy_settings.py
parent67e7b3c76402445d7e62d5953d661794ec1f7c6d (diff)
Adding SRIOV scenario
This scenario should enable SRIOV interfaces to be used by Neutron. Only will be supported in baremetal deployments with SRIOV capable NICs. The name of the interface must be known in advance and the physnet of the SRIOV network is set as nfv_sriov. Change-Id: Ie4295413e0be2197bd9ada4f887f6b47cd486765 Signed-off-by: Ricardo Noriega <rnoriega@redhat.com>
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'