"router" object is not "xsd:string" but "xsd:dict" for Extra routes

Bug #1512664 reported by Yushiro FURUKAWA
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-api-site
Fix Released
Medium
Yushiro FURUKAWA

Bug Description

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

"router" object is set "xsd:string" but actually "xsd:dict".

[Response parameter]
$ curl -s -X PUT -d '{"router":{"name":"changed"}}' -H "x-auth-token: $TOKEN" localhost:9696/v2.0/routers/40709601-16ba-4a67-ac74-23f661995583| jq "."
{
  "router": {
    "status": "ACTIVE",
    "external_gateway_info": {
      "network_id": "ec2c25ad-1f5c-4570-a86b-aee6c03188e9",
      "enable_snat": true,
      "external_fixed_ips": [
        {
          "subnet_id": "af6df17f-cce9-4367-92f7-b8bfa9fb4c00",
          "ip_address": "172.24.4.2"
        },
        {
          "subnet_id": "172f4b8e-c036-4c1d-a540-063a1a06abdc",
          "ip_address": "2001:db8::3"
        }
      ]
    },
    "name": "changed",
    "admin_state_up": true,
    "tenant_id": "a4e3e32e28ab4587b7b5bf3877f5ba2d",
    "distributed": false,
    "routes": [],
    "ha": false,
    "id": "40709601-16ba-4a67-ac74-23f661995583"
  }
}

Tags: neutron
Changed in openstack-api-site:
assignee: nobody → Yushiro FURUKAWA (y-furukawa-2)
Atsushi SAKAI (sakaia)
Changed in openstack-api-site:
status: New → Confirmed
tags: added: neutron
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to api-site (master)

Fix proposed to branch: master
Review: https://review.openstack.org/241464

Changed in openstack-api-site:
status: Confirmed → In Progress
Tom Fifield (fifieldt)
Changed in openstack-api-site:
milestone: none → mitaka
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to api-site (master)

Reviewed: https://review.openstack.org/241464
Committed: https://git.openstack.org/cgit/openstack/api-site/commit/?id=eb302d7660c57730dfa0da792ae0ccf46a44db68
Submitter: Jenkins
Branch: master

commit eb302d7660c57730dfa0da792ae0ccf46a44db68
Author: Yushiro FURUKAWA <email address hidden>
Date: Wed Nov 4 13:03:23 2015 +0900

    Modify from "xsd:string" to "xsd:dict" for "router"

    In Extra routes API, the type of "router" object is set "xsd:string".
    This commit fixes the type of "router" to "xsd:dict".

    Change-Id: Ic8032536166f4c97eabcf79b51e0c24cba916a35
    Closes-Bug: #1512664

Changed in openstack-api-site:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.