Sorting

The results of list operations can be ordered using the 'sort_key' and 'sort_dir' parameters. Currently sorting doesn't work with extended attributes of resource. The 'sort_key' and 'sort_dir' can be repeated, and the number of 'sort_key' and 'sort_dir' provided must be same. The sort_dir parameter indicates in which direction to sort. Acceptable values are 'asc' (ascending) and 'desc' (descending).

Sorting is optional feature of OpenStack Networking API, and it might be disabled. If sorting is disabled, the sorting parameters will be ignored.

If a particular plug-in does not support sorting operations, and sorting is enabled, the Networking API v2.0 will emulate the sorting behavior so that users can expect the same behavior regardless of the particular plug-in running in the background.

Unfortunately OpenStack Networking does provide a mechanism to tell users if specific plug-ins support or have enabled sorting.

Log a bug against this page


loading table of contents...