[Bug 1936419] Re: API does not support limits parameter
Launchpad Bug Tracker
1936419 at bugs.launchpad.net
Mon May 2 14:42:27 UTC 2022
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: python-openstackclient (Ubuntu)
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to python-openstackclient in Ubuntu.
https://bugs.launchpad.net/bugs/1936419
Title:
API does not support limits parameter
Status in python-openstackclient package in Ubuntu:
Confirmed
Bug description:
The API only supports a list_all for networks.
"""Fetches a list of all networks for a project."""
# Pass filters in "params" argument to do_request
return self.list('networks', self.networks_path, retrieve_all,
**_params)
Needs additional function with acceptable limit params.
If I have 100 networks, all 100 networks are returned.
This affects both horizon and the cli.
openstack network list -f json --limit 1
usage: openstack network list [-h] [-f {csv,json,table,value,yaml}] [-c COLUMN] [--quote {all,minimal,none,nonnumeric}] [--noindent] [--max-width <integer>] [--fit-width] [--print-empty][--sort-column SORT_COLUMN] [--external | --internal] [--long] [--name <name>] [--enable | --disable] [--project <project>][--project-domain <project-domain>] [--share | --no-share] [--status <status>] [--provider-network-type <provider-network-type>][--provider-physical-network <provider-physical-network>] [--provider-segment <provider-segment>] [--agent <agent-id>] [--tags <tag>[,<tag>,...]][--any-tags <tag>[,<tag>,...]] [--not-tags <tag>[,<tag>,...]] [--not-any-tags <tag>[,<tag>,...]]
openstack network list: error: unrecognized arguments: --limit 1
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-openstackclient/+bug/1936419/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list