push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / heat / resources / OS_Neutron_Net / inputs / ep-jsa_net.yaml
1 heat_template_version: 2013-05-23
2
3 description: >
4   Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
5
6 parameters:
7   param_string:
8       type: string
9       description: param String - string
10   param_number:
11       type: number
12       description: param number - float
13   param_json:
14       type: json
15       description: param json - map<String>
16   param_boolean:
17       type: boolean
18       description: param boolean - boolean
19   param_comma_delimited_list:
20       type: comma_delimited_list
21       description: param comma_delimited_list - List
22
23   jsa_net_name:
24     type: string
25     description: network name of jsa log network
26   jsa_cidr:
27     type: string
28     description: CIDR of jsa log network
29   user_name:
30     type: string
31     label: User Name
32     description: User name to be configured for the application
33     hidden: true
34     constraints:
35       - length: { min: 6, max: 8 }
36         description: User name must be between 6 and 8 characters
37       - allowed_pattern: "[A-Z]+[a-zA-Z0-9]*"
38         description: User name must start with an uppercase character
39       - range: { min: 0, max: 10 }
40   instance_type:
41     type: string
42     label: Instance Type
43     description: Instance type for compute instances
44     constraints:
45       - allowed_values:
46         - m1.small
47         - m1.medium
48         - m1.large
49
50 resources:
51   jsa_subnet:
52     type: OS::Neutron::Subnet
53     properties:
54       network_id: {get_resource: jsa_net}
55       cidr: {get_param: jsa_cidr}
56
57   jsa_net:
58     type: OS::Neutron::Net
59     properties:
60       name: {get_param: jsa_net_name}
61       shared: True
62
63   jsa_net_test_full_attribute:
64     type: OS::Neutron::Net
65     properties:
66       name: {get_param: jsa_net_name}
67       shared: True
68       dhcp_agent_ids: ['1000','1001','1002']
69       tenant_id: 23456
70       port_security_enabled: t
71       admin_state_up: 0
72       qos_policy: full
73       value_specs:
74             key1: "spec1"
75             key2: "spec2"
76
77   jsa_net_test_full_attribute_subnet:
78     type: OS::Neutron::Subnet
79     properties:
80       network_id: {get_resource: jsa_net_test_full_attribute}
81       cidr: {get_param: jsa_cidr}
82
83   jsa_net_test_get_attribute_2_params:
84     type: OS::Neutron::Net
85     properties:
86       name: {get_attr: [jsa_net, name]}
87       shared: True
88       dhcp_agent_ids: ['1000','1001','1002']
89       tenant_id: 23456
90       port_security_enabled: t
91       admin_state_up: 0
92       qos_policy: full
93       value_specs:
94             key1: "spec1"
95
96   jsa_net_test_get_attribute_3_params:
97     type: OS::Neutron::Net
98     properties:
99       name: {get_attr: [jsa_net, name, 0]}
100       shared: True
101       dhcp_agent_ids: ['1000','1001','1002']
102       tenant_id: 23456
103       port_security_enabled: t
104       admin_state_up: 0
105       qos_policy: full
106       value_specs:
107             key1: "spec1"
108
109   jsa_net_test_get_attribute_4_params:
110     type: OS::Neutron::Net
111     properties:
112       name: {get_attr: [jsa_net, name, 0,a1]}
113       shared: True
114       dhcp_agent_ids: ['1000','1001','1002']
115       tenant_id: 23456
116       port_security_enabled: t
117       admin_state_up: 0
118       qos_policy: full
119       value_specs:
120             key1: "spec1"
121
122   jsa_net_test_get_attribute_5_params:
123     type: OS::Neutron::Net
124     properties:
125       name: {get_attr: [jsa_net, name, 0, a1, a2]}
126       shared: True
127       dhcp_agent_ids: ['1000','1001','1002']
128       tenant_id: 23456
129       port_security_enabled: t
130       admin_state_up: 0
131       qos_policy: full
132       value_specs:
133             key1: "spec1"
134
135