controller calls BFS after creating topology.