This commit adds the method get_type() to the NetTestCommand class for
accessing the type of the command in question.
Signed-off-by: Radek Pazdera <rpazdera(a)redhat.com>
---
lnst/Common/NetTestCommand.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/lnst/Common/NetTestCommand.py b/lnst/Common/NetTestCommand.py
index 57a9350..208e391 100644
--- a/lnst/Common/NetTestCommand.py
+++ b/lnst/Common/NetTestCommand.py
@@ -167,6 +167,9 @@ class NetTestCommand:
def get_connection_pipe(self):
return self._connection_pipe
+ def get_type(self):
+ return self._command["type"]
+
class NetTestCommandContext:
def __init__(self):
self._dict = {}
--
1.7.7.6