def get_interface_by_mac(self, mac):

        if mac:
            interfaces = self.get_all_devices(
                vconfig.LibvirtConfigGuestInterface)
            for interface in interfaces:
                if interface.mac_addr == mac:
                    return interface
Description:
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/virt/libvirt/guest.py/Guest.get_interface_by_mac--crossover with--dataset/ETHPy150Open filipp/py-gsxws/gsxws/comptia.py/CompTIA.fetch