Automating node discovery in a network