From b4f529f1ae6d95c1bfb9a2357ceb36fa3f7eb987 Mon Sep 17 00:00:00 2001 From: Taseer Ahmed Date: Tue, 27 Feb 2018 09:44:39 +0500 Subject: Add SUT option in CLI Change-Id: I43063793497ebdc8b2383c23739eb89df1ffa74b Signed-off-by: Taseer Ahmed --- qtip/cli/commands/cmd_project.py | 14 ++++++++++++-- 1 file 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}" -- cgit 1.2.3-korg