[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / lib / openecomp-sdc-validation-lib / openecomp-sdc-validation-impl / src / test / resources / org / openecomp / validation / validators / attGuideLineValidator / baseHeatExposeResourceUsingGetResource / negative / base_virc.yaml
1 heat_template_version: 2015-04-30
2
3 description: vIRC CC base template
4
5 parameters:
6   vnf_id:
7     type: string
8     description: Unique ID for this VF instance
9   vnf_name:
10     type: string
11     description: Unique name for this VF instance
12   vf_module_id:
13     type: string
14     description: Unique ID for this VF Module instance
15   vf_module_name:
16     type: string
17     description: Unique name for this VF Module instance
18   vm_roles:
19     type: comma_delimited_list
20     description: Unique roles for first group of instances
21   virc_names:
22     type: comma_delimited_list
23     description: List of names of vIRC CC instances in first availability zone
24   virc_image_name:
25     type: string
26     description: Image used for vIRC CC instances
27   virc_flavor_name:
28     type: string
29     description: Flavor of VM to use for vIRC CC instances
30   virc_ssh_public_key:
31     type: string
32     description: Public key for SSH access to vIRC CC instances
33   availability_zone_0:
34     type: string
35     description: First availability zone ID or name
36   management_net_name:
37     type: string
38     description: vIRC CC management network name
39   virc_management_dhcp:
40     type: string
41     description: For static IPs on management port, no. For DHCP assigned IPs, yes.
42   virc_management_ips:
43     type: comma_delimited_list
44     description: vIRC CC management network fixed ips for first availability zone if static
45   virc_management_netmask:
46     type: string
47     description: vIRC CC management netmask
48   virc_management_gateway:
49     type: string
50     description: vIRC CC management gateway
51   virc_management_default_route:
52     type: string
53     description: If management port is default route on OS, yes. If not, no. 
54   data_net_name:
55     type: string
56     description: vIRC CC data network name
57   virc_data_dhcp:
58     type: string
59     description: For static IPs on data port, no. For DHCP assigned IPs, yes.
60   virc_data_ips:
61     type: comma_delimited_list
62     description: vIRC CC data network fixed ips for first availability zone if static
63   virc_data_netmask:
64     type: string
65     description: vIRC CC data netmask
66   virc_data_gateway:
67     type: string
68     description: vIRC CC data gateway
69   virc_data_default_route:
70     type: string
71     description: If data port is default route on OS, yes. If not, no.
72   signaling_net_name:
73     type: string
74     description: vIRC CC signaling network name
75   virc_signaling_dhcp:
76     type: string
77     description: For static IPs on data port, no. For DHCP assigned IPs, yes.
78   virc_signaling_ips:
79     type: comma_delimited_list
80     description: vIRC CC signaling network fixed ips for first availability zone if static
81   virc_signaling_netmask:
82     type: string
83     description: vIRC CC signaling netmask
84   virc_signaling_gateway:
85     type: string
86     description: vIRC CC signaling gateway
87   virc_signaling_default_route:
88     type: string
89     description: If signaling port is default route on OS, yes. If not, no.
90   num_instances:
91     type: number
92     description: Number of instances to deploy in first availability zone
93     constraints:
94       - range: { min: 0, max: 18}
95   virc_sg_rules:
96     type: json
97     description: vIRC CC security group rules
98   virc_domain:
99     type: string
100     description: Domain of the vIRC CC instances
101   virc_dns1:
102     type: string
103     description: First DNS nameserver for vIRC CC instances
104   virc_dns2:
105     type: string
106     description: Second DNS nameserver for vIRC CC instances
107   virc_default_gateway:
108     type: string
109     description: Default gateway for vIRC CC instances
110   virc_version:
111     type: string
112     description: vIRC CC deployment version
113   virc_environment:
114     type: string
115     description: vIRC CC deployment environment
116   virc_version_file:
117     type: string
118     description: vIRC CC version file name
119
120 resources:
121   virc_keypair:
122     type: OS::Nova::KeyPair
123     properties:
124       name:
125         str_replace:
126           template: VNF_NAME_virc_keypair
127           params:
128             VNF_NAME: { get_param: vnf_name }
129       public_key: { get_param: virc_ssh_public_key }
130       save_private_key: false
131
132
133   virc_RSG:
134     type: OS::Neutron::SecurityGroup
135     properties:
136       name:
137         str_replace:
138           template: VNF_NAME_virc_sg
139           params:
140             VNF_NAME: { get_param: vnf_name }
141       rules: { get_param: virc_sg_rules }
142
143