[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / heatPseudoParameters / usedFromNestedHeat / inputfiles / VSR_CPM_base_template_nested.yaml
1 heat_template_version: 2013-05-23
2
3 parameters:
4
5   availability_zone_0:
6     type: string
7     description: Availability zone where this component should be instantiated
8   cpm_image_name:
9     type: string
10     description: Image to be used for the instance
11   cpm_flavor_name:
12     type: string
13     description: Flavor of the VNF to be used
14   security_group:
15     type: string
16     description: Security group to be used
17   mgt_net_id:
18     type: string
19     description: Network used by the Management interface
20   mgt_subnet_id:
21     type: string
22     description: Subnet used by the Management interface
23   ctrl_fabric_net_id: 
24     type: string
25     description: Network used by the Control Fabric interface
26   ctrl_fabric_subnet_id: 
27     type: string
28     description: Subnet used by the Control Fabric interface
29   cpm_mgt_ip:
30     type: string
31     description: Fixed IP that will be used by the primary Management Interface
32   cpm_mgt_cidr:
33     type: string
34     description: Fixed IP that will be used by the secondary Management Interface
35   stack_name:
36     type: string
37     description: Name of the HEAT stack
38   stack_id:
39     type: string
40     description: Id of the HEAT stack
41   project_id:
42     type: string
43     description: Id of the HEAT project
44   cpm_smbios:
45     type: string
46     description: Parameters to be passed to the VM at boot up as key-value pairs
47   cpm_slot:
48     type: string
49     description: The slot value assigned to the module eg A and B
50   cpm_mtu:
51     type: string
52     description: MTU size in bytes
53   vnf_id:
54     type: string
55     description: VNF ID
56   vm_name:
57     type: string
58     description: Name of the VNF
59   vf_module_id:
60     type: string
61     description: VNF Module ID
62
63 resources: 
64   cpm_mgt_0_port:
65     type: OS::Neutron::Port
66     properties:
67       network_id: { get_param: mgt_net_id }
68       security_groups: [ { get_param: security_group} ]
69       fixed_ips: [ { subnet_id: { get_param: mgt_subnet_id }, ip_address: { get_param: cpm_mgt_ip } } ]
70       allowed_address_pairs: [ { ip_address: { get_param: cpm_mgt_cidr } } ]
71
72   cpm_ctrl_fabric_0_port:
73     type: OS::Neutron::Port
74     properties:
75       network_id: { get_param: ctrl_fabric_net_id }
76       security_groups: [ { get_param: security_group} ]
77       fixed_ips: [ { subnet_id: { get_param: ctrl_fabric_subnet_id } } ]
78       value_specs:
79         extra_dhcp_opts:
80         - {opt_name: interface-mtu, opt_value: { get_param: cpm_mtu } }
81
82   CPM:
83     type: OS::Nova::Server
84     depends_on: [ cpm_mgt_0_port, cpm_ctrl_fabric_0_port ]
85     properties:
86       name: { get_param: vm_name }
87       metadata:
88         vnf_id: { get_param: vnf_id }
89         vf_module_id: { get_param: vf_module_id }
90       image: { get_param: cpm_image_name }
91       flavor: { get_param: cpm_flavor_name }
92       availability_zone: { get_param: availability_zone_0 }
93       config_drive: "true"
94       user_data: { get_param: cpm_smbios }
95       user_data_format: "RAW"
96       networks:
97         - port: { get_resource: cpm_mgt_0_port }
98         - port: { get_resource: cpm_ctrl_fabric_0_port }