def get_bridge_interfaces(yaml):
    """Returns a list of all interfaces that are bridgedomain members"""

    ret = []
    if not "bridgedomains" in yaml:
        return ret

    for _ifname, iface in yaml["bridgedomains"].items():
        if "interfaces" in iface:
            ret.extend(iface["interfaces"])

    return ret