diff options
author | stark, steven <steven.stark@att.com> | 2019-07-19 07:54:54 -0700 |
---|---|---|
committer | Marco Platania <platania@research.att.com> | 2019-07-24 14:19:19 +0000 |
commit | e3c21ddc5076521fb35aa757a3507ef38ff1d0b5 (patch) | |
tree | 3cc348e39b7957dea97108c0ffdfe67851c79338 /heat/vFW_NextGen/templates/base_template.yaml | |
parent | 659cfffac71940e453f415271f23965de53c049e (diff) |
[DEMO] Making vFW_NextGen compliant with heat guidelines
NOTE: Did not comment out environment file parameters
Changed unprotected_private network_role to private1
Changed protected_private network_role to private2
Issue-ID: VVP-232
Signed-off-by: stark, steven <steven.stark@att.com>
Change-Id: I30feb6bcae916d2ed2b17d8cb37dd7828a79815b
Diffstat (limited to 'heat/vFW_NextGen/templates/base_template.yaml')
-rw-r--r-- | heat/vFW_NextGen/templates/base_template.yaml | 90 |
1 files changed, 54 insertions, 36 deletions
diff --git a/heat/vFW_NextGen/templates/base_template.yaml b/heat/vFW_NextGen/templates/base_template.yaml index 9184fdaf..47dce5e7 100644 --- a/heat/vFW_NextGen/templates/base_template.yaml +++ b/heat/vFW_NextGen/templates/base_template.yaml @@ -33,39 +33,21 @@ 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 ############# # # @@ -77,30 +59,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 } |