diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-03-25 15:47:15 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-03-25 15:47:15 +0000 |
| commit | ef1faf77925f70eb9feeb7bb416f4c9257a16bee (patch) | |
| tree | 463def1234aebf70b56270139c4c4710f031d9d8 /doc/source/command-objects | |
| parent | 860dbc132d512c6df16d29875bb6388d10d9fab8 (diff) | |
| parent | 2b95e363d325c686db229a9da1d9a3a7677e8294 (diff) | |
| download | python-openstackclient-ef1faf77925f70eb9feeb7bb416f4c9257a16bee.tar.gz | |
Merge "Subnet: Add "subnet set" command using SDK"
Diffstat (limited to 'doc/source/command-objects')
| -rw-r--r-- | doc/source/command-objects/subnet.rst | 61 |
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 ----------- |
