Add network list filtering options

Bug #1578819 reported by Richard Theis on 2016-05-05
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Fix Released
Low
Ha Van Tu

Bug Description

Neutron client provides the following options on neutron net-list:
  --tenant-id TENANT_ID
                        Filter networks belonging to the given tenant.
  --name NAME Filter networks according to their name.
  --admin-state-up {True,False}
                        Filter and list the networks whose administrative
                        state is active
  --status STATUS Filter networks according to their operation
                        status.(For example: ACTIVE, ERROR etc)
  --shared {True,False}
                        Filter and list the networks which are shared.
  --router:external {True,False}
                        Filter and list the networks which are external.
  --tags TAG Filter and list networks which has all given tags.
                        Multiple tags can be set like --tags <tag[,tag...]>
  --tags-any TAG Filter and list networks which has any given tags.
                        Multiple tags can be set like --tags-any
                        <tag[,tag...]>
  --not-tags TAG Filter and list networks which does not have all given
                        tags. Multiple tags can be set like --not-tags
                        <tag[,tag...]>
  --not-tags-any TAG Filter and list networks which does not have any given
                        tags. Multiple tags can be set like --not-tags-any
                        <tag[,tag...]>

Similar options need to be added to the "openstack network list" command for functional parity.

Richard Theis (rtheis) on 2016-05-05
Changed in python-openstackclient:
importance: Undecided → Low
status: New → Confirmed
Changed in python-openstackclient:
assignee: nobody → Deepti Ramakrishna (dramakri)
Steve Martinelli (stevemar) wrote :

Unassigning due to inactivity

Changed in python-openstackclient:
assignee: Deepti Ramakrishna (dramakri) → nobody
Ha Van Tu (tuhv) on 2016-08-02
Changed in python-openstackclient:
assignee: nobody → Ha Van Tu (tuhv)

Fix proposed to branch: master
Review: https://review.openstack.org/350371

Changed in python-openstackclient:
status: Confirmed → In Progress

Fix proposed to branch: master
Review: https://review.openstack.org/350486

Fix proposed to branch: master
Review: https://review.openstack.org/350961

Fix proposed to branch: master
Review: https://review.openstack.org/350976

Fix proposed to branch: master
Review: https://review.openstack.org/351009

Fix proposed to branch: master
Review: https://review.openstack.org/351059

Fix proposed to branch: master
Review: https://review.openstack.org/356996

Change abandoned by Ha Van Tu (<email address hidden>) on branch: master
Review: https://review.openstack.org/350371
Reason: Merge to https://review.openstack.org/#/c/356996/

Change abandoned by Ha Van Tu (<email address hidden>) on branch: master
Review: https://review.openstack.org/350486
Reason: Merge to https://review.openstack.org/#/c/356996/

Change abandoned by Ha Van Tu (<email address hidden>) on branch: master
Review: https://review.openstack.org/350961
Reason: Merge to https://review.openstack.org/#/c/356996/

Change abandoned by Ha Van Tu (<email address hidden>) on branch: master
Review: https://review.openstack.org/350976
Reason: Merge to https://review.openstack.org/#/c/356996/

Change abandoned by Ha Van Tu (<email address hidden>) on branch: master
Review: https://review.openstack.org/351009
Reason: Merge to https://review.openstack.org/#/c/356996/

Change abandoned by Ha Van Tu (<email address hidden>) on branch: master
Review: https://review.openstack.org/351059
Reason: Merge to https://review.openstack.org/#/c/356996/

Richard Theis (rtheis) on 2016-08-19
tags: added: network

Reviewed: https://review.openstack.org/356996
Committed: https://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=9c473f475d2bb7adadc65a7525b93db84f10bef9
Submitter: Jenkins
Branch: master

commit 9c473f475d2bb7adadc65a7525b93db84f10bef9
Author: Ha Van Tu <email address hidden>
Date: Thu Aug 18 15:07:47 2016 +0700

    Add filtering options to os network list command

    This patch adds the following filtering options: '--name', '--internal',
    '--share' and '--no-share', '--enable' and '--disable', '--project'
    and '--project-domain', '--status'.

    Change-Id: I7e9dd372ee572c6ee8cdba7fac3182f9dc0a137b
    Partially-Implements: blueprint network-commands-options
    Closes-Bug: #1578819

Changed in python-openstackclient:
status: In Progress → Fix Released

This issue was fixed in the openstack/python-openstackclient 3.3.0 release.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers