Extraroute Extension support for Nuage Plugin¶
Adding extraroute extension support to existing nuage networks’ Plugin
Current Nuage Plugin does not support Neutron’s extra-route extension. Nuage’s VSP supports this feature and the support for extension needs to be added in the plugin code.
Adding extension support code in Nuage plugin.
Data model impact¶
There are couple of extra tables which will be needed to support this. One is routerroutes which already exist in neutron. No schema changes required for that table. Second table is Nuage plugin specific. This will be added as part of the new code.
It could look like:
class RouterRoutesMapping(model_base.BASEV2, models_v2.Route): __tablename__ = 'routerroutes_mapping' router_id = Column(String(36), ForeignKey('routers.id', ondelete="CASCADE"), primary_key=True) nuage_route_id = Column(String(36))
migration script will need to be generated.
REST API impact¶
Other end user impact¶
Other deployer impact¶
Nuage’s VSP supports adding static-route to L3 Domain which fits nicely with extraroute extension supported by openstack’s neutron.
Following is a mapping of the neutron’s work-flow for nuage plugin:
Assume router1 exist. STEP1: neutron router-update router1 –routes type=dict list=true destination=18.104.22.168/24,nexthop=10.10.0.5 This will create a staticroute entry in l3-domain router1 in VSP
STEP2: neutron router-update router1 –routes type=dict list=true destination=22.214.171.124/24,nexthop=10.10.0.5 destination=126.96.36.199/24,nexthop=10.10.0.6 This will add one more staticroute to the same.
STEP3: neutron router-update router1 –routes type=dict list=true destination=188.8.131.52/24,nexthop=10.10.0.5 This will delete staticroute of STEP2.
Basically everytime you specify routes option it treats it as a new set of value. So sticking to that same behavior.
STEP4: neutron router-update router1 –routes action=clear Cleans up all the staticroute.
- Primary assignee:
Extension code in Nuage plugin Nuage Unit tests addition Nuage CI coverage addition
Unit Test coverage for extra-route extension within Nuage unit test Nuage CI will be modified to start supporting this extension tests