From: Ondrej Lichtner <olichtne(a)redhat.com>
The Interface class will now store information about the driver,
received from the Slave via update messages and from get_if_data calls
that will be added in future commits.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
---
lnst/Controller/Machine.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lnst/Controller/Machine.py b/lnst/Controller/Machine.py
index dd4c5f9..bce9ef1 100644
--- a/lnst/Controller/Machine.py
+++ b/lnst/Controller/Machine.py
@@ -517,6 +517,7 @@ class Interface(object):
self._netns = None
self._peer = None
self._mtu = None
+ self._driver = None
def get_id(self):
return self._id
@@ -641,6 +642,7 @@ class Interface(object):
self.set_hwaddr(if_data["hwaddr"])
self.set_devname(if_data["devname"])
self._mtu = if_data["mtu"]
+ self._driver = if_data["driver"]
def _get_config(self):
config = {"hwaddr": self._hwaddr, "type": self._type,
--
2.1.0