def METHOD_NAME(facts, macaddress):
    interfaces = facts['interfaces']
    for interface in interfaces:
        if interface == 'lo':
            continue
        if facts.get(interface, {}).get('macaddress', None) == macaddress:
            return facts[interface]
    raise ValueError("could not find interface with mac: " + macaddress)