This method binds InterfaceAPI with corresponding Interface object and
will be used in upcoming PyRecipes implementation.
Signed-off-by: Jiri Prochazka <jprochaz(a)redhat.com>
---
lnst/Controller/Task.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lnst/Controller/Task.py b/lnst/Controller/Task.py
index 178d774..aef9ebf 100644
--- a/lnst/Controller/Task.py
+++ b/lnst/Controller/Task.py
@@ -537,6 +537,9 @@ class InterfaceAPI(object):
self._if = interface
self._host = host
+ def init_iface(self, interface):
+ self._if = interface
+
def get_id(self):
return self._if.get_id()
--
2.4.11