From 18c532377a2f6d87adef80465fea7ed50d5a17d1 Mon Sep 17 00:00:00 2001 From: Ankur Gupta Date: Wed, 12 Oct 2016 22:39:35 -0500 Subject: Network L3 Router Commands for OSC Implements: blueprint network-l3-commands Co-Authored-By: Akihiro Motoki Change-Id: Ia24d76227e164062e89a74c1621b8acb830b26cf --- doc/source/cli/command-objects/network-agent.rst | 121 +++++++++++++++++------ doc/source/cli/command-objects/router.rst | 5 + 2 files changed, 98 insertions(+), 28 deletions(-) (limited to 'doc/source/cli/command-objects') diff --git a/doc/source/cli/command-objects/network-agent.rst b/doc/source/cli/command-objects/network-agent.rst index f69d0ece..2ceb263f 100644 --- a/doc/source/cli/command-objects/network-agent.rst +++ b/doc/source/cli/command-objects/network-agent.rst @@ -33,7 +33,34 @@ Add network to an agent .. describe:: - Network to be added to an agent (ID or name) + Network to be added to an agent (name or ID) + +network agent add router +------------------------ + +Add router to an agent + +.. program:: network agent add router +.. code:: bash + + openstack network agent add router + [--l3] + + + +.. option:: --l3 + + Add router to L3 agent + +.. _network_agent_add_router-agent-id: +.. describe:: + + Agent to which a router is added (ID only) + +.. _network_agent_add_router-router: +.. describe:: + + Router to be added to an agent (name or ID) network agent delete -------------------- @@ -62,7 +89,8 @@ List network agents openstack network agent list [--agent-type ] [--host ] - [--network ] + [--network | --router ] + [--long] .. option:: --agent-type @@ -77,7 +105,69 @@ List network agents .. option:: --network - List agents hosting a network (ID or name) + List agents hosting a network (name or ID) + +.. option:: --router + + List agents hosting this router (name or ID) + +.. option:: --long + + List additional fields in output + +network agent remove network +---------------------------- + +Remove network from an agent + +.. program:: network agent remove network +.. code:: bash + + openstack network agent remove network + [--dhcp] + + + +.. option:: --dhcp + + Remove network from DHCP agent + +.. _network_agent_remove_network-agent-id: +.. describe:: + + Agent to which a network is removed (ID only) + +.. _network_agent_remove_network-network: +.. describe:: + + Network to be removed from an agent (name or ID) + +network agent remove router +--------------------------- + +Remove router from an agent + +.. program:: network agent remove router +.. code:: bash + + openstack agent remove router + [--l3] + + + +.. option:: --l3 + + Remove router from L3 agent + +.. _network_agent_remove_router-agent-id: +.. describe:: + + Agent from which router will be removed (ID only) + +.. _network_agent_remove_router-router: +.. describe:: + + Router to be removed from an agent (name or ID) network agent set ----------------- @@ -124,28 +214,3 @@ Display network agent details .. describe:: Network agent to display (ID only) - -network agent remove network ----------------------------- - -Remove network from an agent - -.. program:: network agent remove network -.. code:: bash - - openstack network agent remove network - [--dhcp] - - - -.. describe:: --dhcp - - Remove network from DHCP agent. - -.. describe:: - - Agent to which a network is removed (ID only) - -.. describe:: - - Network to be removed from an agent (ID or name) diff --git a/doc/source/cli/command-objects/router.rst b/doc/source/cli/command-objects/router.rst index 50e791ea..8bdf81db 100644 --- a/doc/source/cli/command-objects/router.rst +++ b/doc/source/cli/command-objects/router.rst @@ -155,6 +155,11 @@ List routers [--enable | --disable] [--long] [--project [--project-domain ]] + [--agent ] + +.. option:: --agent + + List routers hosted by an agent (ID only) .. option:: --long -- cgit v1.2.1