def _get_mac_address_from_sysfs(ifname):
    """
    Fetch the mac address of an interface from sysfs.
    This is a workaround for https://bugzilla.redhat.com/1786937.
    """
    mac = None
    sysfs_path = f'/sys/class/net/{ifname}/address'
    try:
        with open(sysfs_path) as f:
            mac = f.read().rstrip('\n')
    except FileNotFoundError:
        pass
    return mac
