Allow vdu (VM) names to be specified as a parameter

Adding support to accept name property in the VDU TOSCA node type
which will be passed to Heat to create the VM with this specific name.

Closes-bug: 1570557
Change-Id: Iac0ae4397edcc5398cf8c1fdede709c6e903cceb
This commit is contained in:
dharmendra
2016-08-31 18:19:36 +09:00
committed by dharmendra kushwaha
parent ff5b90fdac
commit c7c0dc9bc4
5 changed files with 119 additions and 0 deletions

View File

@@ -6,10 +6,20 @@ metadata:
template_name: sample-tosca-vnfd
topology_template:
inputs:
vdu-name:
type: string
description: Vdu name
default: test-vdu
cp-name:
type: string
description: Cp name
default: test-cp
node_templates:
VDU1:
type: tosca.nodes.nfv.VDU.Tacker
properties:
name: {get_input : vdu-name}
image: cirros-0.3.4-x86_64-uec
flavor: m1.tiny
key_name: userKey
@@ -22,6 +32,7 @@ topology_template:
CP1:
type: tosca.nodes.nfv.CP.Tacker
properties:
name: {get_input : cp-name}
management: true
anti_spoofing_protection: false
requirements: