diff options
author | Matt Riedemann <mriedem@us.ibm.com> | 2016-01-21 10:53:06 -0800 |
---|---|---|
committer | Matt Riedemann <mriedem@us.ibm.com> | 2016-02-09 09:26:25 -0800 |
commit | 6e6a8816083c0172988a26e70da027e6f9501db6 (patch) | |
tree | 4123f1bb0eea7330bb2542a9977a1db6e7e36c68 /nova/pci | |
parent | 704de0a0a441caa9872a42b968eeb8cff84809a4 (diff) | |
download | nova-6e6a8816083c0172988a26e70da027e6f9501db6.tar.gz |
libvirt: implement LibvirtConfigGuestInterface.parse_dom
This is needed by a follow on change that needs to find an
interface in the config by a given MAC address.
Change-Id: I6b9ab20570e1db832cc2eec94cbf69dddf4ef3d6
Partial-Bug: #1536671
Diffstat (limited to 'nova/pci')
-rw-r--r-- | nova/pci/utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nova/pci/utils.py b/nova/pci/utils.py index 80b8c35f8b..e10a303156 100644 --- a/nova/pci/utils.py +++ b/nova/pci/utils.py @@ -69,6 +69,10 @@ def get_pci_address_fields(pci_addr): return (domain, bus, slot, func) +def get_pci_address(domain, bus, slot, func): + return '%s:%s:%s.%s' % (domain, bus, slot, func) + + def get_function_by_ifname(ifname): """Given the device name, returns the PCI address of a device and returns True if the address in a physical function. |