Add SUT option in CLI 03/52703/2
authorTaseer Ahmed <taseer94@gmail.com>
Tue, 27 Feb 2018 04:44:39 +0000 (09:44 +0500)
committerTaseer Ahmed <taseer94@gmail.com>
Tue, 27 Feb 2018 05:19:14 +0000 (10:19 +0500)
Change-Id: I43063793497ebdc8b2383c23739eb89df1ffa74b
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
qtip/cli/commands/cmd_project.py

index 2836fa6..11fa63e 100644 (file)
@@ -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}"