summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraiesmh08 <raiesmh08@gmail.com>2015-04-15 03:21:11 -0700
committerraiesmh08 <raiesmh08@gmail.com>2015-04-15 21:37:30 -0700
commit43c45b2b9dc6b5369556feb94431ed3e22185d34 (patch)
treeeb06523148d0eb930849166052c4d3f9e5d31777
parent7e4dcf76f5b3234ca40dc9ef12506d92ff48c752 (diff)
downloadtempest-lib-43c45b2b9dc6b5369556feb94431ed3e22185d34.tar.gz
Adding support for neutron-debug CLI.
This Patch adds code support for neutron-debug CLI command. Change-Id: Ief1b609392af954bfa45d175a817799c63f9fd7d
-rw-r--r--tempest_lib/cli/base.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/tempest_lib/cli/base.py b/tempest_lib/cli/base.py
index ec966ca..5717e07 100644
--- a/tempest_lib/cli/base.py
+++ b/tempest_lib/cli/base.py
@@ -285,6 +285,29 @@ class CLIClient(object):
return self.cmd_with_auth(
'neutron', action, flags, params, fail_ok, merge_stderr)
+ def neutron_debug(self, action, flags='', params='', fail_ok=False,
+ endpoint_type='publicURL', merge_stderr=False):
+ """Executes neutron-debug command for the given action.
+
+ :param action: the cli command to run using neutron
+ :type action: string
+ :param flags: any optional cli flags to use
+ :type flags: string
+ :param params: any optional positional args to use
+ :type params: string
+ :param fail_ok: if True an exception is not raised when the
+ cli return code is non-zero
+ :type fail_ok: boolean
+ :param endpoint_type: the type of endpoint for the service
+ :type endpoint_type: string
+ :param merge_stderr: if True the stderr buffer is merged into stdout
+ :type merge_stderr: boolean
+ """
+
+ return execute(
+ 'neutron-debug', action, flags, params, fail_ok, merge_stderr,
+ self.cli_dir)
+
def sahara(self, action, flags='', params='',
fail_ok=False, endpoint_type='publicURL', merge_stderr=True):
"""Executes sahara command for the given action.