1. A method of configuring a logical network in a datacenter comprising a plurality of host physical computing devices, a compute manager to configure one or more data compute nodes (DCNs) on virtualization software of each host, and a network manager, the method comprising: configuring, by the network manager, a logical network; providing, by the network manager, a read-only configuration construct of the logical network to the virtualization software of a set of hosts in the plurality of hosts; obtaining, by the compute manager, the read-only configuration construct of the logical network from the virtualization software of the set of hosts; and configuring, by the compute manager, a plurality of DCNs to connect to the logical network using the read only configuration construct of the logical network.