Error unmarshaling enums

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

Bug Description

Currently enums are not unmarshaled correctly in example in bgp-request(address_families):

{
    "bgp-router": {
        "parent_type": "routing-instance",
        "fq_name": [
            "default-domain",
            "default-project",
            "ip-fabric",
            "__default__",
            "pawel.marchewka.novalocal"
        ],
        "uuid": null,
        "bgp_router_parameters": {
            "vendor": "contrail",
            "admin_down": false,
            "router_type": "control-node",
            "ipv6_gateway_address": null,
            "local_autonomous_system": null,
            "auth_data": null,
            "autonomous_system": 64512,
            "cluster_id": null,
            "address": "192.168.0.14",
            "source_port": null,
            "gateway_address": null,
            "identifier": "192.168.0.14",
            "hold_time": 0,
            "port": "179",
            "address_families": {
                "family": [
                    "route-target",
                    "inet-vpn",
                    "e-vpn",
                    "erm-vpn",
                    "inet6-vpn"
                ]
            }
        }
    }
}

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

Review in progress for https://review.opencontrail.org/46030
Submitter: Kamil (<email address hidden>)

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

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

commit 2611cb71a38b962447dd8e55cb5e5a9adf2b03e6
Author: Kamil Renczewski <email address hidden>
Date: Thu Sep 6 18:11:30 2018 +0200

Fix handling enum arrays for BgpRouter AddressFamilies

Adding methods to override schema

Change-Id: I33144ca2de3fd1cabdbf197ba51d70754befecbf
Closes-Bug: 1790463

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.