remove switches
remove links
remove rootIndex
get root dpid