From f4fd8f6e31dcc177b56d1e618cdefef728d09157 Mon Sep 17 00:00:00 2001 From: Shashank Kumar Shankar Date: Mon, 17 Oct 2016 18:26:01 +0000 Subject: Introduce Neutron DHCP agent commands to OSC This patch introduces neutron dhcp-agent related commands to OpenStack client. The equivalent neutron commands implemented in OSC: neutron: dhcp-agent-list-hosting-net OSC: network agent list --network neutron: dhcp-agent-network-add OSC: network agent add network neutron: dhcp-agent-network-remove OSC: network agent remove network neutron: net-list-on-dhcp-agent OSC: network list --agent Change-Id: I77a933f4b3ce875c63cef5b6a32aee78fd844b03 --- doc/source/command-objects/network-agent.rst | 55 ++++++++++++++++++++++++++++ doc/source/command-objects/network.rst | 5 +++ 2 files changed, 60 insertions(+) (limited to 'doc/source/command-objects') diff --git a/doc/source/command-objects/network-agent.rst b/doc/source/command-objects/network-agent.rst index 947e07cf..d764f3de 100644 --- a/doc/source/command-objects/network-agent.rst +++ b/doc/source/command-objects/network-agent.rst @@ -10,6 +10,31 @@ agent is "True". Network v2 +network agent add network +------------------------- + +Add network to an agent + +.. program:: network agent add network +.. code:: bash + + openstack network agent add network + [--dhcp] + + + +.. describe:: --dhcp + + Add a network to DHCP agent. + +.. describe:: + + Agent to which a network is added. (ID only) + +.. describe:: + + Network to be added to an agent. (ID or name) + network agent delete -------------------- @@ -37,6 +62,7 @@ List network agents openstack network agent list [--agent-type ] [--host ] + [--network ] .. option:: --agent-type @@ -49,6 +75,10 @@ List network agents List only agents running on the specified host +.. option:: --network + + List agents hosting a network. (ID or name) + network agent set ----------------- @@ -94,3 +124,28 @@ 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/command-objects/network.rst b/doc/source/command-objects/network.rst index dc597443..9162dbff 100644 --- a/doc/source/command-objects/network.rst +++ b/doc/source/command-objects/network.rst @@ -203,6 +203,7 @@ List networks [--provider-network-type ] [--provider-physical-network ] [--provider-segment ] + [--agent ] .. option:: --external @@ -290,6 +291,10 @@ List networks *Network version 2 only* +.. option:: --agent + + List networks hosted by agent (ID only) + network set ----------- -- cgit v1.2.1