diff options
author | Vratko Polak <vrpolak@cisco.com> | 2019-06-14 10:30:40 +0200 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2019-06-14 20:30:52 +0000 |
commit | 6b743ce4b5d67fdc64cafac13f551e1a8436cd7b (patch) | |
tree | f2db399583b17ec66ce0827b50b6d402a55a7793 /resources/libraries/python/InterfaceUtil.py | |
parent | 15bef10b28733e4871459f3ec8c7adbf30e2ff96 (diff) |
Add hsw drivers to topology and check against AVF
Change-Id: Ifcc1dcdb3a0b4a7c62e4a41e5b3d016b276e93be
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
Diffstat (limited to 'resources/libraries/python/InterfaceUtil.py')
-rw-r--r-- | resources/libraries/python/InterfaceUtil.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/resources/libraries/python/InterfaceUtil.py b/resources/libraries/python/InterfaceUtil.py index 5617c472f4..6e001243db 100644 --- a/resources/libraries/python/InterfaceUtil.py +++ b/resources/libraries/python/InterfaceUtil.py @@ -1680,6 +1680,7 @@ class InterfaceUtil(object): :type osi_layer: str :returns: Virtual Function topology interface keys. :rtype: list + :raises RuntimeError: If a reason preventing initialization is found. """ ssh = SSH() ssh.connect(node) @@ -1689,6 +1690,10 @@ class InterfaceUtil(object): pf_mac_addr = Topology.get_interface_mac(node, ifc_key).split(":") uio_driver = Topology.get_uio_driver(node) kernel_driver = Topology.get_interface_driver(node, ifc_key) + if kernel_driver != "i40e": + raise RuntimeError( + "AVF needs i40e driver, not {driver} at node {host} ifc {ifc}"\ + .format(driver=kernel_driver, host=node["host"], ifc=ifc_key)) current_driver = DUTSetup.get_pci_dev_driver( node, pf_pci_addr.replace(':', r'\:')) |