1. For a network controller, a method comprising: receiving configuration data, for a logical router managed by the network controller, that specifies at least one logical port for the logical router; automatically generating connected routes for the logical router based on network address ranges specified for the logical ports of the logical router; receiving a manually input static route for the logical router; and generating data tuples, for distribution to a plurality of managed network elements, based on the connected and static routes for the logical router in order for the plurality of managed network elements to implement the logical router.