horizon/openstack_dashboard/usage
MinSun af8a01b362 usage: Ensure to count resources of a given project
When retrieving resource usage, the current code calls subnet_list
twice for shared=False/True, but 'shared' attribute of subnet is
not defined in the Networking API and actually there is no need to
use it (even though it works as expected accidentally).

What we need here is to specify tenant_id as a query parameter
with a single API to limit the scope to a given project.

The same way can be used for network_list() and router_list() calls
and it is more efficient. By doing so, we now need only one
network_list() call.

Change-Id: I40d61ed9cbae4b083e4f3cec9caa269e92daf306
Closes-Bug: #1663170
2017-04-13 09:40:15 +00:00
..
__init__.py hacking: noqa cleanup in openstack_dashboard 2017-03-17 19:38:47 +00:00
base.py remove unused quotas code 2016-08-29 14:56:44 -06:00
quotas.py usage: Ensure to count resources of a given project 2017-04-13 09:40:15 +00:00
tables.py hacking: noqa cleanup in openstack_dashboard 2017-03-17 19:38:47 +00:00
views.py Add units in overview project page (limit summary) 2016-06-24 15:36:33 +00:00