use new API to add switch/host/link