python-neutronclient/releasenotes/notes/show-tenant-id-admin-listing-dc13ee7eb889d418.yaml
Akihiro Motoki 9dbdced729 Show tenant_id in *-list by admin
If API call is done by admin, neutron API returns all resources
from all tenants. We received several times a request that
tenant_id is useful in such case.

This patch displays tenant_id column when *-list is invoked
by a user with 'admin' role by default. If columns to be displayed
are specified by '-c' option, the specified columns are honored
and tenant_id columns is not added.

Add functional tests to cover this change. This feature depends
on keystoneauth1 and unit tests cannot cover this change.

Closes-Bug: #1526238
Change-Id: Id58a0b795f76b4fe24aaf89f1f6486c23f19a553
2016-01-24 23:44:32 +09:00

7 lines
271 B
YAML

---
features:
- Show tenant_id when ``*-list`` command is run by admin. In neutron
the list operations by admin retrieve all resources from all tenants.
It is not easy to distinguish resources without tenant_id.
This feature is useful for admin operations.