get switch and host, get links