neutron/releasenotes/notes/l3-agent-extensions-register-router-factory-46a86f845895f4f6.yaml
Yang Youseok ec875b42b6 Add router_factory to l3-agent and L3 extension API
Currently, most implementations override the L3NatAgent class itself
for their own logic since there is no proper interface to extend
RouterInfo class. This adds unnecessary complexity for developers
who just want to extend router mechanism instead of whole RPC.

Add a RouterFactory class that developer can registers RouterInfo class
and delegate it for RouterInfo creation. Seperate functions and variables
which currently used externally to abstract class from RouterInfo, so that
extension can use the basic interface.

Provide the router registration function to the l3 extension API so that
extension can extend RouterInfo itself which correspond to each features
(ha, distribtued, ha + distributed)

Depends-On: https://review.openstack.org/#/c/620348/
Closes-Bug: #1804634
Partially-Implements: blueprint openflow-based-dvr
Change-Id: I1eff726900a8e67596814ca9a5f392938f154d7b
2019-04-26 10:22:50 +09:00

11 lines
368 B
YAML

---
features:
- |
A new parameter ``router_factory`` has been added to
``neutron.agent.l3.L3AgentExtensionAPI``. Developers can register
``neutron.agent.l3.agent.RouterInfo`` class and delegate it for
``RouterInfo`` creation.
Extensions can extend ``RouterInfo`` itself which correspond to each
features (ha, distribtued, ha + distributed).