{vm-type} is described in section 4.1. If the VM was a load
balancer, the {vm-type} could be defined as “lb”
-.. code-block:: python
+.. code-block:: yaml
parameters:
vm-typevnf\_name:
*(+ additional volume definitions)*
-.. code-block:: python
+.. code-block:: yaml
outputs:
{vm-type}\_volume\_id\_0:
*Example (VNF module template):*
-.. code-block:: python
+.. code-block:: yaml
parameters:
{vm-type}\_name\_0:
*Examples:*
-.. code-block:: python
+.. code-block:: yaml
parameters:
{vm-type}\_names:
In this example, the {vm-type} has been defined as “lb” for load
balancer.
-.. code-block:: python
+.. code-block:: yaml
parameters:
lb\_names:
In this example, the {vm-type} has been defined as “lb” for load
balancer.
-.. code-block:: python
+.. code-block:: yaml
parameters:
lb\_name\_0:
In this example, the {vm-type} has been defined as “lb” for load
balancer.
-.. code-block:: python
+.. code-block:: yaml
parameters:
lb\_names:
In this example, the {vm-type} has been defined as “lb” for load
balancer.
-.. code-block:: python
+.. code-block:: yaml
parameters:
vnf\_name:
*Example:*
-.. code-block:: python
+.. code-block:: yaml
parameters:
{network-role}\_net\_id:
represent an oam network and the {vm-type} has been defined as “lb” for
load balancer.
-.. code-block:: python
+.. code-block:: yaml
parameters:
oam\_net\_id:
*Example (external network)*
-.. code-block:: python
+.. code-block:: yaml
parameters:
{vm-type}\_{network-role}\_ips:
represent an oam network and the {vm-type} has been defined as “db” for
database.
-.. code-block:: python
+.. code-block:: yaml
parameters:
oam\_net\_id:
represent an oam network and the {vm-type} has been defined as “db” for
database.
-.. code-block:: python
+.. code-block:: yaml
parameters:
oam\_net\_id:
*Example:*
-.. code-block:: python
+.. code-block:: yaml
parameters:
{vm-type}\_{network-role}\_floating\_ip:
represent an oam network and the {vm-type} has been defined as “db” for
database.
-.. code-block:: python
+.. code-block:: yaml
parameters:
db\_oam\_ips:
represent an oam network and the {vm-type} has been defined as “lb” for
load balancer.
-.. code-block:: python
+.. code-block:: yaml
resources:
lb\_0\_port\_0:
represent an oam network and the {vm-type} has been defined as “lb” for
load balancer.
-.. code-block:: python
+.. code-block:: yaml
resources:
lb\_0\_port\_0:
‘str\_replace’ construct to generate a unique name when the vnf\_name
does not provide uniqueness
-.. code-block:: python
+.. code-block:: yaml
type: OS::Cinder::Volume
properities:
*Example:*
-.. code-block:: python
+.. code-block:: yaml
resources:
admin\_server:
For instance, the following is **not** valid Heat for a *ResourceGroup*:
-.. code-block:: python
+.. code-block:: yaml
type: OS::Heat::ResourceGroup
resource:
Below is an example of an **acceptable** Heat Syntax for a
*ResourceGroup*:
-.. code-block:: python
+.. code-block:: yaml
type: OS::Heat::ResourceGroup
resource:
*Example (create keypair with an existing ssh public-key for {vm-type}
of lb (for load balancer)):*
-.. code-block:: python
+.. code-block:: yaml
parameters:
vnf\_name:
represent an oam network and the {vm-type} have been defined as “lb” for
load balancer and “db” for database.
-.. code-block:: python
+.. code-block:: yaml
resources:
db\_server\_group:
Heat\_template\_version: 2013-05-23
-.. code-block:: python
+.. code-block:: yaml
parameters:
admin\_name\_0:
Heat\_template\_version: 2013-05-23
-.. code-block:: python
+.. code-block:: yaml
Parameters:
int\_oam\_net\_id:
represent an oam network and the {vm-type} has been defined as “oam” to
represent an oam server.
-.. code-block:: python
+.. code-block:: yaml
oam\_server\_01:
type: OS::Nova::Server