1 ##########################################################################
3 #==================LICENSE_START==========================================
6 # Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.
8 # Licensed under the Apache License, Version 2.0 (the "License");
9 # you may not use this file except in compliance with the License.
10 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
19 #==================LICENSE_END============================================
21 # ECOMP is a trademark and service mark of AT&T Intellectual Property.
23 ##########################################################################
25 heat_template_version: 2013-05-23
27 description: Heat template that deploys common resources
39 label: vLoadBalancer private network name or ID
40 description: Private network that connects vLoadBalancer with vDNSs
41 pktgen_private_net_id:
43 label: vPacketGen private network name or ID
44 description: Private network that connects vLoadBalancer with vPacketGen
47 label: vLoadBalancer private network CIDR
48 description: The CIDR of the vLoadBalancer private network
49 pktgen_private_net_cidr:
51 label: vPacketGen private network CIDR
52 description: The CIDR of the vPacketGen private network
56 description: The VNF ID is provided by ONAP
60 description: The VNF NAME is provided by ONAP
61 vlb_0_int_pktgen_private_port_0_mac:
63 label: vLB MAC address
64 description: MAC address of the vLB used by the vPacketGen VM
65 vpg_0_int_pktgen_private_port_0_mac:
67 label: vPacketGen MAC address
68 description: MAC address of the vPacketGen used by the vLB VM
72 description: Public/Private key pair name
76 description: Public key to be installed on the compute instance
88 type: OS::Heat::RandomString
93 type: OS::Nova::KeyPair
97 template: vnfname_base_rand
99 base: { get_param: key_name }
100 rand: { get_resource: random-str_0 }
101 vnfname: { get_param: vnf_name }
102 public_key: { get_param: pub_key }
103 save_private_key: false
105 # NETWORK_ROLE: private
107 type: OS::Neutron::Net
111 template: vnfname_privatenetid
113 privatenetid: { get_param: vlb_private_net_id }
114 vnfname: { get_param: vnf_name }
116 # NETWORK_ROLE: private
117 int_private_subnet_0:
118 type: OS::Neutron::Subnet
122 template: vnfname_privatenetid_subnet
124 privatenetid: { get_param: vlb_private_net_id }
125 vnfname: { get_param: vnf_name }
126 network: { get_resource: int_private_network }
127 cidr: { get_param: vlb_private_net_cidr }
129 # NETWORK_ROLE: pktgen_private
130 int_pktgen_private_network:
131 type: OS::Neutron::Net
135 template: vnfname_privatenetid
137 privatenetid: { get_param: pktgen_private_net_id }
138 vnfname: { get_param: vnf_name }
140 # NETWORK_ROLE: pktgen_private
141 int_pktgen_private_subnet_0:
142 type: OS::Neutron::Subnet
146 template: vnfname_privatenetid_subnet
148 privatenetid: { get_param: pktgen_private_net_id }
149 vnfname: { get_param: vnf_name }
150 network: { get_resource: int_pktgen_private_network }
151 cidr: { get_param: pktgen_private_net_cidr }
155 int_private_subnet_id:
156 value: { get_resource: int_private_subnet_0 }
158 value: { get_resource: int_private_network }
159 int_pktgen_private_subnet_id:
160 value: { get_resource: int_pktgen_private_subnet_0 }
161 int_pktgen_private_net_id:
162 value: { get_resource: int_pktgen_private_network }
164 value: { get_resource: my_keypair_0 }
166 value: { get_param: vnf_id }
168 value: { get_param: vnf_name }
170 value: { get_param: vlb_0_int_pktgen_private_port_0_mac }
172 value: { get_param: vpg_0_int_pktgen_private_port_0_mac }