Extending InterfaceAPI to be able to get the device type.
Signed-off-by: Jan Tluka <jtluka(a)redhat.com>
---
lnst/Controller/Machine.py | 3 +++
lnst/Controller/Task.py | 3 +++
2 files changed, 6 insertions(+)
diff --git a/lnst/Controller/Machine.py b/lnst/Controller/Machine.py
index ab4dd0c..2ed6363 100644
--- a/lnst/Controller/Machine.py
+++ b/lnst/Controller/Machine.py
@@ -542,6 +542,9 @@ class Interface(object):
def get_id(self):
return self._id
+ def get_type(self):
+ return self._type
+
def get_driver(self):
return self._driver
diff --git a/lnst/Controller/Task.py b/lnst/Controller/Task.py
index db4ef9c..317d34b 100644
--- a/lnst/Controller/Task.py
+++ b/lnst/Controller/Task.py
@@ -362,6 +362,9 @@ class InterfaceAPI(object):
def get_id(self):
return self._if.get_id()
+ def get_type(self):
+ return self._if.get_type()
+
def get_network(self):
return self._if.get_network()
--
2.4.3