yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #72540
[Bug 1763161] Re: Segment ignore sorting parameters
Reviewed: https://review.openstack.org/561361
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=43d451d86f8c1f9dff2a8580089a631680bb0c09
Submitter: Zuul
Branch: master
commit 43d451d86f8c1f9dff2a8580089a631680bb0c09
Author: Hongbin Lu <hongbin.lu@xxxxxxxxxx>
Date: Fri Apr 13 21:47:02 2018 +0000
Enable sorting and pagination for segments
It looks the sorting and pagination are natively supported in
segment db layer but the segment controller doesn't mark these
features as supported. This patch fixes it.
Change-Id: I325396bb0256196ee6c6fc42cc812a0c75ae3827
Closes-Bug: #1763161
** Changed in: neutron
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1763161
Title:
Segment ignore sorting parameters
Status in neutron:
Fix Released
Bug description:
Send a request to get a list of network segments sorted by name but
the response doesn't seem to be sorted (below is an example). Segment
should support sorting to align with other API resources.
$ curl -g -s -X GET "http://10.0.0.15:9696/v2.0/segments?sort_dir=asc&sort_key=name" -H "Accept: application/json" -H "X-Auth-Token: $TOKEN" | jq .
{
"segments": [
{
"name": null,
"network_id": "02dd8479-ef26-4398-a102-d19d0a7b3a1f",
"segmentation_id": 24,
"network_type": "vxlan",
"physical_network": null,
"id": "0a046acf-594f-4488-80a5-89b01f4c0f7d",
"description": null
},
{
"name": "segment1",
"network_id": "a650210a-6ad6-44fc-8a17-fee8829352ca",
"segmentation_id": 55,
"network_type": "vxlan",
"physical_network": null,
"id": "d0cc2af3-903b-4451-9d4a-8d7d8216fa16",
"description": null
},
{
"name": "segment2",
"network_id": "a650210a-6ad6-44fc-8a17-fee8829352ca",
"segmentation_id": 2016,
"network_type": "vxlan",
"physical_network": null,
"id": "5a0e733b-bc40-4225-9dab-729338107d1a",
"description": null
},
{
"name": null,
"network_id": "ad93b454-4836-46c7-bfc8-64a20a2ab95a",
"segmentation_id": null,
"network_type": "flat",
"physical_network": "public",
"id": "6131da02-f769-4b31-997d-cefa46c5198c",
"description": null
}
]
}
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1763161/+subscriptions
References