Generating networking config JSON for the hosts.