API server should return "href" field for all resources

Bug #1803146 reported by Alexey Osorgin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
Fix Committed
Undecided
Alexey Osorgin

Bug Description

Currently API server is not returning "href" field in responses, however, it should.

This is +correct+ response from vnc_api:
{code:json}
{
    "virtual-networks": [
        {
            "href": "http://10.100.0.71:8082/virtual-network/41439468-3226-45d8-b6d7-0444b47549d5",
            "fq_name": [
                "default-domain",
                "k8s-default",
                "k8s-default-service-network"
            ],
            "uuid": "41439468-3226-45d8-b6d7-0444b47549d5"
        },
        {
            "href": "http://10.100.0.71:8082/virtual-network/71193eb3-5c8c-4be6-9598-5cd69ae67c87",
            "fq_name": [
                "default-domain",
                "default-project",
                "__link_local__"
            ],
            "uuid": "71193eb3-5c8c-4be6-9598-5cd69ae67c87"
        },
        {
            "href": "http://10.100.0.71:8082/virtual-network/34bba0ae-4817-41b6-87c7-9952ff3635d5",
            "fq_name": [
                "default-domain",
                "default-project",
                "ip-fabric"
            ],
            "uuid": "34bba0ae-4817-41b6-87c7-9952ff3635d5"
        },
        {
            "href": "http://10.100.0.71:8082/virtual-network/3c8b721a-9484-4f5a-ba4f-88072b16cabe",
            "fq_name": [
                "default-domain",
                "default-project",
                "default-virtual-network"
            ],
            "uuid": "3c8b721a-9484-4f5a-ba4f-88072b16cabe"
        },
        {
            "href": "http://10.100.0.71:8082/virtual-network/7c2c42e4-29b9-4186-8889-8aad712268f3",
            "fq_name": [
                "default-domain",
                "k8s-default",
                "k8s-default-pod-network"
            ],
            "uuid": "7c2c42e4-29b9-4186-8889-8aad712268f3"
        }
    ]
}
{code}

Changed in juniperopenstack:
assignee: nobody → Alexey Osorgin (aosorgin)
information type: Proprietary → Public
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/47639
Submitter: Alexey Osorgin (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/47639
Committed: http://github.com/Juniper/contrail/commit/3e8b7e96cfe284f02702bae40aa60e4cd200a153
Submitter: Zuul v3 CI (<email address hidden>)
Branch: master

commit 3e8b7e96cfe284f02702bae40aa60e4cd200a153
Author: Alexey Osorgin <email address hidden>
Date: Thu Nov 15 20:57:35 2018 +0300

Extend reply objects with 'href' property

Change-Id: I2800d12c460e1d5dc1e0914e322fd4078d814cb3
Closes-Bug: #1803146

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/48389
Submitter: Alexey Osorgin (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Review in progress for https://review.opencontrail.org/48389
Submitter: Jozef Woloch (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/48389
Committed: http://github.com/Juniper/contrail/commit/4cb604fb5013d4bfa9da03ac0c6c837eb8acb6e1
Submitter: Zuul v3 CI (<email address hidden>)
Branch: master

commit 4cb604fb5013d4bfa9da03ac0c6c837eb8acb6e1
Author: Jozef Woloch <email address hidden>
Date: Tue Feb 12 08:38:11 2019 +0100

Apply hrefs in references and children

Change-Id: Ide5c8df6fb28d501c9a265d670c60632eebd1141
Closes-Bug: #1803146

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.