REST: getting switches connected