summaryrefslogtreecommitdiff
path: root/doc/source/command-objects/subnet.rst
diff options
context:
space:
mode:
authorreedip <reedip.banerjee@nectechnologies.in>2016-03-15 09:37:10 +0900
committerReedip <reedip.banerjee@nectechnologies.in>2016-03-24 02:21:40 +0000
commit2b95e363d325c686db229a9da1d9a3a7677e8294 (patch)
tree06cd51f1d15607e56ebc80d4cf14143589bdf99b /doc/source/command-objects/subnet.rst
parenta60e31ad4b2a1b48e7b2db8f572072beb92d6cd1 (diff)
downloadpython-openstackclient-2b95e363d325c686db229a9da1d9a3a7677e8294.tar.gz
Subnet: Add "subnet set" command using SDK
This patch adds "subnet set" command to osc using sdk. Implements: blueprint neutron-client Closes-bug: #1542363 Change-Id: Id3b7f4b9190b4d73ca3ae423321a65f94a6da62e
Diffstat (limited to 'doc/source/command-objects/subnet.rst')
-rw-r--r--doc/source/command-objects/subnet.rst61
1 files changed, 60 insertions, 1 deletions
diff --git a/doc/source/command-objects/subnet.rst b/doc/source/command-objects/subnet.rst
index 56a28d73..eb64c9e7 100644
--- a/doc/source/command-objects/subnet.rst
+++ b/doc/source/command-objects/subnet.rst
@@ -21,7 +21,7 @@ Delete a subnet
Subnet to delete (name or ID)
subnet create
---------------
+-------------
Create new subnet
@@ -143,6 +143,65 @@ List subnets
List additional fields in output
+subnet set
+----------
+
+Set subnet properties
+
+.. program:: subnet set
+.. code:: bash
+
+ os subnet set
+ [--allocation-pool start=<ip-address>,end=<ip-address>]
+ [--dhcp | --no-dhcp]
+ [--dns-nameserver <dns-nameserver>]
+ [--gateway <gateway-ip>]
+ [--host-route destination=<subnet>,gateway=<ip-address>]
+ [--name <new-name>]
+ <subnet>
+
+.. option:: --allocation-pool start=<ip-address>,end=<ip-address>
+
+ Allocation pool IP addresses for this subnet e.g.:
+ start=192.168.199.2,end=192.168.199.254 (This option can be repeated)
+
+.. option:: --dhcp
+
+ Enable DHCP
+
+.. option:: --no-dhcp
+
+ Disable DHCP
+
+.. option:: --dns-nameserver <dns-nameserver>
+
+ DNS name server for this subnet (This option can be repeated)
+
+.. option:: --gateway <gateway>
+
+ Specify a gateway for the subnet. The options are:
+ <ip-address>: Specific IP address to use as the gateway
+ 'none': This subnet will not use a gateway
+ e.g.: --gateway 192.168.9.1, --gateway none
+
+.. option:: --host-route destination=<subnet>,gateway=<ip-address>
+
+ Additional route for this subnet e.g.:
+ destination=10.10.0.0/16,gateway=192.168.71.254
+ destination: destination subnet (in CIDR notation)
+ gateway: nexthop IP address
+ (This option can be repeated)
+
+.. option:: --name
+
+ Updated name of the subnet
+
+.. _subnet_set-subnet:
+.. describe:: <subnet>
+
+ Subnet to modify (name or ID)
+
+
subnet show
-----------