'Returns a list of all network interfaces for this domain.'

def get_interfaces(self):

    doc = None
    try:
        doc = etree.fromstring(self._encoded_xml)
    except Exception:
        return []
    interfaces = []
    nodes = doc.findall('./devices/interface/target')
    for target in nodes:
        interfaces.append(target.get('dev'))
    return interfaces
