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
63 label: VNF software version
64 description: VNF software version
66 vlb_0_int_pktgen_private_port_0_mac:
68 label: vLB MAC address
69 description: MAC address of the vLB used by the vPacketGen VM
70 vpg_0_int_pktgen_private_port_0_mac:
72 label: vPacketGen MAC address
73 description: MAC address of the vPacketGen used by the vLB VM
77 description: Public/Private key pair name
81 description: Public key to be installed on the compute instance
93 type: OS::Heat::RandomString
98 type: OS::Nova::KeyPair
102 template: vnfname_base_rand
104 base: { get_param: key_name }
105 rand: { get_resource: random-str_0 }
106 vnfname: { get_param: vnf_name }
107 public_key: { get_param: pub_key }
108 save_private_key: false
110 # NETWORK_ROLE: private
112 type: OS::Neutron::Net
116 template: vnfname_privatenetid
118 privatenetid: { get_param: vlb_private_net_id }
119 vnfname: { get_param: vnf_name }
121 # NETWORK_ROLE: private
122 int_private_subnet_0:
123 type: OS::Neutron::Subnet
127 template: vnfname_privatenetid_subnet
129 privatenetid: { get_param: vlb_private_net_id }
130 vnfname: { get_param: vnf_name }
131 network: { get_resource: int_private_network }
132 cidr: { get_param: vlb_private_net_cidr }
134 # NETWORK_ROLE: pktgen_private
135 int_pktgen_private_network:
136 type: OS::Neutron::Net
140 template: vnfname_privatenetid
142 privatenetid: { get_param: pktgen_private_net_id }
143 vnfname: { get_param: vnf_name }
145 # NETWORK_ROLE: pktgen_private
146 int_pktgen_private_subnet_0:
147 type: OS::Neutron::Subnet
151 template: vnfname_privatenetid_subnet
153 privatenetid: { get_param: pktgen_private_net_id }
154 vnfname: { get_param: vnf_name }
155 network: { get_resource: int_pktgen_private_network }
156 cidr: { get_param: pktgen_private_net_cidr }
160 int_private_subnet_id:
161 value: { get_resource: int_private_subnet_0 }
163 value: { get_resource: int_private_network }
164 int_pktgen_private_subnet_id:
165 value: { get_resource: int_pktgen_private_subnet_0 }
166 int_pktgen_private_net_id:
167 value: { get_resource: int_pktgen_private_network }
169 value: { get_resource: my_keypair_0 }
171 value: { get_param: vnf_id }
173 value: { get_param: vnf_name }
175 value: { get_param: vlb_0_int_pktgen_private_port_0_mac }
177 value: { get_param: vpg_0_int_pktgen_private_port_0_mac }