'Parses network interface MAC addresses from the provided domain.'

def _get_mac_addresses_for_domain(self, domain):

    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
