def get_bridgedomains(yaml):
    """Return a list of all bridgedomains."""
    ret = []
    if not "bridgedomains" in yaml:
        return ret
    for ifname, _iface in yaml["bridgedomains"].items():
        ret.append(ifname)
    return ret