aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTaseer Ahmed <taseer94@gmail.com>2018-02-27 09:44:39 +0500
committerTaseer Ahmed <taseer94@gmail.com>2018-02-27 10:19:14 +0500
commitb4f529f1ae6d95c1bfb9a2357ceb36fa3f7eb987 (patch)
treec44afc0028bdcefdd2893cef7855e1ed26aadc80
parent66901a6c13ab1359161242a967f8d5b8d99ee4cb (diff)
Add SUT option in CLI
Change-Id: I43063793497ebdc8b2383c23739eb89df1ffa74b Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
-rw-r--r--qtip/cli/commands/cmd_project.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/qtip/cli/commands/cmd_project.py b/qtip/cli/commands/cmd_project.py
index 2836fa69..11fa63e5 100644
--- a/qtip/cli/commands/cmd_project.py
+++ b/qtip/cli/commands/cmd_project.py
@@ -59,7 +59,16 @@ def cli():
help='Host configured for ssh client or IP addresses and domain name')
@click.option('--scenario',
help='OPNFV scenario')
-def create(project_name, project_template, pod_name, installer_type, installer_host, scenario):
+@click.option('--sut',
+ prompt='System Under Test type',
+ help='Type of system can be vnf')
+def create(project_name,
+ project_template,
+ pod_name,
+ installer_type,
+ installer_host,
+ scenario,
+ sut):
qtip_generator_role = os.path.join(utils.QTIP_ANSIBLE_ROLES, 'qtip-generator')
extra_vars = {
'qtip_package': utils.QTIP_PACKAGE,
@@ -69,7 +78,8 @@ def create(project_name, project_template, pod_name, installer_type, installer_h
'pod_name': pod_name,
'installer_type': installer_type,
'installer_host': installer_host,
- 'scenario': scenario
+ 'scenario': scenario,
+ 'sut': sut
}
os.system("ANSIBLE_ROLES_PATH={roles_path} ansible-playbook"
" -i {hosts}"