Info log does not contain any information about network namespace used for
command. This patch appends netns information.
Signed-off-by: Jan Tluka <jtluka(a)redhat.com>
---
lnst/Common/NetTestCommand.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lnst/Common/NetTestCommand.py b/lnst/Common/NetTestCommand.py
index 1e404bf..0ce8998 100644
--- a/lnst/Common/NetTestCommand.py
+++ b/lnst/Common/NetTestCommand.py
@@ -59,6 +59,9 @@ def str_command(command):
else:
raise RuntimeError("Unknown command type '%s'" %
command["type"])
+ if "netns" in command:
+ attrs.append("netns(%s)" % command["netns"])
+
return ", ".join(attrs)
class CommandException(Exception):
--
2.1.0
Show replies by date