

def _get_mac_addresses_for_domain(self, domain):
    '\n        Parses network interface MAC addresses from the provided domain.\n        '
    xml = domain.XMLDesc()
    etree = ET.XML(xml)
    elems = etree.findall("devices/interface[@type='network']/mac")
    result = []
    for elem in elems:
        mac_address = elem.get('address')
        result.append(mac_address)
    return result

dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/libvirt_driver.py LibvirtNodeDriver._get_mac_addresses_for_domain/original