From: Jiri Pirko <jiri(a)mellanox.com>
If task needs to know machine id.
Signed-off-by: Jiri Pirko <jiri(a)mellanox.com>
---
lnst/Controller/Task.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lnst/Controller/Task.py b/lnst/Controller/Task.py
index e354180..3033960 100644
--- a/lnst/Controller/Task.py
+++ b/lnst/Controller/Task.py
@@ -190,6 +190,9 @@ class HostAPI(object):
self._bg_id_seq = 0
+ def get_id(self):
+ return self._m.get_id()
+
def config(self, option, value, persistent=False, netns=None):
"""
Configure an option in /sys or /proc on the host.
--
2.4.3
Show replies by thread