L2Gateway creation for multiple segmentation ids for an interface input and output for rest api is not aligned

Bug #1439035 reported by Ashish Kumar Gupta
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-l2gw
Fix Released
High
selvakumar

Bug Description

create an l2gateway
stack@l2gwosc50:~$ lgc --device
name=d1,interface_names="i1|300;i3|400" --device name=d2,interface_names="i2|100#200" gwtest -v Created a new l2_gateway:
+-----------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+-----------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| devices | {"interfaces": [{"segmentation_id": 300, "name": "i1"}, {"segmentation_id": 400, "name": "i3"}], "id": "437ca139-6e0f-4248-9d94-e6717769e80d", "device_name": "d1"} |
| | {"interfaces": [{"segmentation_id": 100, "name": "i2"}, {"segmentation_id": "200", "name": "i2"}], "id": "45e9bb5c-1601-4fc3-95c1-ead5f57fcaa8", "device_name": "d2"} |
| id | 27e14aa5-8d57-4758-96a0-8ede20c7d6cc |
| name | gwtest |
| tenant_id | 18a47cd1e8b24527bb124621f0090018 |
+-----------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
Since the input is :
"l2_gateway": {"name": "gwtest", "devices": [{"interfaces":
[{"segmentation_id": ["300"], "name": "i1"}, {"segmentation_id": ["400"], "name": "i3"}], "device_name": "d1"}, {"interfaces": [{"segmentation_id": ["100", "200"], "name": "i2"}], "device_name": "d2"}]}} Actual :
Output :
RESP BODY: {"l2_gateway": {"tenant_id":
"18a47cd1e8b24527bb124621f0090018", "id": "27e14aa5-8d57-4758-96a0-8ede20c7d6cc", "devices": [{"interfaces": [{"segmentation_id": 300, "name": "i1"}, {"segmentation_id": 400, "name": "i3"}], "id": "437ca139-6e0f-4248-9d94-e6717769e80d", "device_name": "d1"}, {"interfaces": [{"segmentation_id": 100, "name": "i2"}, {"segmentation_id": "200", "name": "i2"}], "id": "45e9bb5c-1601-4fc3-95c1-ead5f57fcaa8", "device_name": "d2"}], "name": "gwtest"}} Expected output:
Output :
{"l2_gateway": {"tenant_id": "18a47cd1e8b24527bb124621f0090018", "id": "27e14aa5-8d57-4758-96a0-8ede20c7d6cc", "devices": [{"interfaces": [{"segmentation_id": 300, "name": "i1"}, {"segmentation_id": 400,
"name": "i3"}], "id": "437ca139-6e0f-4248-9d94-e6717769e80d", "device_name": "d1"}, {"interfaces": [{"segmentation_id": [100,200], "name": "i2"}], "id": "45e9bb5c-1601-4fc3-95c1-ead5f57fcaa8", "device_name": "d2"}], "name": "gwtest"}}

Changed in networking-l2gw:
status: New → In Progress
assignee: nobody → selvakumar (selvakumar-nms)
Maruti Kamat (marutik)
Changed in networking-l2gw:
importance: Undecided → High
Revision history for this message
selvakumar (selvakumar-nms) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-l2gw (master)

Reviewed: https://review.openstack.org/174790
Committed: https://git.openstack.org/cgit/stackforge/networking-l2gw/commit/?id=fd6e93e6bb7f2cef789e98bfe4384bc3d1f14fe8
Submitter: Jenkins
Branch: master

commit fd6e93e6bb7f2cef789e98bfe4384bc3d1f14fe8
Author: Selvakumar S <email address hidden>
Date: Fri Apr 17 02:55:32 2015 -0700

    L2GW creation REST API output mismatch with input

    L2Gateway creation for multiple segmentation ids for an interface input and output for rest api is not aligned.
    This defect found only in case of user passes multiple segmentation id .

    Change-Id: Ie615afbe71dc0bd746fe475a932ee0143ccebfe0
    Closes-Bug: #1439035

Changed in networking-l2gw:
status: In Progress → Fix Committed
Changed in networking-l2gw:
status: Fix Committed → 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.