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 at the network controller for the logical router based on network address ranges specified for the logical ports of the logical router; at the network controller, receiving a manually input static route for the logical router; generating data tuples based on the connected and static routes for the logical router; and distributing the generated data tuples from the network controller to a plurality of managed network elements in order for the managed network elements to implement the logical router by processing packets according to the connected and static routes.