summaryrefslogtreecommitdiff
path: root/doc/source/command-objects/server.rst
diff options
context:
space:
mode:
authorKevin_Zheng <zhengzhenyu@huawei.com>2016-12-20 10:17:05 +0800
committerZhenyu Zheng <zhengzhenyu@huawei.com>2016-12-22 10:01:02 +0000
commitff18e3d0e9307fb505113b467e58bdb62992fb85 (patch)
treec041a765f92e1c25c1e342de8cf44894b9909aa4 /doc/source/command-objects/server.rst
parent5d62981beb28f81ddd376466f296fc40b6b7eb8d (diff)
downloadpython-openstackclient-ff18e3d0e9307fb505113b467e58bdb62992fb85.tar.gz
Should support 'auto' and 'none' as network parameter when boot instances
Nova added support using 'auto' and 'none' as network parameters since microversion 2.37: http://git.openstack.org/cgit/openstack/nova/tree/nova/api/openstack/rest_api_version_history.rst#n389 we should also add support for this in OSC. Change-Id: I6e5f616dfa48895ebd13144effe9fda7cb94c649 Closes-bug: #1651288
Diffstat (limited to 'doc/source/command-objects/server.rst')
-rw-r--r--doc/source/command-objects/server.rst6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/source/command-objects/server.rst b/doc/source/command-objects/server.rst
index 5ad29a0f..88f22baf 100644
--- a/doc/source/command-objects/server.rst
+++ b/doc/source/command-objects/server.rst
@@ -107,7 +107,7 @@ Create a new server
[--user-data <user-data>]
[--availability-zone <zone-name>]
[--block-device-mapping <dev-name=mapping> [...] ]
- [--nic <net-id=net-uuid,v4-fixed-ip=ip-addr,v6-fixed-ip=ip-addr,port-id=port-uuid> [...] ]
+ [--nic <net-id=net-uuid,v4-fixed-ip=ip-addr,v6-fixed-ip=ip-addr,port-id=port-uuid,auto,none> [...] ]
[--hint <key=value> [...] ]
[--config-drive <value>|True ]
[--min <count>]
@@ -158,7 +158,7 @@ Create a new server
Map block devices; map is <id>:<type>:<size(GB)>:<delete_on_terminate> (optional extension)
-.. option:: --nic <net-id=net-uuid,v4-fixed-ip=ip-addr,v6-fixed-ip=ip-addr,port-id=port-uuid>
+.. option:: --nic <net-id=net-uuid,v4-fixed-ip=ip-addr,v6-fixed-ip=ip-addr,port-id=port-uuid,auto,none>
Create a NIC on the server. Specify option multiple times to create
multiple NICs. Either net-id or port-id must be provided, but not both.
@@ -166,6 +166,8 @@ Create a new server
port-id: attach NIC to port with this UUID,
v4-fixed-ip: IPv4 fixed address for NIC (optional),
v6-fixed-ip: IPv6 fixed address for NIC (optional).
+ none: (v2.37+) no network is attached.
+ auto: (v2.37+) the compute service will automatically allocate a network.
.. option:: --hint <key=value>