From: Ondrej Lichtner <olichtne(a)redhat.com>
For some reason the ifi_type attribute was not set from the
update_netlink method. This commit fixes that.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
---
lnst/Slave/InterfaceManager.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/lnst/Slave/InterfaceManager.py b/lnst/Slave/InterfaceManager.py
index fc65ccc..8bb4553 100644
--- a/lnst/Slave/InterfaceManager.py
+++ b/lnst/Slave/InterfaceManager.py
@@ -289,6 +289,7 @@ class Device(object):
def update_netlink(self, nl_msg):
if self._if_index == nl_msg['index']:
+ self._ifi_type = nl_msg['ifi_type']
self._hwaddr = normalize_hwaddr(nl_msg.get_attr("IFLA_ADDRESS"))
self._name = nl_msg.get_attr("IFLA_IFNAME")
self._state = nl_msg.get_attr("IFLA_OPERSTATE")
--
2.1.0