diff options
| author | Jenkins <jenkins@review.openstack.org> | 2017-04-25 13:54:46 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2017-04-25 13:54:46 +0000 |
| commit | 7977f7df1887de570e17ed37bbb7da7b226e303d (patch) | |
| tree | 6ced1f0f62e772fbd3f7b545e28d7d6b85ac1fb6 /doc/source/command-objects/server.rst | |
| parent | ef99f444628282d06feae04514bd2a6328d87b93 (diff) | |
| parent | 8549071363805a9eef815dd2429b6b860db11a2c (diff) | |
| download | python-openstackclient-7977f7df1887de570e17ed37bbb7da7b226e303d.tar.gz | |
Merge "Add --network and --port to server create"
Diffstat (limited to 'doc/source/command-objects/server.rst')
| -rw-r--r-- | doc/source/command-objects/server.rst | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/doc/source/command-objects/server.rst b/doc/source/command-objects/server.rst index 55b39ef5..dc78080b 100644 --- a/doc/source/command-objects/server.rst +++ b/doc/source/command-objects/server.rst @@ -138,6 +138,8 @@ Create a new server [--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,auto,none> [...] ] + [--network <network>] + [--port <port>] [--hint <key=value> [...] ] [--config-drive <value>|True ] [--min <count>] @@ -206,6 +208,20 @@ Create a new server Specifying a --nic of auto or none cannot be used with any other --nic value. +.. option:: --network <network> + + Create a NIC on the server and connect it to network. + Specify option multiple times to create multiple NICs. + For more options on NICs see --nic parameter. + network: attach NIC to this network + +.. option:: --port <port> + + Create a NIC on the server and connect it to port. + Specify option multiple times to create multiple NICs. + For more options on NICs see --nic parameter. + port: attach NIC to this port + .. option:: --hint <key=value> Hints for the scheduler (optional extension) @@ -230,6 +246,16 @@ Create a new server New server name +.. + +The parameters ``--network <network>`` and ``--port <port>`` are actually +wrappers to ``--nic net-id=<network>`` and ``--nic port-id=<port>``. ``--nic`` +also provides additional options to specify an IP address, automatic network +assignment and NICs which are not assigned to any port. This functionality +is not part of ``--network`` and ``--port``, which aim to provide a simple +syntax for the standard use cases of connecting a new server to a given +network or port. + server delete ------------- |
