[dts] [PATCH 1/2] nics: fix issue when no driver bound to netdev
Yong Liu
yong.liu at intel.com
Sun Mar 13 13:44:27 CET 2016
Signed-off-by: Marvin Liu <yong.liu at intel.com>
diff --git a/nics/net_device.py b/nics/net_device.py
index 99e44ab..8a1f621 100644
--- a/nics/net_device.py
+++ b/nics/net_device.py
@@ -65,6 +65,9 @@ class NetDevice(object):
if self.nic_is_pf():
self.default_vf_driver = ''
+
+ self.intf_name = 'N/A'
+ self.intf2_name = None
self.get_interface_name()
self.socket = self.get_nic_socket()
@@ -150,7 +153,6 @@ class NetDevice(object):
self.intf_name = 'N/A'
else:
self.intf_name = out
- self.intf2_name = None
# not a complete fix for CX3.
if len(out.split()) > 1 and self.default_driver == 'mlx4_core':
--
1.9.3
More information about the dts
mailing list