X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=heat%2FvFW_NextGen%2Ftemplates%2Fbase_template.yaml;h=9b53d784dbc96993668d5ed413dc8acf3556e024;hb=e53a1e72467e8c272c48be0019fb7c06821a5f43;hp=9184fdafcbe51e438e897bfa243789f7ffaccb67;hpb=07cad37303fc6a64fa0f6bf5f99d3a9fab2ccceb;p=demo.git diff --git a/heat/vFW_NextGen/templates/base_template.yaml b/heat/vFW_NextGen/templates/base_template.yaml index 9184fdaf..9b53d784 100644 --- a/heat/vFW_NextGen/templates/base_template.yaml +++ b/heat/vFW_NextGen/templates/base_template.yaml @@ -33,39 +33,26 @@ description: Heat template that deploys a private network for ONAP VNFs ############## parameters: - unprotected_private_net_id: - type: string - label: Unprotected private network name or ID - description: Private network that connects vPacketGenerator with vFirewall - unprotected_private_subnet_id: - type: string - label: Unprotected private subnetwork name or ID - description: Private subnetwork of the protected network - unprotected_private_net_cidr: + int_private1_net_cidr: type: string label: Unprotected private network CIDR description: The CIDR of the unprotected private network - protected_private_net_id: - type: string - label: Protected private network name or ID - description: Private network that connects vFirewall with vSink - protected_private_subnet_id: - type: string - label: Protected private subnetwork name or ID - description: Private subnetwork of the unprotected network - protected_private_net_cidr: + int_private2_net_cidr: type: string label: Protected private network CIDR description: The CIDR of the protected private network - key_name: - type: string - label: Key pair name - description: Public/Private key pair name pub_key: type: string label: Public key description: Public key to be installed on the compute instance - + vnf_name: + type: string + description: VNF_NAME + vnf_software_version: + type: string + label: VNF software version + description: VNF software version + default: 1.0.0 ############# # # @@ -77,30 +64,66 @@ resources: my_keypair: type: OS::Nova::KeyPair properties: - name: { get_param: key_name } + name: + str_replace: + template: vnfname_key_name + params: + vnfname: { get_param: vnf_name } public_key: { get_param: pub_key } save_private_key: false - unprotected_private_network: + int_private1_network: type: OS::Neutron::Net properties: - name: { get_param: unprotected_private_net_id } + name: + str_replace: + template: vnfname_int_private1_net + params: + vnfname: { get_param: vnf_name } - unprotected_private_subnet: + int_private1_subnet: type: OS::Neutron::Subnet properties: - name: { get_param: unprotected_private_subnet_id } - network_id: { get_resource: unprotected_private_network } - cidr: { get_param: unprotected_private_net_cidr } + name: + str_replace: + template: vnfname_int_private1_subnet + params: + vnfname: { get_param: vnf_name } + network: { get_resource: int_private1_network } + cidr: { get_param: int_private1_net_cidr } - protected_private_network: + int_private2_network: type: OS::Neutron::Net properties: - name: { get_param: protected_private_net_id } + name: + str_replace: + template: vnfname_int_private2_net + params: + vnfname: { get_param: vnf_name } - protected_private_subnet: + int_private2_subnet: type: OS::Neutron::Subnet properties: - name: { get_param: protected_private_subnet_id } - network_id: { get_resource: protected_private_network } - cidr: { get_param: protected_private_net_cidr } \ No newline at end of file + name: + str_replace: + template: vnfname_int_private2_subnet + params: + vnfname: { get_param: vnf_name } + network: { get_resource: int_private2_network } + cidr: { get_param: int_private2_net_cidr } + +outputs: + int_private1_net_id: + value: { get_resource: int_private1_network } + int_private1_subnet_id: + value: { get_resource: int_private1_subnet } + int_private2_net_id: + value: { get_resource: int_private2_network } + int_private2_subnet_id: + value: { get_resource: int_private2_subnet } + int_private2_net_cidr: + value: { get_param: int_private2_net_cidr } + int_private1_net_cidr: + value: { get_param: int_private1_net_cidr } + key_name: + value: { get_resource: my_keypair }