diff options
author | Peter Mikus <pmikus@cisco.com> | 2018-07-20 13:07:12 +0000 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2018-09-05 13:49:38 +0000 |
commit | 89620b26d6bbf3dd9d9707851d8d140471d40b56 (patch) | |
tree | cd22606feabb7190d6a612b46e8132fcda1d0f04 /resources/libraries/python/topology.py | |
parent | b456176a07ae1a3721407693d75931db6b1cd14e (diff) |
CSIT-1205 Create AVF driver test
- Add L1 KWs for SR-IOV handling (init Vfs, remove Vfs, ...)
- Cleanup L1 KWs for SR-IOV bind/unbind/pci_get/...
- Add L2 KWs for Test Setup/Teardown, L2patch, Create AVF interface
- Add sample L2patch test fox x710, xxv710
Change-Id: If17077877455a14043617d8ea0d06cbe47b469e3
Signed-off-by: Peter Mikus <pmikus@cisco.com>
Diffstat (limited to 'resources/libraries/python/topology.py')
-rw-r--r-- | resources/libraries/python/topology.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/resources/libraries/python/topology.py b/resources/libraries/python/topology.py index 82516beb6b..d31d17830c 100644 --- a/resources/libraries/python/topology.py +++ b/resources/libraries/python/topology.py @@ -185,6 +185,19 @@ class Topology(object): node['interfaces'][iface_key]['mac_address'] = str(mac_address) @staticmethod + def update_interface_pci_address(node, iface_key, pci_address): + """Update pci_address on the interface from the node. + + :param node: Node to update PCI on. + :param iface_key: Topology key of the interface. + :param pci_address: PCI address. + :type node: dict + :type iface_key: str + :type pci_address: str + """ + node['interfaces'][iface_key]['pci_address'] = str(pci_address) + + @staticmethod def update_interface_vhost_socket(node, iface_key, vhost_socket): """Update vhost socket name on the interface from the node. |