Public bug reported:

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

** Affects: python-openstackclient (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1936419

Title:
  API does not support limits parameter

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-openstackclient/+bug/1936419/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to