summaryrefslogtreecommitdiff
path: root/doc/source
diff options
context:
space:
mode:
authorHongbin Lu <hongbin.lu@huawei.com>2017-12-08 22:52:59 +0000
committerHongbin Lu <hongbin034@gmail.com>2018-01-03 21:11:02 +0000
commit5fdd0730c88b7a3f65b728c0ea87bb34cbc1d9c4 (patch)
treeaca35b2cc9cb7afb1dcb217bed2f676427d34453 /doc/source
parentb13a323128072f6f56619a816f5be165796171a4 (diff)
downloadpython-openstackclient-5fdd0730c88b7a3f65b728c0ea87bb34cbc1d9c4.tar.gz
Allow ports filtering with device_id
Right now, if a neutron port is owned by a container powered by Kuryr, there is no way to list and filter those ports because OSC assumed a neutron port is owned by either a server or router. This patch adds support for that by introducing an option '--device-id' to the 'port list' command. Change-Id: Ib1fd27e8d843a99fb02ccabd8a12a24ac27cec9c
Diffstat (limited to 'doc/source')
-rw-r--r--doc/source/cli/command-objects/port.rst6
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/source/cli/command-objects/port.rst b/doc/source/cli/command-objects/port.rst
index cf29bb2c..f8e88230 100644
--- a/doc/source/cli/command-objects/port.rst
+++ b/doc/source/cli/command-objects/port.rst
@@ -170,7 +170,7 @@ List ports
openstack port list
[--device-owner <device-owner>]
- [--router <router> | --server <server>]
+ [--router <router> | --server <server> | --device-id <device-id>]
[--network <network>]
[--mac-address <mac-address>]
[--fixed-ip subnet=<subnet>,ip-address=<ip-address>]
@@ -192,6 +192,10 @@ List ports
List only ports attached to this server (name or ID)
+.. option:: --device-id <device-id>
+
+ List only ports with the specified device ID
+
.. option:: --network <network>
List only ports attached to this network (name or ID)