-
Bug
-
Resolution: Done
-
None
-
Multiple
-
None
-
Operating System: All
Platform: All
-
5137
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": [
]
}
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.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" :
}) from (pid=4250) sendjson /usr/local/lib/python2.7/dist-packages/networking_odl/common/client.py:60