Add option to allow filtering by mac-address on port list
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-openstackclient |
Fix Released
|
Undecided
|
Yan Xing'an |
Bug Description
yanxa@ubuntu:
usage: openstack port list [-h] [-f {csv,json,
List ports
optional arguments:
-h, --help show this help message and exit
--device-owner <device-owner>
--network <network> List only ports connected to this network (name or ID)
--router <router> List only ports attached to this router (name or ID)
--server <server> List only ports attached to this server (name or ID)
--long List additional fields in output
yanxa@ubuntu:
+------
| ID | Name | MAC Address | Fixed IP Addresses | Status |
+------
| 00b61d62-
| | | | -3b6c-4b4b-
| 5a1b9e14-
| | | | 193c-4c6e-
| | | | ip_address=
| | | | subnet_
| | | | b48d-e79085403467' | |
| 6e57a4e6-
| | | | -3b6c-4b4b-
| | | | ip_address=
| | | | d9', subnet_
| | | | 42b8-b4f6-
| cba034bc-
| | | | ='550e7ced-
+------
If the port number is large scale, it spend too many time via "os port list |grep xx:xx:xx:xx:xx:xx", and "grep" can not give all fields of a port.
We may import the "--mac-address" option.
Changed in python-openstackclient: | |
assignee: | nobody → Yan Xing'an (yanxingan) |
tags: | added: network |
Changed in python-openstackclient: | |
status: | In Progress → Fix Committed |
Changed in python-openstackclient: | |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/387795
Review: https:/