Add --status filtering option to 'openstack port list' command

Bug #1672680 reported by Lv Jiawei
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Fix Released
Undecided
Lv Jiawei

Bug Description

The result of 'openstack port list' contains 'status' column. The port has different statuses as well. Therefore, I think it needs a '--status' option to filter different port status.

Lv Jiawei (zhangoic)
Changed in python-openstackclient:
assignee: nobody → Lv Jiawei (zhangoic)
description: updated
Changed in python-openstackclient:
status: New → In Progress
Revision history for this message
Rui Chen (kiwik-chenrui) wrote :

The bug status is "In Progress", so do we have patch that is ready for review? please append the url, thank you.

Revision history for this message
Lv Jiawei (zhangoic) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-openstackclient (master)

Reviewed: https://review.opendev.org/c/openstack/python-openstackclient/+/444810
Committed: https://opendev.org/openstack/python-openstackclient/commit/9c223696a0e3b45bcd8bcb0a8f81e3354ccea9c6
Submitter: "Zuul (22348)"
Branch: master

commit 9c223696a0e3b45bcd8bcb0a8f81e3354ccea9c6
Author: zhangoic <zhangoic@163.com>
Date: Mon Mar 13 18:47:19 2017 +0800

    Add status filtering options to port list

    The patch adds "--status" options to list command.

    Change-Id: I710437f67e9432b2b6389986bc922eac4a60c934
    Partial-bug: #1672680

Revision history for this message
Alexey Stupnikov (astupnikov) wrote :

Works as expected for latest OSC:

stack@devstack:~$ openstack port list --status ACTIVE
+--------------------------------------+------+-------------------+----------------------------------------------------------------------------------+--------+
| ID | Name | MAC Address | Fixed IP Addresses | Status |
+--------------------------------------+------+-------------------+----------------------------------------------------------------------------------+--------+
| 4629a889-625a-4e90-a357-8a381daea012 | | fa:16:3e:36:04:89 | ip_address='10.0.0.1', subnet_id='7d2eb846-1e13-48a9-a013-06755be87ca2' | ACTIVE |
| 5154235d-422c-45fb-b408-7b67e9519ec1 | | fa:16:3e:35:a5:af | ip_address='172.24.4.186', subnet_id='88314045-1a46-4e3a-8ec3-fa6bfb69fcc5' | ACTIVE |
| | | | ip_address='2001:db8::2d4', subnet_id='17446d34-5e10-4222-a469-c9b8d6a998f8' | |
| 7d171151-36b6-428e-a924-6b5f138a8183 | | fa:16:3e:cd:7f:da | ip_address='fd0a:d18b:7b7a::1', subnet_id='f48bfb28-091d-49c3-a12a-af0f9289d5d5' | ACTIVE |
+--------------------------------------+------+-------------------+----------------------------------------------------------------------------------+--------+

Changed in python-openstackclient:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.