L3 agent extensions are part of a generalized L2/L3 extension framework. See agent extensions.
The L3 agent extension API object includes several methods that expose router information to L3 agent extensions:
#. get_routers_in_project
#. get_router_hosting_port
#. is_router_in_namespace