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