From 315431c11c5719cc97e6ef4fb7514f98d7725e23 Mon Sep 17 00:00:00 2001 From: Marcela Bonell Date: Fri, 24 Jun 2016 17:49:00 -0500 Subject: [PATCH] MyFirstApp: Getting started section with shade Add the code to specify a network during instance build (Appendix). Change-Id: I60f6bb70aed9b95afde3bdb81fe395c26de646c2 --- firstapp/source/appendix.rst | 12 ++++++++++++ firstapp/source/getting_started.rst | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/firstapp/source/appendix.rst b/firstapp/source/appendix.rst index c458adf04..5b5b37fa7 100644 --- a/firstapp/source/appendix.rst +++ b/firstapp/source/appendix.rst @@ -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) diff --git a/firstapp/source/getting_started.rst b/firstapp/source/getting_started.rst index 06a4e5be0..e3c704eeb 100644 --- a/firstapp/source/getting_started.rst +++ b/firstapp/source/getting_started.rst @@ -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