Generate tree structure connections for network devices.