[dts] [PATCH V2] Framework/dut: fix parameter error on some OS
Lijuan Tu
lijuanx.a.tu at intel.com
Thu Jan 19 06:54:36 CET 2017
FreeBSD not support virtualization cases.
Add one blank function for FreeBSD OS to workaround this issue
Signed-off-by: Lijuan Tu <lijuanx.a.tu at intel.com>
---
nics/net_device.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/nics/net_device.py b/nics/net_device.py
index bbe4bed..a2697b3 100644
--- a/nics/net_device.py
+++ b/nics/net_device.py
@@ -548,6 +548,13 @@ class NetDevice(object):
self, 'get_sriov_vfs_pci_%s' % self.__get_os_type())
return get_sriov_vfs_pci(self.domain_id, self.bus_id, self.devfun_id, self.current_driver)
+ def get_sriov_vfs_pci_freebsd(self, bus_id, devfun_id, driver):
+ """
+ FreeBSD not support virtualization cases now.
+ We can implement it later.
+ """
+ pass
+
def get_sriov_vfs_pci_linux(self, domain_id, bus_id, devfun_id, driver):
"""
Get all SRIOV VF pci bus of specified pci device on linux.
--
1.9.3
More information about the dts
mailing list