diff options
author | AviZi <avi.ziv@amdocs.com> | 2017-06-09 02:39:56 +0300 |
---|---|---|
committer | AviZi <avi.ziv@amdocs.com> | 2017-06-09 02:39:56 +0300 |
commit | 280f8015d06af1f41a3ef12e8300801c7a5e0d54 (patch) | |
tree | 9c1d3978c04cd28068f02073038c936bb49ca9e0 /openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/mixPatterns/duplicateResourceIdsInDiffAddOnFiles | |
parent | fd3821dad11780d33c5373d74c957c442489945e (diff) |
[SDC-29] Amdocs OnBoard 1707 initial commit.
Change-Id: Ie4d12a3f574008b792899b368a0902a8b46b5370
Signed-off-by: AviZi <avi.ziv@amdocs.com>
Diffstat (limited to 'openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/mixPatterns/duplicateResourceIdsInDiffAddOnFiles')
7 files changed, 1332 insertions, 0 deletions
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/mixPatterns/duplicateResourceIdsInDiffAddOnFiles/in/MANIFEST.json b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/mixPatterns/duplicateResourceIdsInDiffAddOnFiles/in/MANIFEST.json new file mode 100644 index 0000000000..e8e750118e --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/mixPatterns/duplicateResourceIdsInDiffAddOnFiles/in/MANIFEST.json @@ -0,0 +1,39 @@ +{ + "name": "", + "description": "", + "data": [ + { + "file": "base_vota.yml", + "type": "HEAT", + "isBase": "true", + "data": [ + { + "file": "base_vota.env", + "type": "HEAT_ENV" + } + ] + }, + { + "file": "module_9_lb2_vota.yml", + "type": "HEAT", + "isBase": "false", + "data": [ + { + "file": "module_9_lb2_vota.env", + "type": "HEAT_ENV" + } + ] + }, + { + "file": "module_8_lb1_vota.yml", + "type": "HEAT", + "isBase": "false", + "data": [ + { + "file": "module_8_lb1_vota.env", + "type": "HEAT_ENV" + } + ] + } + ] +}
\ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/mixPatterns/duplicateResourceIdsInDiffAddOnFiles/in/base_vota.env b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/mixPatterns/duplicateResourceIdsInDiffAddOnFiles/in/base_vota.env new file mode 100644 index 0000000000..d433114825 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/mixPatterns/duplicateResourceIdsInDiffAddOnFiles/in/base_vota.env @@ -0,0 +1,33 @@ +parameters: +### + apps_db_int_net_cidr: 172.26.4.0/24 + apps_db_int_net_gateway: 172.26.4.1 + apps_db_int_net_dhcp: "true" +### + app1_kms_int_net_cidr: 172.26.3.0/24 + app1_kms_int_net_gateway: 172.26.3.1 + app1_kms_int_net_dhcp: "true" +### + apps_int_net_cidr: 172.26.2.0/24 + apps_int_net_gateway: 172.26.2.1 + apps_int_net_dhcp: "true" +### + lb1_gwaf_int_net_cidr: 172.26.0.0/24 + lb1_gwaf_int_net_gateway: 172.26.0.1 + lb_gwaf_int_net_dhcp: true +### + gwaf_lb2_int_net_cird: 172.26.1.0/24 + gwaf_lb2_int_net_gateway: 172.26.1.1 + gwaf_lb2_int_net_pool_start: 172.26.1.6 + gwaf_lb2_int_net_pool_end: 172.26.1.200 +### + lb3_kms_int_net_cidr: 172.26.5.0/24 + lb3_kms_int_net_gateway: 172.26.5.1 + lb3_kms_int_net_dhcp: "true" +##### + int_oam_int_net_cidr: 172.26.13.0/24 + int_oam_int_net_gateway: 172.26.13.1 + int_oam_int_net_dhcp: "true" +#### + +# vnf_name: vOTA-25348-Lab-03v3-01
\ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/mixPatterns/duplicateResourceIdsInDiffAddOnFiles/in/base_vota.yml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/mixPatterns/duplicateResourceIdsInDiffAddOnFiles/in/base_vota.yml new file mode 100644 index 0000000000..525c72fb3a --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/mixPatterns/duplicateResourceIdsInDiffAddOnFiles/in/base_vota.yml @@ -0,0 +1,495 @@ +heat_template_version: 2015-04-30 + +description: > + HOT template to create network stack + +parameters: +#### + + int_oam_int_net_cidr: + type: string + description: int oam network + int_oam_int_net_gateway: + type: string + description: gateway for int oam + int_oam_int_net_dhcp: + type: string + description: int oam dhcp + +##### + + apps_db_int_net_cidr: + type: string + description: apps db int cidr + apps_db_int_net_gateway: + type: string + description: apps db int gateway + apps_db_int_net_dhcp: + type: string + description: apps db int dhcp +### + lb3_kms_int_net_cidr: + type: string + description: lb3 network + lb3_kms_int_net_gateway: + type: string + description: lb3 gateway + lb3_kms_int_net_dhcp: + type: string + description: lb3 kms dhcp +### + + app1_kms_int_net_cidr: + type: string + description: app1_kms network + app1_kms_int_net_gateway: + type: string + description: app1_kms gateway + app1_kms_int_net_dhcp: + type: string + description: app1_kms dhcp +#### + + apps_int_net_cidr: + type: string + description: apps int net + apps_int_net_gateway: + type: string + description: apps int gateway + apps_int_net_dhcp: + type: string + description: apps int dhcp +#### + + lb1_gwaf_int_net_cidr: + type: string + description: lb1 gwaf + lb1_gwaf_int_net_gateway: + type: string + description: lb1 gwaf gateway + lb_gwaf_int_net_dhcp: + type: string + description: lb1 gwaf description +#### + gwaf_lb2_int_net_cird: + type: string + description: epc_sctp_a subnet + gwaf_lb2_int_net_gateway: + type: string + description: GWAF_LB2 network gateway + gwaf_lb2_int_net_pool_start: + type: string + description: GWAF_LB2 network ip pool start IP address + gwaf_lb2_int_net_pool_end: + type: string + description: GWAF_LB2 network ip pool end IP address + +#### + vnf_name: + type: string + description: vnf name + +resources: + + apps_db_int_net: + type: OS::Neutron::Net + properties: + name: + str_replace: + template: VF_NAME_apps_db_int_net + params: + VF_NAME: {get_param: vnf_name} + + apps_db_int_subnet: + type: OS::Neutron::Subnet + properties: + network: { get_resource: apps_db_int_net } + cidr: { get_param: apps_db_int_net_cidr } + gateway_ip: { get_param: apps_db_int_net_gateway} + enable_dhcp: { get_param: apps_db_int_net_dhcp } + + + app1_kms_int_net: + type: OS::Neutron::Net + properties: + name: + str_replace: + template: VF_NAME_app1_kms_int_net + params: + VF_NAME: {get_param: vnf_name} + + + app1_kms_int_subnet: + type: OS::Neutron::Subnet + properties: + network: { get_resource: app1_kms_int_net } + cidr: { get_param: app1_kms_int_net_cidr } + gateway_ip: { get_param: app1_kms_int_net_gateway} + enable_dhcp: { get_param: app1_kms_int_net_dhcp } + + + + apps_int_net: + type: OS::Neutron::Net + properties: + name: + str_replace: + template: VF_NAME_apps_int_net + params: + VF_NAME: {get_param: vnf_name} + + + apps_int_subnet: + type: OS::Neutron::Subnet + properties: + network: { get_resource: apps_int_net } + cidr: { get_param: apps_int_net_cidr } + gateway_ip: { get_param: apps_int_net_gateway } + enable_dhcp: { get_param: apps_int_net_dhcp } + + lb1_gwaf_int_net: + type: OS::Neutron::Net + properties: + name: + str_replace: + template: VF_NAME_lb1_gwaf_int_net + params: + VF_NAME: {get_param: vnf_name} + + + lb1_gwaf_subnet: + type: OS::Neutron::Subnet + properties: + network: { get_resource: lb1_gwaf_int_net } + cidr: { get_param: lb1_gwaf_int_net_cidr } + gateway_ip: { get_param: lb1_gwaf_int_net_gateway } + enable_dhcp: { get_param: lb_gwaf_int_net_dhcp } + + + gwaf_lb2_int_net: + type: OS::Neutron::Net + properties: + name: + str_replace: + template: VF_NAME_gwaf_lb2_int_net + params: + VF_NAME: {get_param: vnf_name} + + + gwaf_lb2_subnet: + type: OS::Neutron::Subnet + properties: + network: { get_resource: gwaf_lb2_int_net } + cidr: { get_param: gwaf_lb2_int_net_cird } + gateway_ip: { get_param: gwaf_lb2_int_net_gateway } + allocation_pools: + - start: { get_param: gwaf_lb2_int_net_pool_start } + end: { get_param: gwaf_lb2_int_net_pool_end } + + + lb3_kms_int_net: + type: OS::Neutron::Net + properties: + name: + str_replace: + template: VF_NAME_lb3_kms_int_net + params: + VF_NAME: {get_param: vnf_name} + + + LB3_KMS_subnet: + type: OS::Neutron::Subnet + properties: + network: { get_resource: lb3_kms_int_net } + cidr: { get_param: lb3_kms_int_net_cidr } + enable_dhcp: { get_param: lb3_kms_int_net_dhcp } + gateway_ip: { get_param: lb3_kms_int_net_gateway } + + int_oam_int_net: + type: OS::Neutron::Net + properties: + name: + str_replace: + template: VF_NAME_int_oam_int_net + params: + VF_NAME: {get_param: vnf_name} + + + int_oam_subnet: + type: OS::Neutron::Subnet + properties: + network: { get_resource: int_oam_int_net } + cidr: { get_param: int_oam_int_net_cidr } + enable_dhcp: { get_param: int_oam_int_net_dhcp } + gateway_ip: { get_param: int_oam_int_net_gateway } + + + + oam_sec_group: + type: OS::Neutron::SecurityGroup + properties: + description: oam security group + name: + str_replace: + template: VF_NAME-oam_sec_group + params: + VF_NAME: {get_param: vnf_name} + rules: [{"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": egress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": ingress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0} + ] + + int_oam_int_sec_group: + type: OS::Neutron::SecurityGroup + properties: + description: oam security group + name: + str_replace: + template: VF_NAME-int_oam_sec_group + params: + VF_NAME: {get_param: vnf_name} + rules: [{"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": egress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": ingress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0} + ] + + + db_core_sec_group: + type: OS::Neutron::SecurityGroup + properties: + description: db core security group + name: + str_replace: + template: VF_NAME-db_core_sec_group + params: + VF_NAME: {get_param: vnf_name} + rules: [{"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": egress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": ingress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0} + ] + + otacs_core_sec_group: + type: OS::Neutron::SecurityGroup + properties: + description: otacs core security group + name: + str_replace: + template: VF_NAME-otacs_core_sec_group + params: + VF_NAME: {get_param: vnf_name} + rules: [{"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": egress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": ingress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0} + ] + + + apps_int_sec_group: + type: OS::Neutron::SecurityGroup + properties: + description: apps security group + name: + str_replace: + template: VF_NAME-apps_int_sec_group + params: + VF_NAME: {get_param: vnf_name} + rules: [{"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": egress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": ingress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0} + ] + + apps_db_int_sec_group: + type: OS::Neutron::SecurityGroup + properties: + description: apps db security group + name: + str_replace: + template: VF_NAME-apps_db_int_sec_group + params: + VF_NAME: {get_param: vnf_name} + rules: [{"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": egress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": ingress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0} + ] + + + lb1_gwaf_int_sec_group: + type: OS::Neutron::SecurityGroup + properties: + description: fromexternal gwaf security group + name: + str_replace: + template: VF_NAME-lb1_gwaf_int_sec_group + params: + VF_NAME: {get_param: vnf_name} + rules: [{"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": egress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": ingress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0} + ] + + + gwaf_lb2_sec_group: + type: OS::Neutron::SecurityGroup + properties: + description: gwaf1_app1 security group + name: + str_replace: + template: VF_NAME-gwaf_lb2_sec_group + params: + VF_NAME: {get_param: vnf_name} + rules: [{"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": egress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": ingress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0} + ] + + app1_kms_int_sec_group: + type: OS::Neutron::SecurityGroup + properties: + description: app1 kms security group + name: + str_replace: + template: VF_NAME-app1_kms_int_sec_group + params: + VF_NAME: {get_param: vnf_name} + rules: [{"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": egress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": ingress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0} + ] + + + lb1_oam_sec_group: + type: OS::Neutron::SecurityGroup + properties: + description: LB1 all security group + name: + str_replace: + template: VF_NAME-lb1_oam_sec_group + params: + VF_NAME: {get_param: vnf_name} + rules: [{"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": egress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": ingress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0} + ] + + lb3_kms_int_sec_group: + type: OS::Neutron::SecurityGroup + properties: + description: lb3_kms_int_sec_group + name: + str_replace: + template: VF_NAME-lb3_kms_int_sec_group + params: + VF_NAME: {get_param: vnf_name} + rules: [{"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": egress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0}, + {"direction": ingress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0} + ] + + +outputs: + + apps_db_int_net_id: + description: uuid of the network + value: {get_resource: apps_db_int_net } + + app1_kms_int_net_id: + description: uuid of the network + value: {get_resource: app1_kms_int_net } + + apps_int_net_id: + description: uuid of the network + value: {get_resource: apps_int_net } + + lb1_gwaf_int_net_id: + description: uuid of the network + value: {get_resource: lb1_gwaf_int_net } + + gwaf_lb2_int_net_id: + description: uuid of the network + value: {get_resource: gwaf_lb2_int_net } + + lb3_kms_int_net_id: + description: uuid of the network + value: {get_resource: lb3_kms_int_net } + + int_oam_int_net_id: + description: uuid of the network + value: {get_resource: int_oam_int_net } + + oam_protected_sec_group_id: + description: uuid of the security group + value: {get_resource: oam_sec_group } + + int_oam_int_sec_group_id: + description: uuid of the security group + value: {get_resource: int_oam_int_sec_group } + + db_core_sec_group_id: + description: uuid of the security group + value: {get_resource: db_core_sec_group } + + otacs_core_sec_group_id: + description: uuid of the security group + value: {get_resource: otacs_core_sec_group } + + apps_int_sec_group_id: + description: uuid of the security group + value: {get_resource: apps_int_sec_group } + + apps_db_int_sec_group_id: + description: uuid of the security group + value: {get_resource: apps_db_int_sec_group } + + lb1_gwaf_int_sec_group_id: + description: uuid of the security group + value: {get_resource: lb1_gwaf_int_sec_group } + + gwaf_lb2_int_sec_group_id: + description: uuid of the security group + value: {get_resource: gwaf_lb2_sec_group } + + app1_kms_int_sec_group_id: + description: uuid of the security group + value: {get_resource: app1_kms_int_sec_group } + + lb1_oam_protected_sec_group_id: + description: uuid of the security group + value: {get_resource: lb1_oam_sec_group } + + lb3_kms_int_sec_group_id: + description: uuid of the security group + value: {get_resource: lb3_kms_int_sec_group } + + diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/mixPatterns/duplicateResourceIdsInDiffAddOnFiles/in/module_8_lb1_vota.env b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/mixPatterns/duplicateResourceIdsInDiffAddOnFiles/in/module_8_lb1_vota.env new file mode 100644 index 0000000000..c1c030cb40 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/mixPatterns/duplicateResourceIdsInDiffAddOnFiles/in/module_8_lb1_vota.env @@ -0,0 +1,50 @@ +parameters: +# VN config +# int_oam_int_net_id: 'default-domain:vOTA:vOTA-25348-Lab-03v3-01_int_oam_int_net' +# lb1_gwaf_int_net_id: 'default-domain:vOTA:vOTA-25348-Lab-03v3-01_lb1_gwaf_int_net' +# oam_protected_net: 'default-domain:vOTA-25348-Lab-03v3:MNS-25180-L-06Shared_OAM_PROTECTED_NET_1' +# VM config + LB1_flavor_name: 'gv.c4r8d320' + LB1_image_name: 'LB2_AIC' + lb_key_name: vOTA-25348-Lab-03v3-key_pair +# availability_zone_0: rdm3-kvm-az01 +# availability_zone_0: rdm3-kvm-az02 +# LB1_name_0: 'ZRDM3vOTA03LB0010' +# LB1_name_1: 'ZRDM3vOTA03LB0011' +# aap_core +# aap_core_ip_prefix: 107.239.83.114 + aap_core_ip_prefix_len: 32 + aap_core_ha_mode : 'active-standby' + aap_core_mac: '00:00:00:00:00:00' +###ip addresses + lb_oam_int_ip_0: 172.26.13.130 + lb_lb1_gwaf_int_ip_0: 172.26.0.50 +# lb_oam_protected_ip_0: 107.239.83.112 + lb_oam_int_ip_1: 172.26.13.131 + lb_lb1_gwaf_int_ip_1: 172.26.0.51 +# lb_oam_protected_ip_1: 107.239.83.113 + # oam_gw: 107.250.173.1 +##general +# vnf_id: vOTA +# vf_module_id: dummy +###security groups +# oam_protected_sec_group_id: 'default-domain:vOTA:vOTA-25348-Lab-03v3-01-lb1_oam_sec_group' +# lb1_gwaf_int_sec_group_id: 'default-domain:vOTA:vOTA-25348-Lab-03v3-01-lb1_gwaf_int_sec_group' +# int_oam_int_sec_group_id: 'default-domain:vOTA:vOTA-25348-Lab-03v3-01-int_oam_sec_group' +####health check + shc_enabled: True + shc_monitor_type: PING + shc_delay: 3 + shc_timeout: 5 + shc_max_retries: 2 + shc_url_path: 'local-ip' +#####ECMP hash + ecmp_hashing_include_fields_hashing_configured: True + ecmp_hashing_include_fields_source_ip: True + ecmp_hashing_include_fields_destination_port: True + ecmp_hashing_include_fields_source_port: False + ecmp_hashing_include_fields_destination_ip: False + ecmp_hashing_include_fields_ip_protocol: False +# + + diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/mixPatterns/duplicateResourceIdsInDiffAddOnFiles/in/module_8_lb1_vota.yml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/mixPatterns/duplicateResourceIdsInDiffAddOnFiles/in/module_8_lb1_vota.yml new file mode 100644 index 0000000000..ebc6ed1212 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/mixPatterns/duplicateResourceIdsInDiffAddOnFiles/in/module_8_lb1_vota.yml @@ -0,0 +1,336 @@ +heat_template_version: 2015-04-30 + +parameters: +#### + int_oam_int_net_id: + type: string + description: Name of management network to be created + lb1_gwaf_int_net_id: + type: string + description: Name of mirror network to be created + oam_protected_net: + type: string + description: Name of mirror network to be created +#### + lb_key_name: + type: string + LB1_name_0: + type: string + description: Name of the SVM + LB1_name_1: + type: string + description: Name of the SVM + LB1_flavor_name: + type: string + description: Flavor of the end VMs + LB1_image_name: + type: string + description: Name of the end VM LB_image_name +# aap_core + aap_core_ip_prefix: + type: string + description: ip_prefix for the ServiceInstance + aap_core_ip_prefix_len: + type: number + description: ip_prefix_len for the ServiceInstance + aap_core_ha_mode: + type: string + description: address_mode for the ServiceInstance + aap_core_mac: + type: string + description: mac for the VirtualMachineInterface + lb_oam_int_ip_0: + type: string + description: lb ip + lb_lb1_gwaf_int_ip_0: + type: string + description: lb ip + lb_oam_protected_ip_0: + type: string + description: lb ip + lb_oam_int_ip_1: + type: string + description: lb ip + lb_lb1_gwaf_int_ip_1: + type: string + description: lb ip + lb_oam_protected_ip_1: + type: string + description: lb ip + vf_module_id: + type: string + description: Unique ID for this VF Module instance + vnf_id: + type: string + description: Name of vOTA instance for ECOMP + availability_zone_0: + type: string + description: lb availability zone + availability_zone_1: + type: string + description: lb availability zone + int_oam_int_sec_group_id: + type: string + description: int oam sec group + lb1_gwaf_int_sec_group_id: + type: string + description: lb1 gwaf sec group id + oam_protected_sec_group_id: + type: string + description: oam protected sec group + shc_enabled: + type: string + description: health check + shc_monitor_type: + type: string + description: health check + shc_delay: + type: string + description: health check + shc_timeout: + type: string + description: health check + shc_max_retries: + type: string + description: health check + shc_url_path: + type: string + description: health check + ecmp_hashing_include_fields_hashing_configured: + type: string + description: health check + ecmp_hashing_include_fields_source_ip: + type: string + description: ecmp hash + ecmp_hashing_include_fields_destination_port: + type: string + description: ecmp hash + ecmp_hashing_include_fields_source_port: + type: string + description: ecmp hash + ecmp_hashing_include_fields_destination_ip: + type: string + description: ecmp hash + ecmp_hashing_include_fields_ip_protocol: + type: string + description: ecmp hash + oam_gw: + type: string + description: oam gw +resources: + + + + lb_0_int_oam_int_0_port: + type: OS::ContrailV2::VirtualMachineInterface + properties: + virtual_machine_interface_properties: + { + virtual_machine_interface_properties_service_interface_type: { get_param: int_oam_int_net_id }, + } + virtual_network_refs: [{ get_param: int_oam_int_net_id }] + security_group_refs: [{ get_param: int_oam_int_sec_group_id}] + + lb_0_lb1_gwaf_int_1_port: + type: OS::ContrailV2::VirtualMachineInterface + properties: + virtual_machine_interface_properties: + { + virtual_machine_interface_properties_service_interface_type: { get_param: lb1_gwaf_int_net_id }, + } + virtual_network_refs: [{ get_param: lb1_gwaf_int_net_id }] + security_group_refs: [{ get_param: lb1_gwaf_int_sec_group_id }] + + lb_0_oam_protected_2_port: + type: OS::ContrailV2::VirtualMachineInterface + properties: + virtual_network_refs: [{ get_param: oam_protected_net }] + service_health_check_refs: + - get_resource: lb_oam_protected_hc + ecmp_hashing_include_fields: + ecmp_hashing_include_fields_hashing_configured: { get_param: ecmp_hashing_include_fields_hashing_configured } + ecmp_hashing_include_fields_source_ip: { get_param: ecmp_hashing_include_fields_source_ip } + ecmp_hashing_include_fields_destination_port: { get_param: ecmp_hashing_include_fields_destination_port } + ecmp_hashing_include_fields_destination_ip: { get_param: ecmp_hashing_include_fields_destination_ip } + ecmp_hashing_include_fields_source_port: { get_param: ecmp_hashing_include_fields_source_port } + ecmp_hashing_include_fields_ip_protocol: { get_param: ecmp_hashing_include_fields_ip_protocol } + virtual_machine_interface_allowed_address_pairs: + { + virtual_machine_interface_allowed_address_pairs_allowed_address_pair: + [{ + virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip: + { + virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix: { get_param: aap_core_ip_prefix }, + virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix_len: { get_param: aap_core_ip_prefix_len }, + }, + virtual_machine_interface_allowed_address_pairs_allowed_address_pair_mac: { get_param: aap_core_mac }, + virtual_machine_interface_allowed_address_pairs_allowed_address_pair_address_mode: { get_param: aap_core_ha_mode }, + }], + } + security_group_refs: [{ get_param: oam_protected_sec_group_id }] + + lb_1_int_oam_int_0_port: + type: OS::ContrailV2::VirtualMachineInterface + properties: + virtual_machine_interface_properties: + { + virtual_machine_interface_properties_service_interface_type: { get_param: int_oam_int_net_id }, + } + virtual_network_refs: [{ get_param: int_oam_int_net_id }] + security_group_refs: [{ get_param: int_oam_int_sec_group_id}] + + lb_1_lb1_gwaf_int_1_port: + type: OS::ContrailV2::VirtualMachineInterface + properties: + virtual_machine_interface_properties: + { + virtual_machine_interface_properties_service_interface_type: { get_param: lb1_gwaf_int_net_id }, + } + virtual_network_refs: [{ get_param: lb1_gwaf_int_net_id }] + security_group_refs: [{ get_param: lb1_gwaf_int_sec_group_id }] + + lb_1_oam_protected_2_port: + type: OS::ContrailV2::VirtualMachineInterface + properties: + virtual_network_refs: [{ get_param: oam_protected_net }] + service_health_check_refs: + - get_resource: lb_oam_protected_hc + ecmp_hashing_include_fields: + ecmp_hashing_include_fields_hashing_configured: { get_param: ecmp_hashing_include_fields_hashing_configured } + ecmp_hashing_include_fields_source_ip: { get_param: ecmp_hashing_include_fields_source_ip } + ecmp_hashing_include_fields_destination_port: { get_param: ecmp_hashing_include_fields_destination_port } + ecmp_hashing_include_fields_destination_ip: { get_param: ecmp_hashing_include_fields_destination_ip } + ecmp_hashing_include_fields_source_port: { get_param: ecmp_hashing_include_fields_source_port } + ecmp_hashing_include_fields_ip_protocol: { get_param: ecmp_hashing_include_fields_ip_protocol } + virtual_machine_interface_allowed_address_pairs: + { + virtual_machine_interface_allowed_address_pairs_allowed_address_pair: + [{ + virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip: + { + virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix: { get_param: aap_core_ip_prefix }, + virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix_len: { get_param: aap_core_ip_prefix_len }, + }, + virtual_machine_interface_allowed_address_pairs_allowed_address_pair_mac: { get_param: aap_core_mac }, + virtual_machine_interface_allowed_address_pairs_allowed_address_pair_address_mode: { get_param: aap_core_ha_mode }, + }], + } + security_group_refs: [{ get_param: oam_protected_sec_group_id }] + + lb_0_int_oam_int_0_ip: + type: OS::ContrailV2::InstanceIp + depends_on: [ lb_0_int_oam_int_0_port ] + properties: + virtual_machine_interface_refs: [{ get_resource: lb_0_int_oam_int_0_port }] + virtual_network_refs: [{ get_param: int_oam_int_net_id }] + instance_ip_address: { get_param: lb_oam_int_ip_0 } + + + lb_0_lb1_gwaf_int_1_ip: + type: OS::ContrailV2::InstanceIp + depends_on: [ lb_0_lb1_gwaf_int_1_port ] + properties: + virtual_machine_interface_refs: [{ get_resource: lb_0_lb1_gwaf_int_1_port }] + virtual_network_refs: [{ get_param: lb1_gwaf_int_net_id }] + instance_ip_address: { get_param: lb_lb1_gwaf_int_ip_0 } + + + lb_0_oam_protected_2_ip: + type: OS::ContrailV2::InstanceIp + depends_on: [ lb_0_oam_protected_2_port ] + properties: + virtual_machine_interface_refs: [{ get_resource: lb_0_oam_protected_2_port }] + virtual_network_refs: [{ get_param: oam_protected_net }] + instance_ip_address: { get_param: lb_oam_protected_ip_0 } + + + lb_1_int_oam_int_0_ip: + type: OS::ContrailV2::InstanceIp + depends_on: [ lb_1_int_oam_int_0_port ] + properties: + virtual_machine_interface_refs: [{ get_resource: lb_1_int_oam_int_0_port }] + virtual_network_refs: [{ get_param: int_oam_int_net_id }] + instance_ip_address: { get_param: lb_oam_int_ip_1 } + + + lb_1_lb1_gwaf_int_1_ip: + type: OS::ContrailV2::InstanceIp + depends_on: [ lb_1_lb1_gwaf_int_1_port ] + properties: + virtual_machine_interface_refs: [{ get_resource: lb_1_lb1_gwaf_int_1_port }] + virtual_network_refs: [{ get_param: lb1_gwaf_int_net_id }] + instance_ip_address: { get_param: lb_lb1_gwaf_int_ip_1 } + + + lb_1_oam_protected_2_ip: + type: OS::ContrailV2::InstanceIp + depends_on: [ lb_1_oam_protected_2_port ] + properties: + virtual_machine_interface_refs: [{ get_resource: lb_1_oam_protected_2_port }] + virtual_network_refs: [{ get_param: oam_protected_net }] + instance_ip_address: { get_param: lb_oam_protected_ip_1 } + + + lb_oam_protected_hc: + type: OS::ContrailV2::ServiceHealthCheck + properties: + name: oam_protected_hc_PING + service_health_check_properties: + service_health_check_properties_enabled: { get_param: shc_enabled } + service_health_check_properties_monitor_type: { get_param: shc_monitor_type } + service_health_check_properties_delay: { get_param: shc_delay } + service_health_check_properties_timeout: { get_param: shc_timeout } + service_health_check_properties_max_retries: { get_param: shc_max_retries } + service_health_check_properties_url_path: { get_param: shc_url_path } + + + + LB1_0: + type: OS::Nova::Server + depends_on: [ lb_0_int_oam_int_0_ip, lb_0_lb1_gwaf_int_1_ip, lb_0_oam_protected_2_ip ] + properties: + name: {get_param: LB1_name_0 } + image: { get_param: LB1_image_name } + flavor: { get_param: LB1_flavor_name } + key_name: { get_param: lb_key_name } + availability_zone: { get_param: availability_zone_0 } + networks: + - port: { get_resource: lb_0_int_oam_int_0_port } + - port: { get_resource: lb_0_lb1_gwaf_int_1_port } + - port: { get_resource: lb_0_oam_protected_2_port } + metadata: + vnf_id: { get_param: vnf_id } + vf_module_id: { get_param: vf_module_id } + user_data: + str_replace: + template: | + #!/bin/bash + sudo ip route del default + sudo route add -net 0.0.0.0 netmask 0.0.0.0 gw $oam_gw + params: + $oam_gw: { get_param: oam_gw } + + LB1_1: + type: OS::Nova::Server + depends_on: [ lb_1_int_oam_int_0_ip, lb_1_lb1_gwaf_int_1_ip, lb_1_oam_protected_2_ip ] + properties: + name: {get_param: LB1_name_1 } + image: { get_param: LB1_image_name } + flavor: { get_param: LB1_flavor_name } + availability_zone: { get_param: availability_zone_1 } + key_name: { get_param: lb_key_name } + networks: + - port: { get_resource: lb_1_int_oam_int_0_port } + - port: { get_resource: lb_1_lb1_gwaf_int_1_port } + - port: { get_resource: lb_1_oam_protected_2_port } + metadata: + vnf_id: { get_param: vnf_id } + vf_module_id: { get_param: vf_module_id } + user_data: + str_replace: + template: | + #!/bin/bash + sudo ip route del default + sudo route add -net 0.0.0.0 netmask 0.0.0.0 gw $oam_gw + params: + $oam_gw: { get_param: oam_gw } diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/mixPatterns/duplicateResourceIdsInDiffAddOnFiles/in/module_9_lb2_vota.env b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/mixPatterns/duplicateResourceIdsInDiffAddOnFiles/in/module_9_lb2_vota.env new file mode 100644 index 0000000000..c50ef2c632 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/mixPatterns/duplicateResourceIdsInDiffAddOnFiles/in/module_9_lb2_vota.env @@ -0,0 +1,47 @@ +parameters: +#Network names +# int_oam_int_net_id: 'default-domain:vOTA:vOTA-25348-Lab-03v3-01_int_oam_int_net' +# apps_int_net_id: 'default-domain:vOTA:vOTA-25348-Lab-03v3-01_apps_int_net' +# gwaf_lb2_int_net_id: 'default-domain:vOTA:vOTA-25348-Lab-03v3-01_gwaf_lb2_int_net' +# VM config + LB2_flavor_name: 'gv.c4r8d320' + LB2_image_name: 'vOTA-25348-Lab-03v3-LB2' + lb_key_name: vOTA-25348-Lab-03v3-key_pair +# availability_zone_0: rdm3-kvm-az01 +# availability_zone_1: rdm3-kvm-az02 +# LB2_name_0: 'ZRDM3vOTA03LB2001' +# LB2_name_1: 'ZRDM3vOTA03LB2002' +# aap_core + aap_core_ip_prefix: 172.26.200.10 + aap_core_ip_prefix_len: 32 + aap_core_ha_mode : 'active-standby' + aap_core_mac: '00:00:00:00:00:00' +###ip addresses + lb_oam_int_ip_0: 172.26.13.120 + lb_apps_int_ip_0: 172.26.2.50 + gwaf_lb2_int_ip_0: 172.26.1.20 + lb_oam_int_ip_1: 172.26.13.121 + lb_apps_int_ip_1: 172.26.2.51 + gwaf_lb2_int_ip_1: 172.26.1.21 +##general +# vnf_id: vOTA +# vf_module_id: dummy +###security groups +# gwaf_lb2_int_sec_group_id: 'default-domain:vOTA:vOTA-25348-Lab-03v3-01-gwaf_lb2_sec_group' +# apps_int_sec_group_id: 'default-domain:vOTA:vOTA-25348-Lab-03v3-01-apps_int_sec_group' +# int_oam_int_sec_group_id: 'default-domain:vOTA:vOTA-25348-Lab-03v3-01-int_oam_sec_group' +####Health check + shc_enabled: True + shc_monitor_type: PING + shc_delay: 3 + shc_timeout: 5 + shc_max_retries: 2 + shc_url_path: 'local-ip' +#####Hashing + ecmp_hashing_include_fields_hashing_configured: True + ecmp_hashing_include_fields_source_ip: True + ecmp_hashing_include_fields_destination_port: True + ecmp_hashing_include_fields_source_port: False + ecmp_hashing_include_fields_destination_ip: False + ecmp_hashing_include_fields_ip_protocol: False +
\ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/mixPatterns/duplicateResourceIdsInDiffAddOnFiles/in/module_9_lb2_vota.yml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/mixPatterns/duplicateResourceIdsInDiffAddOnFiles/in/module_9_lb2_vota.yml new file mode 100644 index 0000000000..cfbfdade79 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/mixPatterns/duplicateResourceIdsInDiffAddOnFiles/in/module_9_lb2_vota.yml @@ -0,0 +1,332 @@ +heat_template_version: 2015-04-30 + +parameters: + +###network names + int_oam_int_net_id: + type: string + description: Name of management network to be created + apps_int_net_id: + type: string + description: Name of mirror network to be created + gwaf_lb2_int_net_id: + type: string + description: Name of mirror network to be created + +###VM names#### + LB2_name_0: + type: string + description: Name of the SVM + LB2_name_1: + type: string + description: Name of the SVM +#####General########## + lb_key_name: + type: string + LB2_flavor_name: + type: string + description: Flavor of the end VMs + LB2_image_name: + type: string + description: Name of the end VM LB_image_name + availability_zone_0: + type: string + description: availability zone + availability_zone_1: + type: string + description: availability zone +# aap_core + aap_core_ip_prefix: + type: string + description: ip_prefix for the ServiceInstance + aap_core_ip_prefix_len: + type: number + description: ip_prefix_len for the ServiceInstance + aap_core_ha_mode: + type: string + description: address_mode for the ServiceInstance + aap_core_mac: + type: string + description: mac for the VirtualMachineInterface +####Ip addresses + lb_oam_int_ip_0: + type: string + description: lb ip + lb_apps_int_ip_0: + type: string + description: lb ip + gwaf_lb2_int_ip_0: + type: string + description: lb ip + lb_oam_int_ip_1: + type: string + description: lb ip + lb_apps_int_ip_1: + type: string + description: lb ip + gwaf_lb2_int_ip_1: + type: string + description: lb ip + vf_module_id: + type: string + description: Unique ID for this VF Module instance + vnf_id: + type: string + description: Name of vOTA instance for ECOMP + gwaf_lb2_int_sec_group_id: + type: string + description: sec group + apps_int_sec_group_id: + type: string + description: sec group + int_oam_int_sec_group_id: + type: string + description: sec group +####Health check######### + shc_enabled: + type: string + description: health check + shc_monitor_type: + type: string + description: health check + shc_delay: + type: string + description: health check + shc_timeout: + type: string + description: health check + shc_max_retries: + type: string + description: health check + shc_url_path: + type: string + description: health check +###ECMP hashing######### + ecmp_hashing_include_fields_hashing_configured: + type: string + description: health check + ecmp_hashing_include_fields_source_ip: + type: string + description: health check + ecmp_hashing_include_fields_destination_port: + type: string + description: health check + ecmp_hashing_include_fields_source_port: + type: string + description: health check + ecmp_hashing_include_fields_destination_ip: + type: string + description: health check + ecmp_hashing_include_fields_ip_protocol: + type: string + description: health check + +resources: + + lb_0_int_oam_int_0_port: + type: OS::ContrailV2::VirtualMachineInterface + properties: + virtual_machine_interface_properties: + { + virtual_machine_interface_properties_service_interface_type: { get_param: int_oam_int_net_id }, + } + virtual_network_refs: [{ get_param: int_oam_int_net_id }] + security_group_refs: [{ get_param: int_oam_int_sec_group_id}] + + lb_0_apps_int_1_port: + type: OS::ContrailV2::VirtualMachineInterface + properties: + virtual_machine_interface_properties: + { + virtual_machine_interface_properties_service_interface_type: { get_param: apps_int_net_id }, + } + virtual_network_refs: [{ get_param: apps_int_net_id }] + security_group_refs: [{ get_param: apps_int_sec_group_id }] + + lb_0_gwaf_lb2_int_2_port: + type: OS::ContrailV2::VirtualMachineInterface + properties: + virtual_network_refs: [{ get_param: gwaf_lb2_int_net_id }] + service_health_check_refs: + - get_resource: lb_gwaf_lb2_hc + ecmp_hashing_include_fields: + ecmp_hashing_include_fields_hashing_configured: { get_param: ecmp_hashing_include_fields_hashing_configured } + ecmp_hashing_include_fields_source_ip: { get_param: ecmp_hashing_include_fields_source_ip } + ecmp_hashing_include_fields_destination_port: { get_param: ecmp_hashing_include_fields_destination_port } + ecmp_hashing_include_fields_destination_ip: { get_param: ecmp_hashing_include_fields_destination_ip } + ecmp_hashing_include_fields_source_port: { get_param: ecmp_hashing_include_fields_source_port } + ecmp_hashing_include_fields_ip_protocol: { get_param: ecmp_hashing_include_fields_ip_protocol } + virtual_machine_interface_allowed_address_pairs: + { + virtual_machine_interface_allowed_address_pairs_allowed_address_pair: + [{ + virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip: + { + virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix: { get_param: aap_core_ip_prefix }, + virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix_len: { get_param: aap_core_ip_prefix_len }, + }, + virtual_machine_interface_allowed_address_pairs_allowed_address_pair_mac: { get_param: aap_core_mac }, + virtual_machine_interface_allowed_address_pairs_allowed_address_pair_address_mode: { get_param: aap_core_ha_mode }, + }], + } + security_group_refs: [{ get_param: gwaf_lb2_int_sec_group_id }] + + lb_1_int_oam_int_0_port: + type: OS::ContrailV2::VirtualMachineInterface + properties: + virtual_machine_interface_properties: + { + virtual_machine_interface_properties_service_interface_type: { get_param: int_oam_int_net_id }, + } + virtual_network_refs: [{ get_param: int_oam_int_net_id }] + security_group_refs: [{ get_param: int_oam_int_sec_group_id}] + + lb_1_apps_int_1_port: + type: OS::ContrailV2::VirtualMachineInterface + properties: + virtual_machine_interface_properties: + { + virtual_machine_interface_properties_service_interface_type: { get_param: apps_int_net_id }, + } + virtual_network_refs: [{ get_param: apps_int_net_id }] + security_group_refs: [{ get_param: apps_int_sec_group_id }] + + lb_1_gwaf_lb2_int_2_port: + type: OS::ContrailV2::VirtualMachineInterface + properties: + virtual_network_refs: [{ get_param: gwaf_lb2_int_net_id }] + service_health_check_refs: + - get_resource: lb_gwaf_lb2_hc + ecmp_hashing_include_fields: + ecmp_hashing_include_fields_hashing_configured: { get_param: ecmp_hashing_include_fields_hashing_configured } + ecmp_hashing_include_fields_source_ip: { get_param: ecmp_hashing_include_fields_source_ip } + ecmp_hashing_include_fields_destination_port: { get_param: ecmp_hashing_include_fields_destination_port } + ecmp_hashing_include_fields_destination_ip: { get_param: ecmp_hashing_include_fields_destination_ip } + ecmp_hashing_include_fields_source_port: { get_param: ecmp_hashing_include_fields_source_port } + ecmp_hashing_include_fields_ip_protocol: { get_param: ecmp_hashing_include_fields_ip_protocol } + virtual_machine_interface_allowed_address_pairs: + { + virtual_machine_interface_allowed_address_pairs_allowed_address_pair: + [{ + virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip: + { + virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix: { get_param: aap_core_ip_prefix }, + virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix_len: { get_param: aap_core_ip_prefix_len }, + }, + virtual_machine_interface_allowed_address_pairs_allowed_address_pair_mac: { get_param: aap_core_mac }, + virtual_machine_interface_allowed_address_pairs_allowed_address_pair_address_mode: { get_param: aap_core_ha_mode }, + }], + } + security_group_refs: [{ get_param: gwaf_lb2_int_sec_group_id }] + + lb_0_int_oam_int_0_ip: + type: OS::ContrailV2::InstanceIp + depends_on: [ lb_0_int_oam_int_0_port ] + properties: + virtual_machine_interface_refs: [{ get_resource: lb_0_int_oam_int_0_port }] + virtual_network_refs: [{ get_param: int_oam_int_net_id }] + instance_ip_address: { get_param: lb_oam_int_ip_0 } + + + lb_0_apps_int_1_ip: + type: OS::ContrailV2::InstanceIp + depends_on: [ lb_0_apps_int_1_port ] + properties: + virtual_machine_interface_refs: [{ get_resource: lb_0_apps_int_1_port }] + virtual_network_refs: [{ get_param: apps_int_net_id }] + instance_ip_address: { get_param: lb_apps_int_ip_0 } + + + lb_0_gwaf_lb2_int_2_ip: + type: OS::ContrailV2::InstanceIp + depends_on: [ lb_0_gwaf_lb2_int_2_port ] + properties: + virtual_machine_interface_refs: [{ get_resource: lb_0_gwaf_lb2_int_2_port }] + virtual_network_refs: [{ get_param: gwaf_lb2_int_net_id }] + instance_ip_address: { get_param: gwaf_lb2_int_ip_0 } + + + lb_1_int_oam_int_0_ip: + type: OS::ContrailV2::InstanceIp + depends_on: [ lb_1_int_oam_int_0_port ] + properties: + virtual_machine_interface_refs: [{ get_resource: lb_1_int_oam_int_0_port }] + virtual_network_refs: [{ get_param: int_oam_int_net_id }] + instance_ip_address: { get_param: lb_oam_int_ip_1 } + + + lb_1_apps_int_1_ip: + type: OS::ContrailV2::InstanceIp + depends_on: [ lb_1_apps_int_1_port ] + properties: + virtual_machine_interface_refs: [{ get_resource: lb_1_apps_int_1_port }] + virtual_network_refs: [{ get_param: apps_int_net_id }] + instance_ip_address: { get_param: lb_apps_int_ip_1 } + + + lb_1_gwaf_lb2_int_2_ip: + type: OS::ContrailV2::InstanceIp + depends_on: [ lb_1_gwaf_lb2_int_2_port ] + properties: + virtual_machine_interface_refs: [{ get_resource: lb_1_gwaf_lb2_int_2_port }] + virtual_network_refs: [{ get_param: gwaf_lb2_int_net_id }] + instance_ip_address: { get_param: gwaf_lb2_int_ip_1 } + + + lb_gwaf_lb2_hc: + type: OS::ContrailV2::ServiceHealthCheck + properties: + name: gwaf_lb2_hc_PING + service_health_check_properties: + service_health_check_properties_enabled: { get_param: shc_enabled } + service_health_check_properties_monitor_type: { get_param: shc_monitor_type } + service_health_check_properties_delay: { get_param: shc_delay } + service_health_check_properties_timeout: { get_param: shc_timeout } + service_health_check_properties_max_retries: { get_param: shc_max_retries } + service_health_check_properties_url_path: { get_param: shc_url_path } + + + + LB2_0: + type: OS::Nova::Server + depends_on: [ lb_0_int_oam_int_0_ip, lb_0_apps_int_1_ip, lb_0_gwaf_lb2_int_2_ip ] + properties: + name: {get_param: LB2_name_0 } + image: { get_param: LB2_image_name } + flavor: { get_param: LB2_flavor_name } + key_name: { get_param: lb_key_name } + availability_zone: { get_param: availability_zone_0 } + networks: + - port: { get_resource: lb_0_int_oam_int_0_port } + - port: { get_resource: lb_0_apps_int_1_port } + - port: { get_resource: lb_0_gwaf_lb2_int_2_port } + metadata: + vnf_id: { get_param: vnf_id } + vf_module_id: { get_param: vf_module_id } + user_data: + str_replace: + template: | + params: + $lb_loopback: { get_param: LB2_image_name } + + LB2_1: + type: OS::Nova::Server + depends_on: [ lb_1_int_oam_int_0_ip, lb_1_apps_int_1_ip, lb_1_gwaf_lb2_int_2_ip ] + properties: + name: {get_param: LB2_name_1 } + image: { get_param: LB2_image_name } + flavor: { get_param: LB2_flavor_name } + availability_zone: { get_param: availability_zone_1 } + key_name: { get_param: lb_key_name } + networks: + - port: { get_resource: lb_1_int_oam_int_0_port } + - port: { get_resource: lb_1_apps_int_1_port } + - port: { get_resource: lb_1_gwaf_lb2_int_2_port } + metadata: + vnf_id: { get_param: vnf_id } + vf_module_id: { get_param: vf_module_id } + user_data: + str_replace: + template: | + params: + $lb_loopback: { get_param: LB2_image_name } |