Uploaded image for project: 'neutron'
  1. neutron
  2. NEUTRON-108

Extra routes are not supported

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • None
    • Multiple
    • General
    • 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": [

      { "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

            thapar Vishal Thapar
            thapar Vishal Thapar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: