MyFirstApp: Getting started section with shade
Add the code to specify a network during instance build (Appendix). Change-Id: I60f6bb70aed9b95afde3bdb81fe395c26de646c2
This commit is contained in:
parent
2578bde8a3
commit
315431c11c
@ -21,3 +21,15 @@ Specify a network during instance build
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. todo:: code for creating a networking using code
|
||||
|
||||
.. only:: shade
|
||||
|
||||
Add the parameter network and send its name or id to attach the instance to:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
testing_instance = conn.create_server(wait=True, auto_ip=True,
|
||||
name=instance_name,
|
||||
image=image_id,
|
||||
flavor=flavor_id,
|
||||
network=network_id)
|
||||
|
@ -304,7 +304,7 @@ to run code snippets in your language of choice.
|
||||
.. only:: shade
|
||||
|
||||
Use your credentials above to specify the cloud provider name,
|
||||
user name, password, project_name and region_name in the file
|
||||
username, password, project_name and region_name in the file
|
||||
:file:`~/.config/openstack/clouds.yml`.
|
||||
|
||||
.. literalinclude:: ../samples/shade/clouds.yml
|
||||
|
Loading…
x
Reference in New Issue
Block a user