Neutron: "List routers" doesn't show fully parameters

Bug #1529546 reported by Cao Xuan Hoang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-api-site
Fix Released
Low
Cao Xuan Hoang

Bug Description

Networking API v2.0 extensions (Layer-3 networking): http://developer.openstack.org/api-ref-networking-v2-ext.html#listRouters

Issue: Lists logical routers that are accessible to the tenant who submits the request that response parameters table and JSON response doesn't show fully parameters (not has "availability_zone_hints" and "availability_zones" attributes).
For example:
Current:
{
    "routers": [
        {
            "status": "ACTIVE",
            "external_gateway_info": null,
            "name": "second_routers",
            "admin_state_up": true,
            "tenant_id": "6b96ff0cb17a4b859e1e575d221683d3",
            "routes": [],
            "id": "7177abc4-5ae9-4bb7-b0d4-89e94a4abf3b"
        },
        {
            "status": "ACTIVE",
            "external_gateway_info": {
                "network_id": "3c5bcddd-6af9-4e6b-9c3e-c153e521cab8",
                "external_fixed_ips": [
                    {
                        "subnet_id": "255.255.255.0",
                        "ip": "192.168.10.2"
                    }
                ]
            },
            "name": "router1",
            "admin_state_up": true,
            "tenant_id": "33a40233088643acb66ff6eb0ebea679",
            "routes": [],
            "id": "a9254bdb-2613-4a13-ac4c-adc581fba50d"
        }
    ]
}

It should be updated as below:
{
    "routers": [
        {
            "status": "ACTIVE",
            "external_gateway_info": null,
            "availability_zone_hints": [ ],
            "availability_zones": [
                "nova"
            ],
            "name": "second_routers",
            "admin_state_up": true,
            "tenant_id": "6b96ff0cb17a4b859e1e575d221683d3",
            "routes": [],
            "id": "7177abc4-5ae9-4bb7-b0d4-89e94a4abf3b"
        },
        {
            "status": "ACTIVE",
            "external_gateway_info": {
                "network_id": "3c5bcddd-6af9-4e6b-9c3e-c153e521cab8",
                "external_fixed_ips": [
                    {
                        "subnet_id": "255.255.255.0",
                        "ip": "192.168.10.2"
                    }
                ]
            },
            "availability_zone_hints": [ ],
            "availability_zones": [
                "nova"
            ],
            "name": "router1",
            "admin_state_up": true,
            "tenant_id": "33a40233088643acb66ff6eb0ebea679",
            "routes": [],
            "id": "a9254bdb-2613-4a13-ac4c-adc581fba50d"
        }
    ]
}

Tags: neutron
Cao Xuan Hoang (hoangcx)
Changed in openstack-api-site:
assignee: nobody → Cao Xuan Hoang (hoangcx)
Atsushi SAKAI (sakaia)
tags: added: neutron
Changed in openstack-api-site:
status: New → Confirmed
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/261931

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

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

commit 3c391528e1b0ec1ec710d919ec4db0c7c3b35d75
Author: Cao Xuan Hoang <email address hidden>
Date: Mon Dec 28 15:26:24 2015 +0700

    Neutron: "List routers" doesn't show fully parameters

    This patch adds "availability_zone_hints" and "availability_zones"
    attributes into response parameters of
    list/create/update/show routers api

    Change-Id: I8f8e61080687492e06699b4c346f4509904b2bf2
    Co-Authored-By: Nguyen Phuong An <email address hidden>
    Closes-Bug: #1529546

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.