limit default set of fields shown in *-list cmds
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Medium
|
yong sheng gong | ||
python-neutronclient |
Fix Released
|
Undecided
|
yong sheng gong |
Bug Description
Our list commands default to showing every field in an API entity, which means the tables always wrap and are a total mess in a reasonably sized terminal. At least with nova, only a subset of the columns are shown for list, and if more details are needed, it requires running show on a specific UUID/name (or in the case of quantum, specifying -c with list). With Quantum, I find that I regularly run quantum net-list -c id -c name to make sure the output is readable.
I'd suggest we have the following columns display by default:
quantum net-list: name, id, subnets (ideally, subnet cidrs, using verbose=True query)
quantum subnet-list: subnet-name, id, subnet-cidr, allocation-pools (really this command is less useful if we do a good job with net-list)
quantum port-list: port name, port id, port fixed-ips
You'd still be able to use the -c flag to define the set of columns that *-list returns, this is just about defining the default behavior. I image that most scripts would use -c, so I see this as mainly a question about human operators, particular newbie human operators.
Changed in quantum: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
milestone: | none → folsom-3 |
tags: | added: low-hanging-fruit |
Changed in quantum: | |
assignee: | nobody → yong sheng gong (gongysh) |
Changed in python-quantumclient: | |
status: | New → Invalid |
Changed in quantum: | |
status: | In Progress → Fix Committed |
Changed in quantum: | |
status: | Fix Committed → Fix Released |
Changed in quantum: | |
milestone: | folsom-rc1 → 2012.2 |
Changed in python-quantumclient: | |
milestone: | none → 2.1 |
Changed in python-quantumclient: | |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/11323
Review: https:/