

def get_interfaces(self):
    'Returns a list of all network interfaces for this domain.'
    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

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/virt/libvirt/guest.py Guest.get_interfaces/original