From 5fdd0730c88b7a3f65b728c0ea87bb34cbc1d9c4 Mon Sep 17 00:00:00 2001 From: Hongbin Lu Date: Fri, 8 Dec 2017 22:52:59 +0000 Subject: 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 --- doc/source/cli/command-objects/port.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'doc/source/cli/command-objects') 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 ] - [--router | --server ] + [--router | --server | --device-id ] [--network ] [--mac-address ] [--fixed-ip subnet=,ip-address=] @@ -192,6 +192,10 @@ List ports List only ports attached to this server (name or ID) +.. option:: --device-id + + List only ports with the specified device ID + .. option:: --network List only ports attached to this network (name or ID) -- cgit v1.2.1