From 8549071363805a9eef815dd2429b6b860db11a2c Mon Sep 17 00:00:00 2001 From: David Rabel Date: Mon, 13 Mar 2017 15:16:48 +0100 Subject: Add --network and --port to server create --nic option is quite unhandy. It is better to have two seperate options --network and --port to add a network to a new server. Change-Id: I523abdc83ca2dd4c5dd3871f8f109c2bf57c2e02 Closes-Bug: #1612898 --- doc/source/command-objects/server.rst | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'doc/source/command-objects') diff --git a/doc/source/command-objects/server.rst b/doc/source/command-objects/server.rst index b2ae965a..3d2bbdf3 100644 --- a/doc/source/command-objects/server.rst +++ b/doc/source/command-objects/server.rst @@ -108,6 +108,8 @@ Create a new server [--availability-zone ] [--block-device-mapping [...] ] [--nic [...] ] + [--network ] + [--port ] [--hint [...] ] [--config-drive |True ] [--min ] @@ -176,6 +178,20 @@ Create a new server Specifying a --nic of auto or none cannot be used with any other --nic value. +.. option:: --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 + + 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 Hints for the scheduler (optional extension) @@ -200,6 +216,16 @@ Create a new server New server name +.. + +The parameters ``--network `` and ``--port `` are actually +wrappers to ``--nic net-id=`` and ``--nic port-id=``. ``--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 ------------- -- cgit v1.2.1