Add network list filtering options

Bug #1578819 reported by Richard Theis
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.

Tags: network
Richard Theis (rtheis)
Changed in python-openstackclient:
importance: Undecided → Low
status: New → Confirmed
Changed in python-openstackclient:
assignee: nobody → Deepti Ramakrishna (dramakri)
Revision history for this message
Steve Martinelli (stevemar) wrote :

Unassigning due to inactivity

Changed in python-openstackclient:
assignee: Deepti Ramakrishna (dramakri) → nobody
Ha Van Tu (tuhv)
Changed in python-openstackclient:
assignee: nobody → Ha Van Tu (tuhv)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-openstackclient (master)

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

Changed in python-openstackclient:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-openstackclient (master)

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/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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)
tags: added: network
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-openstackclient (master)

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
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-openstackclient 3.3.0

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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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