From 3278b3a022c34b1abe28e1ed7b16ed60a059a441 Mon Sep 17 00:00:00 2001 From: Tang Chen Date: Sat, 12 Dec 2015 10:28:48 +0800 Subject: Router: Add "router list" command using SDK Add "router list" command. It takes one "--long" option. By default, the command will print router id, name, status, admin state up, distributed, ha and project id. With "--long" option, it will also print routes and external gateway info. Change-Id: I9d21904c41c11ee1fa107f985744878a1dc2f970 Implements: blueprint neutron-client Partial-bug: #1519503 --- doc/source/command-objects/router.rst | 20 ++++++++++++++++++++ doc/source/commands.rst | 1 + 2 files changed, 21 insertions(+) create mode 100644 doc/source/command-objects/router.rst (limited to 'doc') diff --git a/doc/source/command-objects/router.rst b/doc/source/command-objects/router.rst new file mode 100644 index 00000000..f7b5a67e --- /dev/null +++ b/doc/source/command-objects/router.rst @@ -0,0 +1,20 @@ +====== +router +====== + +Network v2 + +router list +----------- + +List routers + +.. program:: router list +.. code:: bash + + os router list + [--long] + +.. option:: --long + + List additional fields in output diff --git a/doc/source/commands.rst b/doc/source/commands.rst index 1c6c2d8a..0ec4f71b 100644 --- a/doc/source/commands.rst +++ b/doc/source/commands.rst @@ -107,6 +107,7 @@ referring to both Compute and Volume quotas. * ``request token``: (**Identity**) temporary OAuth-based token * ``role``: (**Identity**) a policy object used to determine authorization * ``role assignment``: (**Identity**) a relationship between roles, users or groups, and domains or projects +* ``router``: (**Network**) - a virtual router * ``security group``: (**Compute**, **Network**) - groups of network access rules * ``security group rule``: (**Compute**, **Network**) - the individual rules that define protocol/IP/port access * ``server``: (**Compute**) virtual machine instance -- cgit v1.2.1