[NEUTRON-108] Extra routes are not supported Created: 29/Jan/16  Updated: 30/Oct/17  Resolved: 11/Feb/16

Status: Resolved
Project: neutron
Component/s: General
Affects Version/s: Multiple
Fix Version/s: None

Type: Bug
Reporter: Vishal Thapar Assignee: Vishal Thapar
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 5137

 Description   

This spec http://specs.openstack.org/openstack/neutron-specs/specs/api/extra_routes.html adds support for adding static routes to a router object. This is supported in ODL_L3 plugin also. But these routes are not stored by NeutronNorthbound in MDSAL.

Steps to reproduce:
-------------------
1. Create neutron network, subnet and router and add interface in that subnet to router.
2. Add extra routes to router:
neutron router-update myrouter --routes type=dict list=true destination=100.0.0.0/24,nexthop=11.11.11.8

Expected behavior:
------------------
A get on MDSAL show show routes added to MDSAL.

Actual behavior:
----------------
stack@liberty-osc:~/devstack$ neutron router-show myrouter
-------------------------------------------------------------------------------+

Field Value

-------------------------------------------------------------------------------+

admin_state_up True
distributed False
external_gateway_info  
id d74a39ab-da42-4a27-bd3a-701a16f0955a
name myrouter
routes {"destination": "100.0.0.0/24", "nexthop": "11.11.11.8"}
status ACTIVE
tenant_id ba37d16d954f4e16bc5b6c78e41f55a5

-------------------------------------------------------------------------------+

Routes are not added to MDSAL:
{
"routers": [

{ "admin_state_up": true, "distributed": false, "external_gateway_info": null, "gw_port_id": null, "id": "d74a39ab-da42-4a27-bd3a-701a16f0955a", "name": "myrouter", "routes": [ "" ], "tenant_id": "ba37d16d954f4e16bc5b6c78e41f55a5" }

]
}

Relevant log entries in q-svc.log:
----------------------------------
2016-01-29 14:59:57.327 DEBUG networking_odl.common.client [req-49c04196-7d47-4b3d-863f-5861b9f687c9 admin ba37d16d954f4e16bc5b6c78e41f55a5] Sending METHOD (put) URL (http://192.168.56.1:8080/controller/nb/v2/neutron/routers/d74a39ab-da42-4a27-bd3a-701a16f0955a) JSON ({'router': {'external_gateway_info': None, 'name': u'myrouter', 'gw_port_id': None, 'admin_state_up': True, 'distributed': False, 'routes': [

{'nexthop': u'11.11.11.4', 'destination': u'100.0.0.0/24'}

,

{'nexthop': u'11.11.11.5', 'destination': u'100.0.0.0/24'}

]}}) from (pid=4250) sendjson /usr/local/lib/python2.7/dist-packages/networking_odl/common/client.py:48

2016-01-29 14:59:57.344 DEBUG networking_odl.common.client [req-49c04196-7d47-4b3d-863f-5861b9f687c9 admin ba37d16d954f4e16bc5b6c78e41f55a5] Got response ({
"router" :

{ "id" : "d74a39ab-da42-4a27-bd3a-701a16f0955a", "tenant_id" : "ba37d16d954f4e16bc5b6c78e41f55a5", "name" : "myrouter", "admin_state_up" : true, "external_gateway_info" : null, "distributed" : false, "gw_port_id" : null, "routes" : [ "" ] }

}) from (pid=4250) sendjson /usr/local/lib/python2.7/dist-packages/networking_odl/common/client.py:60



 Comments   
Comment by Isaku Yamahata [ 02/Feb/16 ]

According to the neutron API, the yang model itself is wrong.

http://developer.openstack.org/api-ref-networking-v2-ext.html#extraroute-ext

The patch is proposed at

https://git.opendaylight.org/gerrit/#/c/33846/

Comment by Stephen Kitt [ 03/Feb/16 ]

This also needs https://git.opendaylight.org/gerrit/#/c/33919/ for OVSDB.

Comment by Vishal Thapar [ 03/Feb/16 ]

VPNService: https://git.opendaylight.org/gerrit/#/c/33921/

Generated at Wed Feb 07 20:25:35 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.