
Add the code to specify a network during instance build (Appendix). Change-Id: I60f6bb70aed9b95afde3bdb81fe395c26de646c2
36 lines
898 B
ReStructuredText
36 lines
898 B
ReStructuredText
========
|
|
Appendix
|
|
========
|
|
|
|
Bootstrap your network
|
|
~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
Most cloud providers provision all network objects that are required
|
|
to boot an instance. To determine whether these objects were created
|
|
for you, access the Network Topology section of the OpenStack
|
|
dashboard.
|
|
|
|
.. figure:: images/network-topology.png
|
|
:width: 920px
|
|
:align: center
|
|
:height: 622px
|
|
:alt: network topology view
|
|
:figclass: align-center
|
|
|
|
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)
|