summaryrefslogtreecommitdiffstats
path: root/qtip/cli/commands
diff options
context:
space:
mode:
authorzhihui wu <wu.zhihui1@zte.com.cn>2016-11-18 08:32:12 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-11-18 08:32:13 +0000
commit3fe85ce6a6a19e5906e325370e6e6db16ec9d41e (patch)
tree30aa4c78d9eba869a0d687a23772f554a847addf /qtip/cli/commands
parent1de0941e0b7d6b3a2663bb5ee058d7087130d203 (diff)
parenta28cc39929bef8027300c158d6c4804c0f55db75 (diff)
Merge changes from topics 'fix', 'cli'
* changes: Bugfix: Correct the path in setup and entry points Ansible related commands in its own module.
Diffstat (limited to 'qtip/cli/commands')
-rw-r--r--qtip/cli/commands/cmd_ansible.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/qtip/cli/commands/cmd_ansible.py b/qtip/cli/commands/cmd_ansible.py
index 001185a3..857e68e2 100644
--- a/qtip/cli/commands/cmd_ansible.py
+++ b/qtip/cli/commands/cmd_ansible.py
@@ -30,3 +30,32 @@ class Ansible:
def status(self):
click.echo("check connectivity")
pass
+
+
+@click.group()
+def cli():
+ pass
+
+_ansible = Ansible()
+
+
+@cli.group()
+@click.pass_context
+def ansible(ctx):
+ pass
+
+
+@ansible.command('prepare', help="Prepares the ansible environment. "
+ "This step is needed run benchmarks.")
+def ansible_prepare():
+ _ansible.prepare()
+
+
+@ansible.command('show', help="Shows the current ansible configuration.")
+def ansible_show():
+ _ansible.show()
+
+
+@ansible.command('status', help="Checks if ansible still connects to hosts.")
+def ansible_status():
+ _ansible.status()