summaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles
diff options
context:
space:
mode:
Diffstat (limited to 'openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles')
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/FEAdd_On_Module_QRouterCloudConfig39
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/FEAdd_On_Module_QRouterTemplate.yaml216
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/FEAdd_On_Module_vLBAgentCloudConfig53
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/FEAdd_On_Module_vLBAgentTemplate.yaml303
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/FEAdd_On_Module_vLBCloudConfig41
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/FEAdd_On_Module_vLBTemplate.yaml287
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/FEAdd_On_Module_vProbeCloudConfig50
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/FEAdd_On_Module_vProbeTemplate.yaml308
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/FEBase_Module.env91
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/FEBase_Module.yaml670
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/MANIFEST.json89
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/call_home.py97
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/check_availability.py34
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/qrouterdependencies.json35
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/register_status.py126
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/vlbagentdependencies_with_vLB.json46
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/vlbagentdependencies_without_vLB.json39
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/vlbdependencies.json43
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/vprobedependencies.json49
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/wait_for_resources.py84
20 files changed, 0 insertions, 2700 deletions
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/FEAdd_On_Module_QRouterCloudConfig b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/FEAdd_On_Module_QRouterCloudConfig
deleted file mode 100644
index 51c7176ee6..0000000000
--- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/FEAdd_On_Module_QRouterCloudConfig
+++ /dev/null
@@ -1,39 +0,0 @@
-#cloud-config
- manage_etc_hosts: true
- yum_repos:
- Base_Repo:
- baseurl: "https://%rpm_repo_ip_0%/repo/base"
- enabled: true
- gpgcheck: false
- name: "Base Repo"
- sslverify: 0
- sslclientcert: /var/lib/yum/yum.cert
- sslclientkey: /var/lib/yum/yum.key
- Radcom:
- baseurl: "https://%rpm_repo_ip_0%/repo/radcom"
- enabled: true
- gpgcheck: false
- name: "Radcom Repo"
- sslverify: 0
- sslclientcert: /var/lib/yum/yum.cert
- sslclientkey: /var/lib/yum/yum.key
- package_upgrade: false
- ssh_authorized_keys:
- - "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAnuJOkl2iGaFB+BCeRak67Chy+cATmvsqLPDYQ6GMRrGg0kBMcIRExshmTJQFGC+m2xiXeo41pSLaR1vt5fDB+3ewUSBcNtZrr5VxzBWzOab1VO+sCx4f8gOkSJ7plRJ/8xZqyhV+jTkb02peWbqtW+WqERTIyGul/eMNCDnwDNxznb8jMI3KWUd3ujWgFnk8EJ9c41y2unvk42XDOUlnuvR1/FW/qPRSNwPQGLEDlDje29xB3yaMQuJRL4Z86GWb1ZVeVh/+mIO1R4Ayj0HYspDruvFa9mECR4K1QhCN9mRE5sGBMiEOK0O/pf8Y3K2J9LQ6UYAt2yHzL7fAMAKOOw=="
- runcmd:
- - "sed -i \"s/GSSAPIAuthentication yes/GSSAPIAuthentication no/g\" /etc/ssh/sshd_config"
- - "sed -i \"s/#UseDNS yes/UseDNS no/g\" /etc/ssh/sshd_config"
- - "passwd -d deployment"
- - "mkdir -pv /mnt/config"
- - "mount /dev/disk/by-label/config-2 /mnt/config"
- - "a=($(cat /mnt/config/openstack/latest/meta_data.json | /usr/local/bin/python2.7 -c 'import json,sys;obj=json.load(sys.stdin); print json.dumps(obj[\"files\"]);'));paths=0; values=0;counter=0;function remove_json_chars() { input=$1; echo $1 | sed 's/\\}//g' | sed 's/,//g' | sed 's/]//g' | sed 's/\"//g'; };for data in ${a[@]} ; do index=$(( $counter % 4 )); if [[ \"$index\" == 1 ]];then b[$paths]=$(remove_json_chars $data); paths=$(( $paths + 1 )) ; fi; if [[ \"$index\" == 3 ]];then c[$values]=$(remove_json_chars $data); values=$(( $values + 1 )) ; fi; counter=$(( $counter + 1 )) ; done; path_counter=0; for file in ${c[@]} ; do cp /mnt/config/openstack${file} ${b[$path_counter]}; path_counter=$(( ${path_counter} + 1 )) ; done"
- - "cat /mnt/config/openstack/latest/meta_data.json | /usr/local/bin/python2.7 -c 'import json,sys;obj=json.load(sys.stdin); print json.dumps(obj[\"meta\"]);' > /meta.js"
- - "sed -i 's|_colon_|:|g' /meta.js"
- - "sed -i 's|_slash_|/|g' /meta.js"
- - "/usr/local/bin/python2.7 /tmp/wait_for_resources.py -m %manager_oam_direct_ip_0%"
- - "chmod 0754 /root/call_home.py /root/RegisterStatus/register_status.py /root/CheckAvailability/check_availability.py"
- - "sed -i 's/QROUTER_CLUSTER_NAME/%qrouter_cluster_name%/g' /root/dependencies.json"
- - "sed -i 's/QROUTER_NODE_COUNT/%qrouter_node_count%/g' /root/dependencies.json"
- - "sed -i 's/MANAGER_INSTANCE_NAME/%manager_hostname%.%domain_name%/g' /root/dependencies.json"
- - "/usr/local/bin/python2.7 /root/CheckAvailability/check_availability.py %manager_oam_direct_ip_0%"
- - "/usr/local/bin/python2.7 /root/call_home.py %manager_oam_direct_ip_0%"
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/FEAdd_On_Module_QRouterTemplate.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/FEAdd_On_Module_QRouterTemplate.yaml
deleted file mode 100644
index aae1455919..0000000000
--- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/FEAdd_On_Module_QRouterTemplate.yaml
+++ /dev/null
@@ -1,216 +0,0 @@
-heat_template_version: 2014-10-16
-
-parameters:
- cdr_network:
- type: string
- domain_name:
- type: string
- qrouter_image_name:
- type: string
- manager_name_0:
- type: string
- manager_oam_direct_ip_0:
- type: string
- ntp_timezone:
- type: string
- oam_private_net_name:
- type: string
- availability_zone_0:
- type: string
- qrouter_cluster_name:
- type: string
- qrouter_flavor_name:
- type: string
- qrouter_index:
- type: number
- qrouter_names:
- type: comma_delimited_list
- qrouter_node_count:
- type: number
- qrouter_volume_name_0:
- type: string
- qrouter_volume_name_1:
- type: string
- qrouter_volume_name_2:
- type: string
- qrouter_volume_size_0:
- type: number
- qrouter_volume_size_1:
- type: number
- qrouter_volume_size_2:
- type: number
- qrouter_volume_type_0:
- type: string
- qrouter_volume_type_1:
- type: string
- qrouter_volume_type_2:
- type: string
- region_name:
- type: string
- rpmrepository_ip_0:
- type: string
- security_group:
- type: string
- tenant_name:
- type: string
- version_number:
- type: string
- vf_module_id:
- type: string
- vf_module_name:
- type: string
- vnf_id:
- type: string
-resources:
- QRouter:
- properties:
- availability_zone:
- get_param: availability_zone_0
- config_drive: true
- flavor:
- get_param: qrouter_flavor_name
- image:
- get_param: qrouter_image_name
- metadata:
- cdr_network_ip_0:
- get_attr:
- - cdr_network_port
- - fixed_ip_0s
- - 0
- - ip_address
- cluster_name:
- get_param: qrouter_cluster_name
- machine_name:
- get_param:
- - qrouter_names
- - get_param: qrouter_index
- machine_type: qrouter
- mount_colon__slash_config:
- get_resource: qrouter_volume_2
- mount_colon__slash_data:
- get_resource: qrouter_volume_0
- mount_colon__slash_log:
- get_resource: qrouter_volume_1
- ntp_timezone:
- get_param: ntp_timezone
- oam_private_network_ip_0:
- get_attr:
- - oam_private_net_network_port
- - fixed_ip_0s
- - 0
- - ip_address
- region:
- get_param: region_name
- repo_ip_0:
- get_param: rpmrepository_ip_0
- tenant:
- get_param: tenant_name
- version_number:
- get_param: version_number
- vf_module_id:
- get_param: vf_module_id
- vf_module_name:
- get_param: vf_module_name
- vnf_id:
- get_param: vnf_id
- name:
- get_param:
- - qrouter_names
- - get_param: qrouter_index
- networks:
- - port:
- get_resource: oam_private_net_network_port
- - port:
- get_resource: cdr_network_port
- personality:
- /root/CheckAvailability/check_availability.py:
- get_file: check_availability.py
- /root/RegisterStatus/register_status.py:
- get_file: register_status.py
- /root/call_home.py:
- get_file: call_home.py
- /root/dependencies.json:
- get_file: qrouterdependencies.json
- /tmp/wait_for_resources.py:
- get_file: wait_for_resources.py
- user_data:
- str_replace:
- params:
- '%domain_name%':
- get_param: domain_name
- '%manager_hostname%':
- get_param: manager_name_0
- '%manager_oam_direct_ip_0%':
- get_param: manager_oam_direct_ip_0
- '%qrouter_cluster_name%':
- get_param: qrouter_cluster_name
- '%qrouter_node_count%':
- get_param: qrouter_node_count
- '%rpm_repo_ip_0%':
- get_param: rpmrepository_ip_0
- template:
- get_file: FEAdd_On_Module_QRouterCloudConfig
- user_data_format: RAW
- type: OS::Nova::Server
- cdr_network_port:
- properties:
- network:
- get_param: cdr_network
- security_groups:
- - get_param: security_group
- type: OS::Neutron::Port
- oam_private_net_network_port:
- properties:
- network:
- get_param: oam_private_net_name
- security_groups:
- - get_param: security_group
- type: OS::Neutron::Port
- qrouter_volume_0:
- properties:
- description:
- get_param: qrouter_volume_name_0
- size:
- get_param: qrouter_volume_size_0
- volume_type:
- get_param: qrouter_volume_type_0
- type: OS::Cinder::Volume
- qrouter_volume_0_att:
- properties:
- instance_uuid:
- get_resource: QRouter
- volume_id:
- get_resource: qrouter_volume_0
- type: OS::Cinder::VolumeAttachment
- qrouter_volume_1:
- properties:
- description:
- get_param: qrouter_volume_name_1
- size:
- get_param: qrouter_volume_size_1
- volume_type:
- get_param: qrouter_volume_type_1
- type: OS::Cinder::Volume
- qrouter_volume_1_att:
- properties:
- instance_uuid:
- get_resource: QRouter
- volume_id:
- get_resource: qrouter_volume_1
- type: OS::Cinder::VolumeAttachment
- qrouter_volume_2:
- properties:
- description:
- get_param: qrouter_volume_name_2
- size:
- get_param: qrouter_volume_size_2
- volume_type:
- get_param: qrouter_volume_type_2
- type: OS::Cinder::Volume
- qrouter_volume_2_att:
- properties:
- instance_uuid:
- get_resource: QRouter
- volume_id:
- get_resource: qrouter_volume_2
- type: OS::Cinder::VolumeAttachment \ 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/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/FEAdd_On_Module_vLBAgentCloudConfig b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/FEAdd_On_Module_vLBAgentCloudConfig
deleted file mode 100644
index 83f57aceb8..0000000000
--- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/FEAdd_On_Module_vLBAgentCloudConfig
+++ /dev/null
@@ -1,53 +0,0 @@
-#cloud-config
- manage_etc_hosts: false
- yum_repos:
- Base_Repo:
- baseurl: "https://%rpm_repo_ip_0%/repo/base"
- enabled: true
- gpgcheck: false
- name: "Base Repo"
- sslverify: 0
- sslclientcert: /var/lib/yum/yum.cert
- sslclientkey: /var/lib/yum/yum.key
- Radcom:
- baseurl: "https://%rpm_repo_ip_0%/repo/radcom"
- enabled: true
- gpgcheck: false
- name: "Radcom Repo"
- sslverify: 0
- sslclientcert: /var/lib/yum/yum.cert
- sslclientkey: /var/lib/yum/yum.key
- package_upgrade: false
- ssh_authorized_keys:
- - "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAnuJOkl2iGaFB+BCeRak67Chy+cATmvsqLPDYQ6GMRrGg0kBMcIRExshmTJQFGC+m2xiXeo41pSLaR1vt5fDB+3ewUSBcNtZrr5VxzBWzOab1VO+sCx4f8gOkSJ7plRJ/8xZqyhV+jTkb02peWbqtW+WqERTIyGul/eMNCDnwDNxznb8jMI3KWUd3ujWgFnk8EJ9c41y2unvk42XDOUlnuvR1/FW/qPRSNwPQGLEDlDje29xB3yaMQuJRL4Z86GWb1ZVeVh/+mIO1R4Ayj0HYspDruvFa9mECR4K1QhCN9mRE5sGBMiEOK0O/pf8Y3K2J9LQ6UYAt2yHzL7fAMAKOOw=="
- runcmd:
- - "sed -i \"s/GSSAPIAuthentication yes/GSSAPIAuthentication no/g\" /etc/ssh/sshd_config"
- - "sed -i \"s/#UseDNS yes/UseDNS no/g\" /etc/ssh/sshd_config"
- - "passwd -d deployment"
- - "mkdir -pv /mnt/config"
- - "mount /dev/disk/by-label/config-2 /mnt/config"
- - "a=($(cat /mnt/config/openstack/latest/meta_data.json | /usr/local/bin/python2.7 -c 'import json,sys;obj=json.load(sys.stdin); print json.dumps(obj[\"files\"]);'));paths=0; values=0;counter=0;function remove_json_chars() { input=$1; echo $1 | sed 's/\\}//g' | sed 's/,//g' | sed 's/]//g' | sed 's/\"//g'; };for data in ${a[@]} ; do index=$(( $counter % 4 )); if [[ \"$index\" == 1 ]];then b[$paths]=$(remove_json_chars $data); paths=$(( $paths + 1 )) ; fi; if [[ \"$index\" == 3 ]];then c[$values]=$(remove_json_chars $data); values=$(( $values + 1 )) ; fi; counter=$(( $counter + 1 )) ; done; path_counter=0; for file in ${c[@]} ; do cp /mnt/config/openstack${file} ${b[$path_counter]}; path_counter=$(( ${path_counter} + 1 )) ; done"
- - "cat /mnt/config/openstack/latest/meta_data.json | /usr/local/bin/python2.7 -c 'import json,sys;obj=json.load(sys.stdin); print json.dumps(obj[\"meta\"]);' > /meta.js"
- - "sed -i 's|_colon_|:|g' /meta.js"
- - "sed -i 's|_slash_|/|g' /meta.js"
- - "/usr/local/bin/python2.7 /tmp/wait_for_resources.py -m %manager_oam_direct_ip_0%"
- - "chmod 0754 /root/call_home.py /root/RegisterStatus/register_status.py /root/CheckAvailability/check_availability.py"
- - "/usr/local/bin/python2.7 /root/CheckAvailability/check_availability.py %manager_oam_direct_ip_0%"
- - "echo MH vLBAgent_id_number %vLBAgent_id_number%"
- - "echo MH probe_data %probe_data%"
- - "echo MH probe_log %probe_log%"
- - "echo MH probe_config %probe_config%"
- - "echo MH vLBAgent_id_number %vLBAgent_id_number%"
- - "probe_id=`echo %vLBAgent_id_number%`"
- - "vLB_n_count=`echo %vLB_node_count%`"
- - "echo vLB_n_count=$vLB_n_count"
- - "if [[ \"$vLB_n_count\" == 0 ]];then cp -p /root/dependencies_without_vLB.json /root/dependencies.json; fi;"
- - "if [[ \"$vLB_n_count\" > 0 ]];then cp -p /root/dependencies_with_vLB.json /root/dependencies.json; fi;"
- - "sed -i 's/VLBAGENT_CLUSTER_NAME/%vLBAgent_cluster_name%/g' /root/dependencies.json"
- - "sed -i 's/VPROBE_CLUSTER_NAME/%vProbe_cluster_name%/g' /root/dependencies.json"
- - "sed -i 's/VLB_CLUSTER_NAME/%vLB_cluster_name%/g' /root/dependencies.json"
- - "sed -i 's/VLBAGENT_NODE_COUNT/%vLBAgent_node_count%/g' /root/dependencies.json"
- - "sed -i 's/MANAGER_INSTANCE_NAME/%manager_hostname%.%domain_name%/g' /root/dependencies.json"
- - "echo \"${probe_id}\" > /etc/hostname"
- - "mkdir -pv /radcom/software"
- - "/usr/local/bin/python2.7 /root/call_home.py %manager_oam_direct_ip_0%"
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/FEAdd_On_Module_vLBAgentTemplate.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/FEAdd_On_Module_vLBAgentTemplate.yaml
deleted file mode 100644
index 80a65d17fc..0000000000
--- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/FEAdd_On_Module_vLBAgentTemplate.yaml
+++ /dev/null
@@ -1,303 +0,0 @@
-heat_template_version: 2014-10-16
-
-parameters:
- domain_name:
- type: string
- vlb_agent_image_name:
- type: string
- manager_name_0:
- type: string
- manager_oam_direct_ip_0:
- type: string
- ntp_timezone:
- type: string
- oam_private_net_name:
- type: string
- packet_internal_network:
- type: string
- packet_mirror_network:
- type: string
- region_name:
- type: string
- rpmrepository_ip_0:
- type: string
- security_group:
- type: string
- tenant_name:
- type: string
- availability_zone_0:
- type: string
- vLBAgent_cluster_name:
- type: string
- vLBAgent_flavor_name:
- type: string
- vLBAgent_index:
- type: number
- vLBAgent_names:
- type: comma_delimited_list
- vLBAgent_node_count:
- type: number
- vLBAgent_type:
- type: string
- vLBAgent_version_name:
- type: string
- vLBAgent_volume_name_0:
- type: string
- vLBAgent_volume_name_1:
- type: string
- vLBAgent_volume_name_2:
- type: string
- vLBAgent_volume_size_0:
- type: number
- vLBAgent_volume_size_1:
- type: number
- vLBAgent_volume_size_2:
- type: number
- vLBAgent_volume_type_0:
- type: string
- vLBAgent_volume_type_1:
- type: string
- vLBAgent_volume_type_2:
- type: string
- vLB_cluster_name:
- type: string
- vLB_node_count:
- type: number
- vProbe_cluster_name:
- type: string
- vf_module_id:
- type: string
- vf_module_name:
- type: string
- vnf_id:
- type: string
-resources:
- oam_private_net_network_port:
- properties:
- network:
- get_param: oam_private_net_name
- security_groups:
- - get_param: security_group
- type: OS::Neutron::Port
- packet_internal_network_port:
- properties:
- network:
- get_param: packet_internal_network
- security_groups:
- - get_param: security_group
- type: OS::Neutron::Port
- packet_mirror_network_port:
- properties:
- network:
- get_param: packet_mirror_network
- security_groups:
- - get_param: security_group
- type: OS::Neutron::Port
- vLBAgentInstance:
- properties:
- availability_zone:
- get_param: availability_zone_0
- config_drive: true
- flavor:
- get_param: vLBAgent_flavor_name
- image:
- get_param: vlb_agent_image_name
- metadata:
- DPDK: DPDK_IP
- cluster_name:
- get_param: vLBAgent_cluster_name
- machine_name:
- get_param:
- - vLBAgent_names
- - get_param: vLBAgent_index
- machine_type: vLBAgent
- manager_oam_direct_ip_0:
- get_param: manager_oam_direct_ip_0
- mount_colon__slash_config:
- get_resource: vLBAgent_volume_2
- mount_colon__slash_data:
- get_resource: vLBAgent_volume_0
- mount_colon__slash_log:
- get_resource: vLBAgent_volume_1
- ntp_timezone:
- get_param: ntp_timezone
- oam_private_network_cidr:
- get_attr:
- - oam_private_net_network_port
- - subnets
- - 0
- - cidr
- oam_private_network_ip_0:
- get_attr:
- - oam_private_net_network_port
- - fixed_ip_0s
- - 0
- - ip_address
- packet_internal_network_cidr:
- get_attr:
- - packet_internal_network_port
- - subnets
- - 0
- - cidr
- packet_internal_network_ip_0:
- get_attr:
- - packet_internal_network_port
- - fixed_ip_0s
- - 0
- - ip_address
- packet_mirror_network_cidr:
- get_attr:
- - packet_mirror_network_port
- - subnets
- - 0
- - cidr
- packet_mirror_network_ip_0:
- get_attr:
- - packet_mirror_network_port
- - fixed_ip_0s
- - 0
- - ip_address
- region:
- get_param: region_name
- repo_ip_0:
- get_param: rpmrepository_ip_0
- tenant:
- get_param: tenant_name
- vLBAgentInstance:
- get_param: vLBAgent_index
- vLBAgent_id:
- get_attr:
- - vLBAgent_id
- - value
- vLBAgent_name:
- get_param:
- - vLBAgent_names
- - get_param: vLBAgent_index
- vLBAgent_type:
- get_param: vLBAgent_type
- vLBAgent_version_name:
- get_param: vLBAgent_version_name
- vLB_node_count:
- get_param: vLB_node_count
- version_number:
- get_param: vLBAgent_version_name
- vf_module_id:
- get_param: vf_module_id
- vf_module_name:
- get_param: vf_module_name
- vnf_id:
- get_param: vnf_id
- name:
- get_param:
- - vLBAgent_names
- - get_param: vLBAgent_index
- networks:
- - port:
- get_resource: oam_private_net_network_port
- - port:
- get_resource: packet_mirror_network_port
- - port:
- get_resource: packet_internal_network_port
- personality:
- /root/CheckAvailability/check_availability.py:
- get_file: check_availability.py
- /root/RegisterStatus/register_status.py:
- get_file: register_status.py
- /root/call_home.py:
- get_file: call_home.py
- /root/dependencies_with_vLB.json:
- get_file: vlbagentdependencies_with_vLB.json
- /root/dependencies_without_vLB.json:
- get_file: vlbagentdependencies_without_vLB.json
- /tmp/wait_for_resources.py:
- get_file: wait_for_resources.py
- user_data:
- str_replace:
- params:
- '%domain_name%':
- get_param: domain_name
- '%manager_hostname%':
- get_param: manager_name_0
- '%manager_oam_direct_ip_0%':
- get_param: manager_oam_direct_ip_0
- '%rpm_repo_ip_0%':
- get_param: rpmrepository_ip_0
- '%vLBAgent_cluster_name%':
- get_param: vLBAgent_cluster_name
- '%vLBAgent_config%':
- get_resource: vLBAgent_volume_2
- '%vLBAgent_data%':
- get_resource: vLBAgent_volume_0
- '%vLBAgent_id_number%':
- get_attr:
- - vLBAgent_id
- - value
- '%vLBAgent_log%':
- get_resource: vLBAgent_volume_1
- '%vLBAgent_node_count%':
- get_param: vLBAgent_node_count
- '%vLBAgent_version_name%':
- get_param: vLBAgent_version_name
- '%vLB_cluster_name%':
- get_param: vLB_cluster_name
- '%vLB_node_count%':
- get_param: vLB_node_count
- '%vProbe_cluster_name%':
- get_param: vProbe_cluster_name
- template:
- get_file: FEAdd_On_Module_vLBAgentCloudConfig
- user_data_format: RAW
- type: OS::Nova::Server
- vLBAgent_id:
- properties:
- length: 4
- sequence: digits
- type: OS::Heat::RandomString
- vLBAgent_volume_0:
- properties:
- description:
- get_param: vLBAgent_volume_name_0
- size:
- get_param: vLBAgent_volume_size_0
- volume_type:
- get_param: vLBAgent_volume_type_0
- type: OS::Cinder::Volume
- vLBAgent_volume_0_att:
- properties:
- instance_uuid:
- get_resource: vLBAgentInstance
- volume_id:
- get_resource: vLBAgent_volume_0
- type: OS::Cinder::VolumeAttachment
- vLBAgent_volume_1:
- properties:
- description:
- get_param: vLBAgent_volume_name_1
- size:
- get_param: vLBAgent_volume_size_1
- volume_type:
- get_param: vLBAgent_volume_type_1
- type: OS::Cinder::Volume
- vLBAgent_volume_1_att:
- properties:
- instance_uuid:
- get_resource: vLBAgentInstance
- volume_id:
- get_resource: vLBAgent_volume_1
- type: OS::Cinder::VolumeAttachment
- vLBAgent_volume_2:
- properties:
- description:
- get_param: vLBAgent_volume_name_2
- size:
- get_param: vLBAgent_volume_size_2
- volume_type:
- get_param: vLBAgent_volume_type_2
- type: OS::Cinder::Volume
- vLBAgent_volume_2_att:
- properties:
- instance_uuid:
- get_resource: vLBAgentInstance
- volume_id:
- get_resource: vLBAgent_volume_2
- type: OS::Cinder::VolumeAttachment
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/FEAdd_On_Module_vLBCloudConfig b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/FEAdd_On_Module_vLBCloudConfig
deleted file mode 100644
index 78b6c652ce..0000000000
--- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/FEAdd_On_Module_vLBCloudConfig
+++ /dev/null
@@ -1,41 +0,0 @@
-#cloud-config
- manage_etc_hosts: false
- yum_repos:
- Base_Repo:
- baseurl: "https://%rpm_repo_ip_0%/repo/base"
- enabled: true
- gpgcheck: false
- name: "Base Repo"
- sslverify: 0
- sslclientcert: /var/lib/yum/yum.cert
- sslclientkey: /var/lib/yum/yum.key
- ssh_authorized_keys:
- - "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAnuJOkl2iGaFB+BCeRak67Chy+cATmvsqLPDYQ6GMRrGg0kBMcIRExshmTJQFGC+m2xiXeo41pSLaR1vt5fDB+3ewUSBcNtZrr5VxzBWzOab1VO+sCx4f8gOkSJ7plRJ/8xZqyhV+jTkb02peWbqtW+WqERTIyGul/eMNCDnwDNxznb8jMI3KWUd3ujWgFnk8EJ9c41y2unvk42XDOUlnuvR1/FW/qPRSNwPQGLEDlDje29xB3yaMQuJRL4Z86GWb1ZVeVh/+mIO1R4Ayj0HYspDruvFa9mECR4K1QhCN9mRE5sGBMiEOK0O/pf8Y3K2J9LQ6UYAt2yHzL7fAMAKOOw=="
- runcmd:
- - "sed -i \"s/GSSAPIAuthentication yes/GSSAPIAuthentication no/g\" /etc/ssh/sshd_config"
- - "sed -i \"s/#UseDNS yes/UseDNS no/g\" /etc/ssh/sshd_config"
- - "passwd -d deployment"
- - "mkdir -pv /mnt/config"
- - "mount /dev/disk/by-label/config-2 /mnt/config"
- - "a=($(cat /mnt/config/openstack/latest/meta_data.json | /usr/local/bin/python2.7 -c 'import json,sys;obj=json.load(sys.stdin); print json.dumps(obj[\"files\"]);'));paths=0; values=0;counter=0;function remove_json_chars() { input=$1; echo $1 | sed 's/\\}//g' | sed 's/,//g' | sed 's/]//g' | sed 's/\"//g'; };for data in ${a[@]} ; do index=$(( $counter % 4 )); if [[ \"$index\" == 1 ]];then b[$paths]=$(remove_json_chars $data); paths=$(( $paths + 1 )) ; fi; if [[ \"$index\" == 3 ]];then c[$values]=$(remove_json_chars $data); values=$(( $values + 1 )) ; fi; counter=$(( $counter + 1 )) ; done; path_counter=0; for file in ${c[@]} ; do cp /mnt/config/openstack${file} ${b[$path_counter]}; path_counter=$(( ${path_counter} + 1 )) ; done"
- - "cat /mnt/config/openstack/latest/meta_data.json | /usr/local/bin/python2.7 -c 'import json,sys;obj=json.load(sys.stdin); print json.dumps(obj[\"meta\"]);' > /meta.js"
- - "sed -i 's|_colon_|:|g' /meta.js"
- - "sed -i 's|_slash_|/|g' /meta.js"
- - "/usr/local/bin/python2.7 /tmp/wait_for_resources.py -m %manager_oam_direct_ip_0%"
- - "chmod 0754 /root/call_home.py /root/RegisterStatus/register_status.py /root/CheckAvailability/check_availability.py"
- - "/usr/local/bin/python2.7 /root/CheckAvailability/check_availability.py %manager_oam_direct_ip_0%"
- - "echo MH vLB_id_number %vLB_id_number%"
- - "echo MH probe_data %vLB_id_number%"
- - "echo MH probe_log %vLB_log%"
- - "echo MH probe_config %vLB_config%"
- - "probe_id=`echo %vLB_id_number%`"
- - "echo vLB_cluster_name %vLB_cluster_name%"
- - "echo vLB_node_count %vLB_node_count%"
- - "sed -i 's/VLB_CLUSTER_NAME/%vLB_cluster_name%/g' /root/dependencies.json"
- - "sed -i 's/VPROBE_CLUSTER_NAME/%vProbe_cluster_name%/g' /root/dependencies.json"
- - "sed -i 's/VLB_NODE_COUNT/%vLB_node_count%/g' /root/dependencies.json"
- - "sed -i 's/MANAGER_INSTANCE_NAME/%manager_hostname%.%domain_name%/g' /root/dependencies.json"
- - "sed -i 's/VLB_INSTANCE/%vLBInstance%/g' /root/dependencies.json"
- - "echo \"${probe_id}\" > /etc/hostname"
- - "mkdir -pv /radcom/software"
- - "/usr/local/bin/python2.7 /root/call_home.py %manager_oam_direct_ip_0%"
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/FEAdd_On_Module_vLBTemplate.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/FEAdd_On_Module_vLBTemplate.yaml
deleted file mode 100644
index afc435adaf..0000000000
--- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/FEAdd_On_Module_vLBTemplate.yaml
+++ /dev/null
@@ -1,287 +0,0 @@
-heat_template_version: 2014-10-16
-
-parameters:
- domain_name:
- type: string
- vlb_image_name:
- type: string
- manager_name_0:
- type: string
- manager_oam_direct_ip_0:
- type: string
- ntp_timezone:
- type: string
- oam_private_net_name:
- type: string
- packet_internal_network:
- type: string
- packet_mirror_network:
- type: string
- region_name:
- type: string
- rpmrepository_ip_0:
- type: string
- security_group:
- type: string
- tenant_name:
- type: string
- availability_zone_0:
- type: string
- vLB_cluster_name:
- type: string
- vLB_flavor_name:
- type: string
- vLB_index:
- type: number
- vLB_names:
- type: comma_delimited_list
- vLB_node_count:
- type: number
- vLB_type:
- type: string
- vLB_version_name:
- type: string
- vLB_volume_name_0:
- type: string
- vLB_volume_name_1:
- type: string
- vLB_volume_name_2:
- type: string
- vLB_volume_size_0:
- type: number
- vLB_volume_size_1:
- type: number
- vLB_volume_size_2:
- type: number
- vLB_volume_type_0:
- type: string
- vLB_volume_type_1:
- type: string
- vLB_volume_type_2:
- type: string
- vProbe_cluster_name:
- type: string
- vf_module_id:
- type: string
- vf_module_name:
- type: string
- vnf_id:
- type: string
-resources:
- oam_private_net_network_port:
- properties:
- network:
- get_param: oam_private_net_name
- security_groups:
- - get_param: security_group
- type: OS::Neutron::Port
- packet_internal_network_port:
- properties:
- network:
- get_param: packet_internal_network
- security_groups:
- - get_param: security_group
- type: OS::Neutron::Port
- packet_mirror_network_port:
- properties:
- network:
- get_param: packet_mirror_network
- security_groups:
- - get_param: security_group
- type: OS::Neutron::Port
- vLBInstance:
- properties:
- availability_zone:
- get_param: availability_zone_0
- config_drive: true
- flavor:
- get_param: vLB_flavor_name
- image:
- get_param: vlb_image_name
- metadata:
- DPDK: DPDK_IP
- cluster_name:
- get_param: vLB_cluster_name
- machine_name:
- get_param:
- - vLB_names
- - get_param: vLB_index
- machine_type: vLB
- manager_oam_direct_ip_0:
- get_param: manager_oam_direct_ip_0
- mount_colon__slash_config:
- get_resource: vLB_volume_2
- mount_colon__slash_data:
- get_resource: vLB_volume_0
- mount_colon__slash_log:
- get_resource: vLB_volume_1
- ntp_timezone:
- get_param: ntp_timezone
- oam_private_network_cidr:
- get_attr:
- - oam_private_net_network_port
- - subnets
- - 0
- - cidr
- oam_private_network_ip_0:
- get_attr:
- - oam_private_net_network_port
- - fixed_ip_0s
- - 0
- - ip_address
- packet_internal_network_cidr:
- get_attr:
- - packet_internal_network_port
- - subnets
- - 0
- - cidr
- packet_internal_network_ip_0:
- get_attr:
- - packet_internal_network_port
- - fixed_ip_0s
- - 0
- - ip_address
- packet_mirror_network_cidr:
- get_attr:
- - packet_mirror_network_port
- - subnets
- - 0
- - cidr
- packet_mirror_network_ip_0:
- get_attr:
- - packet_mirror_network_port
- - fixed_ip_0s
- - 0
- - ip_address
- region:
- get_param: region_name
- repo_ip_0:
- get_param: rpmrepository_ip_0
- tenant:
- get_param: tenant_name
- vLBAgentInstance:
- get_param: vLB_index
- vLBAgent_id:
- get_attr:
- - vLB_id
- - value
- vLBAgent_name:
- get_param:
- - vLB_names
- - get_param: vLB_index
- vLBAgent_type:
- get_param: vLB_type
- vLBAgent_version_name:
- get_param: vLB_version_name
- version_number:
- get_param: vLB_version_name
- vf_module_id:
- get_param: vf_module_id
- vf_module_name:
- get_param: vf_module_name
- vnf_id:
- get_param: vnf_id
- name:
- get_param:
- - vLB_names
- - get_param: vLB_index
- networks:
- - port:
- get_resource: oam_private_net_network_port
- - port:
- get_resource: packet_mirror_network_port
- - port:
- get_resource: packet_internal_network_port
- personality:
- /root/CheckAvailability/check_availability.py:
- get_file: check_availability.py
- /root/RegisterStatus/register_status.py:
- get_file: register_status.py
- /root/call_home.py:
- get_file: call_home.py
- /root/dependencies.json:
- get_file: vlbdependencies.json
- /tmp/wait_for_resources.py:
- get_file: wait_for_resources.py
- user_data:
- str_replace:
- params:
- '%domain_name%':
- get_param: domain_name
- '%manager_hostname%':
- get_param: manager_name_0
- '%manager_oam_direct_ip_0%':
- get_param: manager_oam_direct_ip_0
- '%rpm_repo_ip_0%':
- get_param: rpmrepository_ip_0
- '%vLBInstance%':
- get_param: vLB_index
- '%vLB_cluster_name%':
- get_param: vLB_cluster_name
- '%vLB_config%':
- get_resource: vLB_volume_2
- '%vLB_data%':
- get_resource: vLB_volume_0
- '%vLB_id_number%':
- get_attr:
- - vLB_id
- - value
- '%vLB_log%':
- get_resource: vLB_volume_1
- '%vLB_node_count%':
- get_param: vLB_node_count
- '%vLB_version_name%':
- get_param: vLB_version_name
- '%vProbe_cluster_name%':
- get_param: vProbe_cluster_name
- template:
- get_file: FEAdd_On_Module_vLBCloudConfig
- user_data_format: RAW
- type: OS::Nova::Server
- vLB_id:
- properties:
- length: 4
- sequence: digits
- type: OS::Heat::RandomString
- vLB_volume_0:
- properties:
- size:
- get_param: vLB_volume_size_0
- volume_type:
- get_param: vLB_volume_type_0
- type: OS::Cinder::Volume
- vLB_volume_0_att:
- properties:
- instance_uuid:
- get_resource: vLBInstance
- volume_id:
- get_resource: vLB_volume_0
- type: OS::Cinder::VolumeAttachment
- vLB_volume_1:
- properties:
- size:
- get_param: vLB_volume_size_1
- volume_type:
- get_param: vLB_volume_type_1
- type: OS::Cinder::Volume
- vLB_volume_1_att:
- properties:
- instance_uuid:
- get_resource: vLBInstance
- volume_id:
- get_resource: vLB_volume_1
- type: OS::Cinder::VolumeAttachment
- vLB_volume_2:
- properties:
- size:
- get_param: vLB_volume_size_2
- volume_type:
- get_param: vLB_volume_type_2
- type: OS::Cinder::Volume
- vLB_volume_2_att:
- properties:
- instance_uuid:
- get_resource: vLBInstance
- volume_id:
- get_resource: vLB_volume_2
- type: OS::Cinder::VolumeAttachment
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/FEAdd_On_Module_vProbeCloudConfig b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/FEAdd_On_Module_vProbeCloudConfig
deleted file mode 100644
index f31b3dde85..0000000000
--- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/FEAdd_On_Module_vProbeCloudConfig
+++ /dev/null
@@ -1,50 +0,0 @@
-#cloud-config
- manage_etc_hosts: true
- yum_repos:
- Base_Repo:
- baseurl: "https://%rpm_repo_ip_0%/repo/base"
- enabled: true
- gpgcheck: false
- name: "Base Repo"
- sslverify: 0
- sslclientcert: /var/lib/yum/yum.cert
- sslclientkey: /var/lib/yum/yum.key
- Radcom:
- baseurl: "https://%rpm_repo_ip_0%/repo/radcom"
- enabled: true
- gpgcheck: false
- name: "Radcom Repo"
- sslverify: 0
- sslclientcert: /var/lib/yum/yum.cert
- sslclientkey: /var/lib/yum/yum.key
- package_upgrade: false
- ssh_authorized_keys:
- - "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAnuJOkl2iGaFB+BCeRak67Chy+cATmvsqLPDYQ6GMRrGg0kBMcIRExshmTJQFGC+m2xiXeo41pSLaR1vt5fDB+3ewUSBcNtZrr5VxzBWzOab1VO+sCx4f8gOkSJ7plRJ/8xZqyhV+jTkb02peWbqtW+WqERTIyGul/eMNCDnwDNxznb8jMI3KWUd3ujWgFnk8EJ9c41y2unvk42XDOUlnuvR1/FW/qPRSNwPQGLEDlDje29xB3yaMQuJRL4Z86GWb1ZVeVh/+mIO1R4Ayj0HYspDruvFa9mECR4K1QhCN9mRE5sGBMiEOK0O/pf8Y3K2J9LQ6UYAt2yHzL7fAMAKOOw=="
- runcmd:
- - "sed -i \"s/GSSAPIAuthentication yes/GSSAPIAuthentication no/g\" /etc/ssh/sshd_config"
- - "sed -i \"s/#UseDNS yes/UseDNS no/g\" /etc/ssh/sshd_config"
- - "passwd -d deployment"
- - "mkdir -pv /mnt/config"
- - "mount /dev/disk/by-label/config-2 /mnt/config"
- - "a=($(cat /mnt/config/openstack/latest/meta_data.json | /usr/local/bin/python2.7 -c 'import json,sys;obj=json.load(sys.stdin); print json.dumps(obj[\"files\"]);'));paths=0; values=0;counter=0;function remove_json_chars() { input=$1; echo $1 | sed 's/\\}//g' | sed 's/,//g' | sed 's/]//g' | sed 's/\"//g'; };for data in ${a[@]} ; do index=$(( $counter % 4 )); if [[ \"$index\" == 1 ]];then b[$paths]=$(remove_json_chars $data); paths=$(( $paths + 1 )) ; fi; if [[ \"$index\" == 3 ]];then c[$values]=$(remove_json_chars $data); values=$(( $values + 1 )) ; fi; counter=$(( $counter + 1 )) ; done; path_counter=0; for file in ${c[@]} ; do cp /mnt/config/openstack${file} ${b[$path_counter]}; path_counter=$(( ${path_counter} + 1 )) ; done"
- - "cat /mnt/config/openstack/latest/meta_data.json | /usr/local/bin/python2.7 -c 'import json,sys;obj=json.load(sys.stdin); print json.dumps(obj[\"meta\"]);' > /meta.js"
- - "sed -i 's|_colon_|:|g' /meta.js"
- - "sed -i 's|_slash_|/|g' /meta.js"
- - "/usr/local/bin/python2.7 /tmp/wait_for_resources.py -m %manager_oam_direct_ip_0%"
- - "chmod 0754 /root/call_home.py /root/RegisterStatus/register_status.py /root/CheckAvailability/check_availability.py"
- - "/usr/local/bin/python2.7 /root/CheckAvailability/check_availability.py %manager_oam_direct_ip_0%"
- - "echo MH probe_data %probe_data%"
- - "echo MH probe_log %probe_log%"
- - "echo MH probe_config %probe_config%"
- - "sed -i 's/QROUTER_CLUSTER_NAME/%qrouter_cluster_name%/g' /root/dependencies.json"
- - "sed -i 's/VPROBE_CLUSTER_NAME/%vProbe_cluster_name%/g' /root/dependencies.json"
- - "sed -i 's/VPROBE_NODE_COUNT/%vProbe_node_count%/g' /root/dependencies.json"
- - "sed -i 's/MANAGER_INSTANCE_NAME/%manager_hostname%.%domain_name%/g' /root/dependencies.json"
- - "sed -i 's/QTRACE_HOST_NAME/%qtrace_hostname%.%win_domain_name%/g' /root/dependencies.json"
- - "sed -i 's/PROBE_INSTANCE/%ProbeInstance%/g' /root/dependencies.json"
- - "probe_id=$(($RANDOM%8999+1000))"
- - "echo $probe_id > /etc/hostname"
- - "sed -i 's/P_ID/'$probe_id'/g' /meta.js"
- - "echo MH probe_id=$probe_id"
- - "mkdir -pv /radcom/software"
- - "/usr/local/bin/python2.7 /root/call_home.py %manager_oam_direct_ip_0%"
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/FEAdd_On_Module_vProbeTemplate.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/FEAdd_On_Module_vProbeTemplate.yaml
deleted file mode 100644
index d343ee5595..0000000000
--- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/FEAdd_On_Module_vProbeTemplate.yaml
+++ /dev/null
@@ -1,308 +0,0 @@
-heat_template_version: 2014-10-16
-
-parameters:
- cdr_network:
- type: string
- domain_name:
- type: string
- vprobe_image_name:
- type: string
- manager_name_0:
- type: string
- manager_oam_direct_ip_0:
- type: string
- ntp_timezone:
- type: string
- oam_private_net_name:
- type: string
- packet_internal_network:
- type: string
- qrouter_cluster_name:
- type: string
- qtrace_name_0:
- type: string
- region_name:
- type: string
- rpmrepository_ip_0:
- type: string
- security_group:
- type: string
- tenant_name:
- type: string
- vLB_node_count:
- type: number
- vProbe_cluster_name:
- type: string
- vProbe_node_count:
- type: number
- vProbe_version_name:
- type: string
- vf_module_id:
- type: string
- vf_module_name:
- type: string
- vnf_id:
- type: string
- vprobe_AppDependenciesMachineType:
- type: string
- availability_zone_0:
- type: string
- vprobe_flavor_name:
- type: string
- vprobe_index:
- type: number
- vprobe_names:
- type: comma_delimited_list
- vprobe_type:
- type: string
- vprobe_volume_name_0:
- type: string
- vprobe_volume_name_1:
- type: string
- vprobe_volume_name_2:
- type: string
- vprobe_volume_size_0:
- type: number
- vprobe_volume_size_1:
- type: number
- vprobe_volume_size_2:
- type: number
- vprobe_volume_type_0:
- type: string
- vprobe_volume_type_1:
- type: string
- vprobe_volume_type_2:
- type: string
- win_domain_name:
- type: string
-resources:
- ProbeInstance:
- properties:
- availability_zone:
- get_param: availability_zone_0
- config_drive: true
- flavor:
- get_param: vprobe_flavor_name
- image:
- get_param: vprobe_image_name
- metadata:
- AppDependencies:
- get_param: vprobe_AppDependenciesMachineType
- DPDK: DPDK_IP
- ProbeInstance:
- get_param: vprobe_index
- cdr_network_cidr:
- get_attr:
- - cdr_network_port
- - subnets
- - 0
- - cidr
- cdr_network_ip_0:
- get_attr:
- - cdr_network_port
- - fixed_ip_0s
- - 0
- - ip_address
- cluster_name:
- get_param: vProbe_cluster_name
- machine_name:
- get_param:
- - vprobe_names
- - get_param: vprobe_index
- machine_type: vProbe
- manager_oam_direct_ip_0:
- get_param: manager_oam_direct_ip_0
- mount_colon__slash_config:
- get_resource: vprobe_volume_2
- mount_colon__slash_data:
- get_resource: vprobe_volume_0
- mount_colon__slash_log:
- get_resource: vprobe_volume_1
- ntp_timezone:
- get_param: ntp_timezone
- oam_private_network_cidr:
- get_attr:
- - oam_private_net_network_port
- - subnets
- - 0
- - cidr
- oam_private_network_ip_0:
- get_attr:
- - oam_private_net_network_port
- - fixed_ip_0s
- - 0
- - ip_address
- packet_internal_network_cidr:
- get_attr:
- - packet_internal_network_port
- - subnets
- - 0
- - cidr
- packet_internal_network_ip_0:
- get_attr:
- - packet_internal_network_port
- - fixed_ip_0s
- - 0
- - ip_address
- probe_id: P_ID
- probe_name:
- get_param:
- - vprobe_names
- - get_param: vprobe_index
- region:
- get_param: region_name
- repo_ip_0:
- get_param: rpmrepository_ip_0
- tenant:
- get_param: tenant_name
- vLB_node_count:
- get_param: vLB_node_count
- vProbe_node_count:
- get_param: vProbe_node_count
- vProbe_version_name:
- get_param: vProbe_version_name
- version_number:
- get_param: vProbe_version_name
- vf_module_id:
- get_param: vf_module_id
- vf_module_name:
- get_param: vf_module_name
- vnf_id:
- get_param: vnf_id
- vprobe_type:
- get_param: vprobe_type
- name:
- get_param:
- - vprobe_names
- - get_param: vprobe_index
- networks:
- - port:
- get_resource: oam_private_net_network_port
- - port:
- get_resource: cdr_network_port
- - port:
- get_resource: packet_internal_network_port
- personality:
- /root/CheckAvailability/check_availability.py:
- get_file: check_availability.py
- /root/RegisterStatus/register_status.py:
- get_file: register_status.py
- /root/call_home.py:
- get_file: call_home.py
- /root/dependencies.json:
- get_file: vprobedependencies.json
- /tmp/wait_for_resources.py:
- get_file: wait_for_resources.py
- user_data:
- str_replace:
- params:
- '%ProbeInstance%':
- get_param: vprobe_index
- '%domain_name%':
- get_param: domain_name
- '%manager_hostname%':
- get_param: manager_name_0
- '%manager_oam_direct_ip_0%':
- get_param: manager_oam_direct_ip_0
- '%probe_config%':
- get_resource: vprobe_volume_2
- '%probe_data%':
- get_resource: vprobe_volume_0
- '%probe_id_number%':
- get_attr:
- - vprobe_id
- - value
- '%probe_log%':
- get_resource: vprobe_volume_1
- '%qrouter_cluster_name%':
- get_param: qrouter_cluster_name
- '%qtrace_hostname%':
- get_param: qtrace_name_0
- '%rpm_repo_ip_0%':
- get_param: rpmrepository_ip_0
- '%vProbe_cluster_name%':
- get_param: vProbe_cluster_name
- '%vProbe_node_count%':
- get_param: vProbe_node_count
- '%vProbe_version_name%':
- get_param: vProbe_version_name
- '%win_domain_name%':
- get_param: win_domain_name
- template:
- get_file: FEAdd_On_Module_vProbeCloudConfig
- user_data_format: RAW
- type: OS::Nova::Server
- cdr_network_port:
- properties:
- network:
- get_param: cdr_network
- security_groups:
- - get_param: security_group
- type: OS::Neutron::Port
- oam_private_net_network_port:
- properties:
- network:
- get_param: oam_private_net_name
- security_groups:
- - get_param: security_group
- type: OS::Neutron::Port
- packet_internal_network_port:
- properties:
- network:
- get_param: packet_internal_network
- security_groups:
- - get_param: security_group
- type: OS::Neutron::Port
- vprobe_id:
- properties:
- length: 4
- sequence: digits
- type: OS::Heat::RandomString
- vprobe_volume_0:
- properties:
- description:
- get_param: vprobe_volume_name_0
- size:
- get_param: vprobe_volume_size_0
- volume_type:
- get_param: vprobe_volume_type_0
- type: OS::Cinder::Volume
- vprobe_volume_0_att:
- properties:
- instance_uuid:
- get_resource: ProbeInstance
- volume_id:
- get_resource: vprobe_volume_0
- type: OS::Cinder::VolumeAttachment
- vprobe_volume_1:
- properties:
- description:
- get_param: vprobe_volume_name_1
- size:
- get_param: vprobe_volume_size_1
- volume_type:
- get_param: vprobe_volume_type_1
- type: OS::Cinder::Volume
- vprobe_volume_1_att:
- properties:
- instance_uuid:
- get_resource: ProbeInstance
- volume_id:
- get_resource: vprobe_volume_1
- type: OS::Cinder::VolumeAttachment
- vprobe_volume_2:
- properties:
- description:
- get_param: vprobe_volume_name_2
- size:
- get_param: vprobe_volume_size_2
- volume_type:
- get_param: vprobe_volume_type_2
- type: OS::Cinder::Volume
- vprobe_volume_2_att:
- properties:
- instance_uuid:
- get_resource: ProbeInstance
- volume_id:
- get_resource: vprobe_volume_2
- type: OS::Cinder::VolumeAttachment \ 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/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/FEBase_Module.env b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/FEBase_Module.env
deleted file mode 100644
index 76907855eb..0000000000
--- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/FEBase_Module.env
+++ /dev/null
@@ -1,91 +0,0 @@
-parameters:
- base_image_name: rprb_centos_6_7_05_24_2016
- #domain_name: novalocal
- #manager_name_0: zrsrv01qmn001
- #manager_oam_direct_ip_0: null
- ntp_timezone: UTC
- packet_internal_network_name: rprb_26071_mme_int_pktinternal_net_1
- packet_internal_network_subnet_alloc_end: 192.0.6.250
- packet_internal_network_subnet_alloc_start: 192.0.6.2
- packet_internal_network_subnet_cidr: 192.0.6.0/24
- packet_internal_network_subnet_name: rprb_26071_mme_int_pktinternal_net_1_subnet
- packet_mirror_network_name: rprb_26071_mme_int_pktmirror_net_1
- packet_mirror_network_subnet_alloc_end: 20.20.5.250
- packet_mirror_network_subnet_alloc_start: 20.20.5.2
- packet_mirror_network_subnet_cidr: 20.20.5.0/24
- packet_mirror_network_subnet_name: rprb_26071_mme_int_pktmirror_net_1_subnet
-# availability_zone_0: nova
- qrouter_cluster_name: qrouter_cluster
- qrouter_flavor_name: m1.large
-# qrouter_names: zrsrv01xlb000,zrsrv01xlb001,zrsrv01xlb002,zrsrv01xlb003,zrsrv01xlb004
- qrouter_node_count: 1
- #qrouter_vnf_module_name: QRouter
- qrouter_volume_name_0: data
- qrouter_volume_name_1: log
- qrouter_volume_name_2: config
- qrouter_volume_size_0: 1
- qrouter_volume_size_1: 1
- qrouter_volume_size_2: 1
- qrouter_volume_type_0: volumes_ceph
- qrouter_volume_type_1: volumes_ceph
- qrouter_volume_type_2: volumes_ceph
- #qtrace_name_0: zrsrv01qtr001
- #region_name: Tel Aviv
- rpmrepository_ip_0: null
- #tenant_name: RADCOM
-# availability_zone_1: nova
- vLBAgent_cluster_name: vLBAgent_cluster
- vLBAgent_flavor_name: m1.large
-# vLBAgent_names: zrvlb01mme000,zrvlb01mme001,zrvlb01mme002,zrvlb01mme003,zrvlb01mme004
- vLBAgent_node_count: 1
- vLBAgent_type: mme
- vLBAgent_version_name: vProbe.r.11.1.e._08_16-12_53
- vLBAgent_volume_name_0: data
- vLBAgent_volume_name_1: log
- vLBAgent_volume_name_2: config
- vLBAgent_volume_size_0: 15
- vLBAgent_volume_size_1: 1
- vLBAgent_volume_size_2: 1
- vLBAgent_volume_type_0: volumes_ceph
- vLBAgent_volume_type_1: volumes_ceph
- vLBAgent_volume_type_2: volumes_ceph
-# availability_zone_2: nova
- vLB_cluster_name: vLB_cluster
- vLB_flavor_name: m1.large
-# vLB_names: zrvlb01gtp000,zrvlb01gtp001,zrvlb01gtp002,zrvlb01gtp003,zrvlb01gtp004
- vLB_node_count: 1
- vLB_type: mme
- vLB_version_name: vProbe.r.11.1.e._08_16-12_53
- vLB_volume_name_0: data
- vLB_volume_name_1: log
- vLB_volume_name_2: config
- vLB_volume_size_0: 10
- vLB_volume_size_1: 1
- vLB_volume_size_2: 1
- vLB_volume_type_0: volumes_ceph
- vLB_volume_type_1: volumes_ceph
- vLB_volume_type_2: volumes_ceph
- vProbe_cluster_name: vProbe_cluster
- vProbe_node_count: 1
- vProbe_version_name: vProbe.r.11.1.e._08_16-12_53
- version_number: 11.1.5
- #vf_module_id: 0bb8ee04-c9aa-4b51-8aa6-763343d25692
- #vlb_vnf_module_name: vLB
- #vlbagent_vnf_module_name: vLBAgent
- #vnf_id: df9ad862-763e-463b-a761-eba2077f9930
- vprobe_AppDependenciesMachineType: DatabaseUpgrade
-# availability_zone_3: nova
- vprobe_flavor_name: m1.large
-# vprobe_names: zrprb01mme000,zrprb01mme001,zrprb01mme002,zrprb01mme003,zrprb01mme004
- vprobe_type: mme
- #vf_module_name: vProbe
- vprobe_volume_name_0: data
- vprobe_volume_name_1: log
- vprobe_volume_name_2: config
- vprobe_volume_size_0: 100
- vprobe_volume_size_1: 5
- vprobe_volume_size_2: 1
- vprobe_volume_type_0: volumes_ceph
- vprobe_volume_type_1: volumes_ceph
- vprobe_volume_type_2: volumes_ceph
- #win_domain_name: openstacklocal
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/FEBase_Module.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/FEBase_Module.yaml
deleted file mode 100644
index 5d0a5457ca..0000000000
--- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/FEBase_Module.yaml
+++ /dev/null
@@ -1,670 +0,0 @@
-heat_template_version: '2014-10-16'
-
-parameters:
- base_image_name:
- description: The base ID or name of the image to boot with
- type: string
- cdr_network:
- description: A string specifying a symbolic name for the network
- type: string
- domain_name:
- description: The servers domain
- type: string
- manager_name_0:
- description: VM Name for Manager VM 0
- type: string
- manager_oam_direct_ip_0:
- description: The public ip address of the manager
- type: string
- ntp_timezone:
- description: Name of NTP Time zone to be used
- type: string
- oam_private_net_name:
- description: A string specifying a symbolic name for the network
- type: string
- packet_internal_network_name:
- description: A string specifying a symbolic name for the network
- type: string
- packet_internal_network_subnet_alloc_end:
- description: End address for the allocation pool
- type: string
- packet_internal_network_subnet_alloc_start:
- description: Start address for the allocation pool
- type: string
- packet_internal_network_subnet_cidr:
- description: The Classless Inter-Domain Routing
- type: string
- packet_internal_network_subnet_name:
- description: The name of the subnet
- type: string
- packet_mirror_network_name:
- description: A string specifying a symbolic name for the network
- type: string
- packet_mirror_network_subnet_alloc_end:
- description: End address for the allocation pool
- type: string
- packet_mirror_network_subnet_alloc_start:
- description: Start address for the allocation pool
- type: string
- packet_mirror_network_subnet_cidr:
- description: The Classless Inter-Domain Routing
- type: string
- packet_mirror_network_subnet_name:
- description: The name of the subnet
- type: string
- availability_zone_0:
- description: Name of the availability zone for server placement
- type: string
- qrouter_cluster_name:
- description: The component cluster name
- type: string
- qrouter_flavor_name:
- description: The ID or name of the flavor to boot onto
- type: string
- qrouter_names:
- description: VM Names for QRouter VMs
- type: comma_delimited_list
- qrouter_node_count:
- description: The number of nodes to create
- type: number
- qrouter_volume_name_0:
- description: The name of the volume
- type: string
- qrouter_volume_name_1:
- description: The name of the volume
- type: string
- qrouter_volume_name_2:
- description: The name of the volume
- type: string
- qrouter_volume_size_0:
- description: The size of the volume in GB
- type: number
- qrouter_volume_size_1:
- description: The size of the volume in GB
- type: number
- qrouter_volume_size_2:
- description: The size of the volume in GB
- type: number
- qrouter_volume_type_0:
- description: The type of the volume mapping to a backend
- type: string
- qrouter_volume_type_1:
- description: The type of the volume mapping to a backend
- type: string
- qrouter_volume_type_2:
- description: The type of the volume mapping to a backend
- type: string
- qtrace_name_0:
- description: VM Name for QRouter VMs
- type: string
- region_name:
- description: Name of region to be used
- type: string
- rpmrepository_ip_0:
- description: The public ip address of the repository
- type: string
- tenant_name:
- description: Name of tenant to be used
- type: string
- availability_zone_1:
- description: Name of the availability zone for server placement
- type: string
- vLBAgent_cluster_name:
- description: The component cluster name
- type: string
- vLBAgent_flavor_name:
- description: The ID or name of the flavor to boot onto
- type: string
- vLBAgent_names:
- description: VM Names for vLBAgent VMs
- type: comma_delimited_list
- vLBAgent_node_count:
- description: The number of nodes to create
- type: number
- vLBAgent_type:
- description: vLBAgent Type. mme or sgw
- type: string
- vLBAgent_version_name:
- description: The version name of the component
- type: string
- vLBAgent_volume_name_0:
- description: The name of the volume
- type: string
- vLBAgent_volume_name_1:
- description: The name of the volume
- type: string
- vLBAgent_volume_name_2:
- description: The name of the volume
- type: string
- vLBAgent_volume_size_0:
- description: The size of the volume in GB
- type: number
- vLBAgent_volume_size_1:
- description: The size of the volume in GB
- type: number
- vLBAgent_volume_size_2:
- description: The size of the volume in Gigabytes.
- type: number
- vLBAgent_volume_type_0:
- description: The type of the volume mapping to a backend
- type: string
- vLBAgent_volume_type_1:
- description: The type of the volume mapping to a backend
- type: string
- vLBAgent_volume_type_2:
- description: The Cinder volume type. Used to specify the backend.
- type: string
- availability_zone_2:
- description: Name of the availability zone for server placement.
- type: string
- vLB_cluster_name:
- description: The component cluster name.
- type: string
- vLB_flavor_name:
- description: The name of the flavor to boot onto.
- type: string
- vLB_names:
- description: VM Names for vLB VMs
- type: comma_delimited_list
- vLB_node_count:
- description: The number of nodes to create.
- type: number
- vLB_type:
- description: The type of VLB. MME or SGW.
- type: string
- vLB_version_name:
- description: The version name of the component.
- type: string
- vLB_volume_name_0:
- description: The name of the volume
- type: string
- vLB_volume_name_1:
- description: The name of the volume
- type: string
- vLB_volume_name_2:
- description: The name of the volume
- type: string
- vLB_volume_size_0:
- description: The size of the volume in GB.
- type: number
- vLB_volume_size_1:
- description: The size of the volume in GB.
- type: number
- vLB_volume_size_2:
- description: The size of the volume in GB.
- type: number
- vLB_volume_type_0:
- description: The type of the volume mapping to a backend
- type: string
- vLB_volume_type_1:
- description: The type of the volume mapping to a backend
- type: string
- vLB_volume_type_2:
- description: The type of the volume mapping to a backend
- type: string
- vProbe_cluster_name:
- description: The component cluster name
- type: string
- vProbe_node_count:
- description: The number of nodes to create
- type: number
- vProbe_version_name:
- description: The version name of the component
- type: string
- version_number:
- description: The version number of the component
- type: string
- vf_module_id:
- description: The VF MODULE ID of the RADCOM System.
- type: string
- vnf_id:
- description: The VNF ID of the RADCOM System.
- type: string
- vprobe_AppDependenciesMachineType:
- description: The application dependencies
- type: string
- availability_zone_3:
- description: Name of the availability zone for server placement
- type: string
- vprobe_flavor_name:
- description: The name of the flavor to boot onto
- type: string
- vprobe_names:
- description: VM Names for vProbe VMs
- type: comma_delimited_list
- vprobe_type:
- description: The type of vProbe. MME or SGW.
- type: string
- vf_module_name:
- description: The VNF module name for vProbe elements.
- type: string
- vprobe_volume_name_0:
- description: The name of the volume
- type: string
- vprobe_volume_name_1:
- description: The name of the volume
- type: string
- vprobe_volume_name_2:
- description: The name of the volume
- type: string
- vprobe_volume_size_0:
- description: The size of the volume in GB
- type: number
- vprobe_volume_size_1:
- description: The size of the volume in GB
- type: number
- vprobe_volume_size_2:
- description: The size of the volume in GB
- type: number
- vprobe_volume_type_0:
- description: The type of the volume mapping to a backend
- type: string
- vprobe_volume_type_1:
- description: The type of the volume mapping to a backend
- type: string
- vprobe_volume_type_2:
- description: The type of the volume mapping to a backend
- type: string
- win_domain_name:
- description: Windows servers' domain
- type: string
-resources:
- QRouter:
- depends_on:
- - security_group
- - packet_mirror_network
- - packet_mirror_network_subnet
- - packet_internal_network
- - packet_internal_network_subnet
- properties:
- cdr_network:
- get_param: cdr_network
- domain_name:
- get_param: domain_name
- qrouter_image_name:
- get_param: base_image_name
- manager_name_0:
- get_param: manager_name_0
- manager_oam_direct_ip_0:
- get_param: manager_oam_direct_ip_0
- ntp_timezone:
- get_param: ntp_timezone
- oam_private_net_name:
- get_param: oam_private_net_name
- availability_zone_0:
- get_param: availability_zone_0
- qrouter_cluster_name:
- get_param: qrouter_cluster_name
- qrouter_flavor_name:
- get_param: qrouter_flavor_name
- qrouter_names:
- get_param: qrouter_names
- qrouter_node_count:
- get_param: qrouter_node_count
- qrouter_volume_name_0:
- get_param: qrouter_volume_name_0
- qrouter_volume_name_1:
- get_param: qrouter_volume_name_1
- qrouter_volume_name_2:
- get_param: qrouter_volume_name_2
- qrouter_volume_size_0:
- get_param: qrouter_volume_size_0
- qrouter_volume_size_1:
- get_param: qrouter_volume_size_1
- qrouter_volume_size_2:
- get_param: qrouter_volume_size_2
- qrouter_volume_type_0:
- get_param: qrouter_volume_type_0
- qrouter_volume_type_1:
- get_param: qrouter_volume_type_1
- qrouter_volume_type_2:
- get_param: qrouter_volume_type_2
- region_name:
- get_param: region_name
- rpmrepository_ip_0:
- get_param: rpmrepository_ip_0
- security_group:
- get_resource: security_group
- tenant_name:
- get_param: tenant_name
- version_number:
- get_param: version_number
- vf_module_id:
- get_param: vf_module_id
- vf_module_name:
- get_param: vf_module_name
- vnf_id:
- get_param: vnf_id
- type: FEAdd_On_Module_QRouterTemplate.yaml
- packet_internal_network:
- properties:
- name:
- get_param: packet_internal_network_name
- type: OS::Neutron::Net
- packet_internal_network_subnet:
- properties:
- allocation_pools:
- - end:
- get_param: packet_internal_network_subnet_alloc_end
- start:
- get_param: packet_internal_network_subnet_alloc_start
- cidr:
- get_param: packet_internal_network_subnet_cidr
- enable_dhcp: true
- gateway_ip_0: null
- name:
- get_param: packet_internal_network_subnet_name
- network_id:
- get_resource: packet_internal_network
- type: OS::Neutron::Subnet
- packet_mirror_network:
- properties:
- name:
- get_param: packet_mirror_network_name
- type: OS::Neutron::Net
- packet_mirror_network_subnet:
- properties:
- allocation_pools:
- - end:
- get_param: packet_mirror_network_subnet_alloc_end
- start:
- get_param: packet_mirror_network_subnet_alloc_start
- cidr:
- get_param: packet_mirror_network_subnet_cidr
- enable_dhcp: true
- gateway_ip_0: null
- name:
- get_param: packet_mirror_network_subnet_name
- network_id:
- get_resource: packet_mirror_network
- type: OS::Neutron::Subnet
- security_group:
- properties:
- name: FE_radcom_security_group
- rules:
- - port_range_max: 23
- port_range_min: 23
- protocol: tcp
- - port_range_max: 123
- port_range_min: 123
- protocol: tcp
- - port_range_max: 3389
- port_range_min: 3389
- protocol: tcp
- - port_range_max: 5434
- port_range_min: 5434
- protocol: udp
- - port_range_max: 5443
- port_range_min: 5435
- protocol: tcp
- - port_range_max: 8000
- port_range_min: 8000
- protocol: tcp
- - port_range_max: 9900
- port_range_min: 9900
- protocol: tcp
- - port_range_max: 12050
- port_range_min: 12000
- protocol: tcp
- - port_range_max: 161
- port_range_min: 161
- protocol: tcp
- - port_range_max: 8000
- port_range_min: 8000
- protocol: udp
- - protocol: icmp
- - protocol: 47
- - port_range_max: 22
- port_range_min: 22
- protocol: tcp
- - port_range_max: 3050
- port_range_min: 3000
- protocol: tcp
- - port_range_max: 8081
- port_range_min: 8080
- protocol: tcp
- - port_range_max: 8084
- port_range_min: 8084
- protocol: tcp
- - port_range_max: 4000
- port_range_min: 4000
- protocol: tcp
- - port_range_max: 33000
- port_range_min: 33000
- protocol: tcp
- - port_range_max: 8082
- port_range_min: 8082
- protocol: tcp
- type: OS::Neutron::SecurityGroup
- vLB:
- depends_on:
- - security_group
- - packet_mirror_network
- - packet_mirror_network_subnet
- - packet_internal_network
- - packet_internal_network_subnet
- properties:
- domain_name:
- get_param: domain_name
- vlb_image_name:
- get_param: base_image_name
- manager_name_0:
- get_param: manager_name_0
- manager_oam_direct_ip_0:
- get_param: manager_oam_direct_ip_0
- ntp_timezone:
- get_param: ntp_timezone
- oam_private_net_name:
- get_param: oam_private_net_name
- packet_internal_network:
- get_resource: packet_internal_network
- packet_mirror_network:
- get_resource: packet_mirror_network
- region_name:
- get_param: region_name
- rpmrepository_ip_0:
- get_param: rpmrepository_ip_0
- security_group:
- get_resource: security_group
- tenant_name:
- get_param: tenant_name
- availability_zone_0:
- get_param: availability_zone_1
- vLB_cluster_name:
- get_param: vLB_cluster_name
- vLB_flavor_name:
- get_param: vLB_flavor_name
- vLB_names:
- get_param: vLB_names
- vLB_node_count:
- get_param: vLB_node_count
- vLB_type:
- get_param: vLB_type
- vLB_version_name:
- get_param: vLB_version_name
- vLB_volume_name_0:
- get_param: vLB_volume_name_0
- vLB_volume_name_1:
- get_param: vLB_volume_name_1
- vLB_volume_name_2:
- get_param: vLB_volume_name_2
- vLB_volume_size_0:
- get_param: vLB_volume_size_0
- vLB_volume_size_1:
- get_param: vLB_volume_size_1
- vLB_volume_size_2:
- get_param: vLB_volume_size_2
- vLB_volume_type_0:
- get_param: vLB_volume_type_0
- vLB_volume_type_1:
- get_param: vLB_volume_type_1
- vLB_volume_type_2:
- get_param: vLB_volume_type_2
- vProbe_cluster_name:
- get_param: vProbe_cluster_name
- vf_module_id:
- get_param: vf_module_id
- vf_module_name:
- get_param: vf_module_name
- vnf_id:
- get_param: vnf_id
- type: FEAdd_On_Module_vLBTemplate.yaml
- vLBAgent:
- depends_on:
- - security_group
- - packet_mirror_network
- - packet_mirror_network_subnet
- - packet_internal_network
- - packet_internal_network_subnet
- properties:
- domain_name:
- get_param: domain_name
- vlb_agent_image_name:
- get_param: base_image_name
- manager_name_0:
- get_param: manager_name_0
- manager_oam_direct_ip_0:
- get_param: manager_oam_direct_ip_0
- ntp_timezone:
- get_param: ntp_timezone
- oam_private_net_name:
- get_param: oam_private_net_name
- packet_internal_network:
- get_resource: packet_internal_network
- packet_mirror_network:
- get_resource: packet_mirror_network
- region_name:
- get_param: region_name
- rpmrepository_ip_0:
- get_param: rpmrepository_ip_0
- security_group:
- get_resource: security_group
- tenant_name:
- get_param: tenant_name
- availability_zone_0:
- get_param: availability_zone_2
- vLBAgent_cluster_name:
- get_param: vLBAgent_cluster_name
- vLBAgent_flavor_name:
- get_param: vLBAgent_flavor_name
- vLBAgent_names:
- get_param: vLBAgent_names
- vLBAgent_node_count:
- get_param: vLBAgent_node_count
- vLBAgent_type:
- get_param: vLBAgent_type
- vLBAgent_version_name:
- get_param: vLBAgent_version_name
- vLBAgent_volume_name_0:
- get_param: vLBAgent_volume_name_0
- vLBAgent_volume_name_1:
- get_param: vLBAgent_volume_name_1
- vLBAgent_volume_name_2:
- get_param: vLBAgent_volume_name_2
- vLBAgent_volume_size_0:
- get_param: vLBAgent_volume_size_0
- vLBAgent_volume_size_1:
- get_param: vLBAgent_volume_size_1
- vLBAgent_volume_size_2:
- get_param: vLBAgent_volume_size_2
- vLBAgent_volume_type_0:
- get_param: vLBAgent_volume_type_0
- vLBAgent_volume_type_1:
- get_param: vLBAgent_volume_type_1
- vLBAgent_volume_type_2:
- get_param: vLBAgent_volume_type_2
- vLB_cluster_name:
- get_param: vLB_cluster_name
- vLB_node_count:
- get_param: vLB_node_count
- vProbe_cluster_name:
- get_param: vProbe_cluster_name
- vf_module_id:
- get_param: vf_module_id
- vf_module_name:
- get_param: vf_module_name
- vnf_id:
- get_param: vnf_id
- type: FEAdd_On_Module_vLBAgentTemplate.yaml
- vProbe:
- depends_on:
- - security_group
- - packet_mirror_network
- - packet_mirror_network_subnet
- - packet_internal_network
- - packet_internal_network_subnet
- properties:
- cdr_network:
- get_param: cdr_network
- domain_name:
- get_param: domain_name
- vprobe_image_name:
- get_param: base_image_name
- manager_name_0:
- get_param: manager_name_0
- manager_oam_direct_ip_0:
- get_param: manager_oam_direct_ip_0
- ntp_timezone:
- get_param: ntp_timezone
- oam_private_net_name:
- get_param: oam_private_net_name
- packet_internal_network:
- get_resource: packet_internal_network
- qrouter_cluster_name:
- get_param: qrouter_cluster_name
- qtrace_name_0:
- get_param: qtrace_name_0
- region_name:
- get_param: region_name
- rpmrepository_ip_0:
- get_param: rpmrepository_ip_0
- security_group:
- get_resource: security_group
- tenant_name:
- get_param: tenant_name
- vLB_node_count:
- get_param: vLB_node_count
- vProbe_cluster_name:
- get_param: vProbe_cluster_name
- vProbe_node_count:
- get_param: vProbe_node_count
- vProbe_version_name:
- get_param: vProbe_version_name
- vf_module_id:
- get_param: vf_module_id
- vf_module_name:
- get_param: vf_module_name
- vnf_id:
- get_param: vnf_id
- vprobe_AppDependenciesMachineType:
- get_param: vprobe_AppDependenciesMachineType
- availability_zone_0:
- get_param: availability_zone_3
- vprobe_flavor_name:
- get_param: vprobe_flavor_name
- vprobe_names:
- get_param: vprobe_names
- vprobe_type:
- get_param: vprobe_type
- vprobe_volume_name_0:
- get_param: vprobe_volume_name_0
- vprobe_volume_name_1:
- get_param: vprobe_volume_name_1
- vprobe_volume_name_2:
- get_param: vprobe_volume_name_2
- vprobe_volume_size_0:
- get_param: vprobe_volume_size_0
- vprobe_volume_size_1:
- get_param: vprobe_volume_size_1
- vprobe_volume_size_2:
- get_param: vprobe_volume_size_2
- vprobe_volume_type_0:
- get_param: vprobe_volume_type_0
- vprobe_volume_type_1:
- get_param: vprobe_volume_type_1
- vprobe_volume_type_2:
- get_param: vprobe_volume_type_2
- win_domain_name:
- get_param: win_domain_name
- type: FEAdd_On_Module_vProbeTemplate.yaml
-
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/MANIFEST.json b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/MANIFEST.json
deleted file mode 100644
index 1daa39bfdc..0000000000
--- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/MANIFEST.json
+++ /dev/null
@@ -1,89 +0,0 @@
-{
- "name": "",
- "description": "",
- "data": [
- {
- "file": "FEAdd_On_Module_vLBTemplate.yaml",
- "type": "HEAT",
- "isBase": "false"
- },
- {
- "file": "FEAdd_On_Module_QRouterTemplate.yaml",
- "type": "HEAT",
- "isBase": "false"
- },
- {
- "file": "FEBase_Module.yaml",
- "type": "HEAT",
- "isBase": "true",
- "data": [
- {
- "file": "FEBase_Module.env",
- "type": "HEAT_ENV"
- }
- ]
- },
- {
- "file": "FEAdd_On_Module_vLBAgentTemplate.yaml",
- "type": "HEAT",
- "isBase": "false"
- },
- {
- "file": "FEAdd_On_Module_vProbeTemplate.yaml",
- "type": "HEAT",
- "isBase": "false"
- },
- {
- "file": "qrouterdependencies.json",
- "type": "OTHER"
- },
- {
- "file": "vlbagentdependencies_with_vLB.json",
- "type": "OTHER"
- },
- {
- "file": "wait_for_resources.py",
- "type": "OTHER"
- },
- {
- "file": "vprobedependencies.json",
- "type": "OTHER"
- },
- {
- "file": "FEAdd_On_Module_vProbeCloudConfig",
- "type": "OTHER"
- },
- {
- "file": "call_home.py",
- "type": "OTHER"
- },
- {
- "file": "check_availability.py",
- "type": "OTHER"
- },
- {
- "file": "vlbdependencies.json",
- "type": "OTHER"
- },
- {
- "file": "FEAdd_On_Module_QRouterCloudConfig",
- "type": "OTHER"
- },
- {
- "file": "vlbagentdependencies_without_vLB.json",
- "type": "OTHER"
- },
- {
- "file": "FEAdd_On_Module_vLBAgentCloudConfig",
- "type": "OTHER"
- },
- {
- "file": "register_status.py",
- "type": "OTHER"
- },
- {
- "file": "FEAdd_On_Module_vLBCloudConfig",
- "type": "OTHER"
- }
- ]
-} \ 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/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/call_home.py b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/call_home.py
deleted file mode 100644
index 54f2a69c09..0000000000
--- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/call_home.py
+++ /dev/null
@@ -1,97 +0,0 @@
-import argparse
-import json
-import re
-import requests
-from socket import getfqdn
-from sys import platform
-from time import sleep
-
-
-PARSER = argparse.ArgumentParser()
-PARSER.add_argument("manager_ip", help="The IPv4 Address where one can read the MaveriQConductor.")
-PARSER.add_argument("--mockupfile", type=str, help="The path of the json mockupfile to use.")
-ARGS = PARSER.parse_args()
-
-URL = "http://{0}:8084/MaveriQConductor/machine/create".format(ARGS.manager_ip)
-URL_AVAIL = "http://{0}:8084/MaveriQConductor/isReady".format(ARGS.manager_ip)
-HEADERS = {
- 'Accept': 'text/plain',
- 'Content-type': 'application/json',
- 'Connection': 'close'
-}
-
-NETWORK_MAP = {
- "$$OAM_NET_IP$$": "oam_private_network_ip",
- "$$BACKEND_NET_IP$$": "backend_interconnect_network_ip",
- "$$PACKET_MIRROR_NET_IP$$": "packet_mirror_network_ip",
- "$$CDR_NET_IP$$": "cdr_network_ip",
- "$$VERTICA_NET_IP$$": "vertica_private_network_ip",
- "$$PACKET_INTERNAL_NET_IP$$": "packet_internal_network_ip",
- "$$OAM_PROTECTED_NET_IP$$": "oam_protected_network_ip"
-}
-
-
-def map_ips_to_networks(p_meta_data):
- network_to_ip = {}
- for network_name in NETWORK_MAP.keys():
- if NETWORK_MAP[network_name] in p_meta_data:
- network_to_ip[network_name] = str(p_meta_data[NETWORK_MAP[network_name]])
- return network_to_ip
-
-
-def check_availability():
- is_connected = False
- while is_connected is False:
- try:
- if requests.get(URL_AVAIL, headers={'Connection': 'close'}).status_code is 200:
- is_connected = True
- sleep(2)
- except requests.exceptions.ConnectionError:
- sleep(2)
-
-
-def post_request(p_json_data, p_headers):
- req = requests.post(url=URL, data=p_json_data, headers=p_headers)
- return req.status_code
-
-
-def multiple_replace(regex_dictionary, text):
- regex = re.compile("(%s)" % "|".join(map(re.escape, regex_dictionary.keys())))
- return regex.sub(
- lambda x: regex_dictionary[x.string[x.start():x.end()]], text
- )
-
-
-def main():
- # Depending on platform, load the dependencies and meta.js files.
- if ARGS.mockupfile:
- with open(ARGS.mockupfile, 'r') as mockup_file:
- mockup_file_data = mockup_file.read()
- return post_request(mockup_file_data, HEADERS)
- else:
- if platform.startswith('linux'):
- with open(r'/root/dependencies.json', 'r') as json_file:
- json_data = json_file.read()
- with open(r'/meta.js', 'r') as json_file:
- meta_data = json.load(json_file)
-
- elif platform == 'cygwin' or platform == 'win32':
- with open(r'c:\\dependencies.json', 'r') as json_file:
- json_data = json_file.read()
- with open(r'c:\\meta.js', 'r') as json_file:
- meta_data = json.load(json_file)
- else:
- json_data = {}
- meta_data = {}
- raise Exception('Unsupported platform')
- # Build dictionary mapping each IP to network.
- regex_dict = map_ips_to_networks(meta_data)
- regex_dict['$$HOSTNAME$$'] = getfqdn()
-
- # Perform any replacement needed.
- json_data = multiple_replace(regex_dict, json_data)
- print json_data
- check_availability()
- return post_request(p_json_data=json_data, p_headers=HEADERS)
-
-print main()
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/check_availability.py b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/check_availability.py
deleted file mode 100644
index e93b372f15..0000000000
--- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/check_availability.py
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/local/bin/python2.7
-import argparse
-import requests
-import sys
-from time import sleep
-
-conductor_url = "http://{0}:8084/MaveriQConductor/isReady"
-check_api = "http://{0}:8084/MaveriQManager/api/Inventory/isReady"
-check_user = "omniq"
-check_password = "radcom"
-
-
-PARSER = argparse.ArgumentParser()
-PARSER.add_argument("ScribeIP", type=str,
- help="The Stage the application is currently in")
-ARGS = PARSER.parse_args()
-
-print "Begining check availability check!"
-isConnected = False
-while isConnected is False:
- try:
- sys.stdout.write('.')
- sleep(2)
- if requests.get(conductor_url.format(ARGS.ScribeIP),
- headers={'Connection': 'close'}).status_code is 200 and requests.get(
- check_api.format(ARGS.ScribeIP,
- headers={'Connection': 'close'}),
- auth=requests.auth.HTTPBasicAuth(check_user,
- check_password)).status_code is 200:
- isConnected = True
- except requests.exceptions.ConnectionError as e:
- sleep(2)
-
-print 'Conductor and Scribe are ready!'
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/qrouterdependencies.json b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/qrouterdependencies.json
deleted file mode 100644
index 0a570b612b..0000000000
--- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/qrouterdependencies.json
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- "name": "$$HOSTNAME$$",
- "type": "qrouter",
- "cluster": "QROUTER_CLUSTER_NAME",
- "node_count": "QROUTER_NODE_COUNT",
- "attributes": [
- {
- "name": "ip-eth0",
- "value": "$$OAM_NET_IP$$"
- },
- {
- "name": "rprb_26071_oam_direct_net_1",
- "value": "$$OAM_NET_IP$$"
- },
- {
- "name": "rprb_26071_cdr_direct_net_1",
- "value": "$$CDR_NET_IP$$"
- }
- ],
- "dependencies": [
- {
- "resource_name": "ProcessingCluster",
- "resource_type": "cluster",
- "attribute": "rprb_26071_cdr_direct_net_1",
- "role": "processing_ip",
- "format": "all"
- },
- {
- "resource_name": "MANAGER_INSTANCE_NAME",
- "resource_type": "machine",
- "attribute": "rprb_26071_oam_direct_net_1",
- "role": "manager_oam_direct_ip"
- }
- ]
-}
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/register_status.py b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/register_status.py
deleted file mode 100644
index 98adafaf2f..0000000000
--- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/register_status.py
+++ /dev/null
@@ -1,126 +0,0 @@
-#!/usr/local/bin/python2.7
-"""
-This script is a combination of the AddComponentScript and the OnBoardingStatus
-scripts. Depending on the arguments given, it will either post an
-"addMachineCommand" or an "logOnBoardingInfo" request.
-"""
-import argparse
-import json
-import netifaces
-import requests
-from socket import getfqdn
-import sys
-from time import time
-
-
-parser = argparse.ArgumentParser()
-parser.add_argument("scribe_ip", type=str,
- help="The IP where the Scribe can be reached.")
-parser.add_argument("--component-type", type=str,
- help="The component type.", required=False)
-parser.add_argument("--component-version", type=str,
- help="The component version.", required=False)
-parser.add_argument("--stage", type=str, required=False)
-parser.add_argument("--status", required=False,
- choices=["WARNING", "INFO", "ERROR", "OK", "FAILURE"])
-parser.add_argument("--description", type=str, required=False)
-args = parser.parse_args()
-
-add_machine_ip = "http://{0}:8084/MaveriQManager/api/Inventory/addComponent".format(args.scribe_ip)
-log_onboarding_info_ip = "http://{0}:8084/MaveriQManager/api/Inventory/logOnBoardingInfo".format(args.scribe_ip)
-user = 'omniq'
-password = 'radcom'
-
-REGION = ""
-TENANT = ""
-CLUSTER_NAME = ""
-VERSION_NUMBER = ""
-PROBE_ID = ""
-OAM_DIRECT_IP = ""
-MACHINE_TYPE = args.component_type
-MACHINE_NAME = getfqdn()
-HEALTH_STATUS = {}
-ADD_COMPONENT_BODY = {}
-
-
-def read_metadata():
- """Read the instance metadata"""
- global REGION
- global TENANT
- global CLUSTER_NAME
- global VERSION_NUMBER
- global PROBE_ID
- global OAM_DIRECT_IP
- with open('/meta.js', 'r') as json_file:
- json_data = json.loads(json_file.read())
- TENANT = json_data["tenant"]
- REGION = json_data["region"]
- CLUSTER_NAME = json_data["cluster_name"]
- VERSION_NUMBER = json_data["version_number"]
- OAM_DIRECT_IP = json_data["oam_private_network_ip"]
- if MACHINE_TYPE == 'vProbe':
- PROBE_ID = json_data["probe_id"]
-
-
-def build_health_json():
- """Builds the actual health status"""
- HEALTH_STATUS["Region"] = REGION
- HEALTH_STATUS["Tenant"] = TENANT
- HEALTH_STATUS["MachineType"] = args.component_type
- HEALTH_STATUS["MachineName"] = getfqdn()
- HEALTH_STATUS["MachineIP"] = OAM_DIRECT_IP
- HEALTH_STATUS["Time"] = long(time())
- HEALTH_STATUS["Description"] = args.description
- HEALTH_STATUS["Status"] = args.status
- HEALTH_STATUS["Stage"] = args.stage
- return HEALTH_STATUS
-
-
-def build_add_json():
- """Builds the actual health status"""
- ADD_COMPONENT_BODY["region"] = REGION
- ADD_COMPONENT_BODY["tenant"] = TENANT
- ADD_COMPONENT_BODY["componentType"] = args.component_type
- ADD_COMPONENT_BODY["clusterName"] = CLUSTER_NAME
- ADD_COMPONENT_BODY["componentVersionNumber"] = VERSION_NUMBER
- ADD_COMPONENT_BODY["machineName"] = MACHINE_NAME
- ADD_COMPONENT_BODY["machineNetworkInterfaces"] = []
- ADD_COMPONENT_BODY["OAM_IP"] = OAM_DIRECT_IP
-
- for interface in netifaces.interfaces():
- ADD_COMPONENT_BODY["machineNetworkInterfaces"].append({"name": interface, "value": netifaces.ifaddresses(interface)[2][0]['addr']})
-
- if PROBE_ID is not "":
- ADD_COMPONENT_BODY["machineID"] = REGION + '_' + TENANT + '_' +\
- CLUSTER_NAME + '_' + MACHINE_NAME + '_' + PROBE_ID
- else:
- ADD_COMPONENT_BODY["machineID"] = REGION + '_' + TENANT + '_' +\
- CLUSTER_NAME + '_' + MACHINE_NAME
- return ADD_COMPONENT_BODY
-
-
-def send_postage(p_url, p_url_user, p_url_password, p_json_data):
- json_header = {'Content-type': 'application/json'}
- request = requests.post(p_url, json.dumps(p_json_data), json_header, auth=requests.auth.HTTPBasicAuth(p_url_user, p_url_password))
- print request.status_code
- if (request.status_code != 200):
- sys.exit(1)
- return request.status_code
-
-
-def post_health():
- read_metadata()
- return send_postage(log_onboarding_info_ip, user, password,
- build_health_json())
-
-
-def post_add_machine():
- read_metadata()
- return send_postage(add_machine_ip, user, password, build_add_json())
-
-if args.stage is None and args.status is None and args.description is None:
- print "adding machine"
- print post_add_machine()
-else:
- print "logging health"
- print post_health()
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/vlbagentdependencies_with_vLB.json b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/vlbagentdependencies_with_vLB.json
deleted file mode 100644
index 0304a18f0e..0000000000
--- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/vlbagentdependencies_with_vLB.json
+++ /dev/null
@@ -1,46 +0,0 @@
-{
- "name": "$$HOSTNAME$$",
- "type": "vLBAgent",
- "cluster": "VLBAGENT_CLUSTER_NAME",
- "node_count": "VLBAGENT_NODE_COUNT",
- "attributes": [
- {
- "name": "ip-eth0",
- "value": "$$OAM_NET_IP$$"
- },
- {
- "name": "rprb_26071_oam_direct_net_1",
- "value": "$$OAM_NET_IP$$"
- },
- {
- "name": "rprb_26071_mme_int_pktmirror_net_1",
- "value": "$$PACKET_MIRROR_NET_IP$$"
- },
- {
- "name": "rprb_26071_mme_int_pktinternal_net_1",
- "value": "$$PACKET_INTERNAL_NET_IP$$"
- }
- ],
- "dependencies": [
- {
- "resource_name": "VPROBE_CLUSTER_NAME",
- "resource_type": "cluster",
- "attribute": "eth0-eth2-and-ProbeInstance",
- "role": "vProbe_cluster",
- "format": "all"
- },
- {
- "resource_name": "VLB_CLUSTER_NAME",
- "resource_type": "cluster",
- "attribute": "eth1-eth2-and-vLBInstance",
- "role": "vLB_cluster",
- "format": "all"
- },
- {
- "resource_name": "MANAGER_INSTANCE_NAME",
- "resource_type": "machine",
- "attribute": "rprb_26071_oam_direct_net_1",
- "role": "manager_oam_direct_ip"
- }
- ]
-}
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/vlbagentdependencies_without_vLB.json b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/vlbagentdependencies_without_vLB.json
deleted file mode 100644
index 1af6af96c5..0000000000
--- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/vlbagentdependencies_without_vLB.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "name": "$$HOSTNAME$$",
- "type": "vLBAgent",
- "cluster": "VLBAGENT_CLUSTER_NAME",
- "node_count": "VLBAGENT_NODE_COUNT",
- "attributes": [
- {
- "name": "ip-eth0",
- "value": "$$OAM_NET_IP$$"
- },
- {
- "name": "rprb_26071_oam_direct_net_1",
- "value": "$$OAM_NET_IP$$"
- },
- {
- "name": "rprb_26071_mme_int_pktmirror_net_1",
- "value": "$$PACKET_MIRROR_NET_IP$$"
- },
- {
- "name": "rprb_26071_mme_int_pktinternal_net_1",
- "value": "$$PACKET_INTERNAL_NET_IP$$"
- }
- ],
- "dependencies": [
- {
- "resource_name": "VPROBE_CLUSTER_NAME",
- "resource_type": "cluster",
- "attribute": "eth0-eth2-and-ProbeInstance",
- "role": "vProbe_cluster",
- "format": "all"
- },
- {
- "resource_name": "MANAGER_INSTANCE_NAME",
- "resource_type": "machine",
- "attribute": "rprb_26071_oam_direct_net_1",
- "role": "manager_oam_direct_ip"
- }
- ]
-}
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/vlbdependencies.json b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/vlbdependencies.json
deleted file mode 100644
index b0a0da7b52..0000000000
--- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/vlbdependencies.json
+++ /dev/null
@@ -1,43 +0,0 @@
-{
- "name": "$$HOSTNAME$$",
- "type": "vLB",
- "cluster": "VLB_CLUSTER_NAME",
- "node_count": "VLB_NODE_COUNT",
- "attributes": [
- {
- "name": "ip-eth0",
- "value": "$$OAM_NET_IP$$"
- },
- {
- "name": "rprb_26071_oam_direct_net_1",
- "value": "$$OAM_NET_IP$$"
- },
- {
- "name": "rprb_26071_mme_int_pktmirror_net_1",
- "value": "$$PACKET_MIRROR_NET_IP$$"
- },
- {
- "name": "rprb_26071_mme_int_pktinternal_net_1",
- "value": "$$PACKET_INTERNAL_NET_IP$$"
- },
- {
- "name": "eth1-eth2-and-vLBInstance",
- "value": "$$OAM_NET_IP$$@$$PACKET_INTERNAL_NET_IP$$@VLB_INSTANCE"
- }
- ],
- "dependencies": [
- {
- "resource_name": "VPROBE_CLUSTER_NAME",
- "resource_type": "cluster",
- "attribute": "eth0-eth2-and-ProbeInstance",
- "role": "vProbe_cluster",
- "format": "all"
- },
- {
- "resource_name": "MANAGER_INSTANCE_NAME",
- "resource_type": "machine",
- "attribute": "rprb_26071_oam_direct_net_1",
- "role": "manager_oam_direct_ip"
- }
- ]
-}
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/vprobedependencies.json b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/vprobedependencies.json
deleted file mode 100644
index 78768cf545..0000000000
--- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/vprobedependencies.json
+++ /dev/null
@@ -1,49 +0,0 @@
-{
- "name": "$$HOSTNAME$$",
- "type": "vprobe",
- "cluster": "VPROBE_CLUSTER_NAME",
- "node_count": "VPROBE_NODE_COUNT",
- "attributes": [
- {
- "name": "ip-eth0",
- "value": "$$OAM_NET_IP$$"
- },
- {
- "name": "rprb_26071_oam_direct_net_1",
- "value": "$$OAM_NET_IP$$"
- },
- {
- "name": "rprb_26071_cdr_direct_net_1",
- "value": "$$CDR_NET_IP$$"
- },
- {
- "name": "rprb_26071_mme_int_pktinternal_net_1",
- "value": "$$PACKET_INTERNAL_NET_IP$$"
- },
- {
- "name": "eth0-eth2-and-ProbeInstance",
- "value": "$$OAM_NET_IP$$@$$PACKET_INTERNAL_NET_IP$$@PROBE_INSTANCE"
- }
- ],
- "dependencies": [
- {
- "resource_name": "QROUTER_CLUSTER_NAME",
- "resource_type": "cluster",
- "attribute": "rprb_26071_cdr_direct_net_1",
- "role": "qrouter_cluster",
- "format": "all"
- },
- {
- "resource_name": "QTRACE_HOST_NAME",
- "resource_type": "machine",
- "attribute": "rprb_26071_oam_direct_net_1",
- "role": "qtrace_public_ip"
- },
- {
- "resource_name": "MANAGER_INSTANCE_NAME",
- "resource_type": "machine",
- "attribute": "rprb_26071_oam_direct_net_1",
- "role": "manager_oam_direct_ip"
- }
- ]
-}
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/wait_for_resources.py b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/wait_for_resources.py
deleted file mode 100644
index 5d960d659e..0000000000
--- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/securityrulestoportconnection/securityrulestoportconnectiongetresource/inputfiles/wait_for_resources.py
+++ /dev/null
@@ -1,84 +0,0 @@
-import argparse
-import json
-import netifaces
-import os
-import sys
-import time
-
-TIME_INTERVAL = 10
-
-
-def parse_json_file(json_path):
- with open(json_path, 'r') as json_file:
- data = json.load(json_file)
- return data
-
-
-def check_network_interfaces():
- for interface in netifaces.interfaces():
- if(sys.platform != 'win32' or netifaces.ifaddresses(interface)[-1000][0]['addr'] != '00:00:00:00:00:00:00:e0'):
- while 2 not in netifaces.ifaddresses(interface).keys() and 23 not in netifaces.ifaddresses(interface).keys():
- print "Still waiting for interface:", interface
- time.sleep(TIME_INTERVAL)
-
-
-def check_connectivity():
- if sys.platform.startswith('linux'):
- ping_str = "ping -c 1 "
- elif sys.platform == 'cygwin' or sys.platform == 'win32':
- ping_str = "ping -n 1 "
-
- while os.system(ping_str + component_ip) != 0:
- print "No connectivity to", component_ip, "waiting", TIME_INTERVAL, "seconds"
- time.sleep(TIME_INTERVAL)
-
-
-def check_cinder_mounts():
- if sys.platform.startswith('linux'):
- meta_data = parse_json_file('/meta.js')
- elif sys.platform == 'cygwin' or sys.platform == 'win32':
- meta_data = parse_json_file('c:\\meta.js')
-
- cinder_count = 0
-
- for info in meta_data:
- if info.startswith('mount'):
- cinder_count += 1
-
- if sys.platform.startswith('linux'):
- cinder_attached = os.popen('ls /dev/disk/by-id/virtio* | wc -l').read()
- elif sys.platform == 'cygwin' or sys.platform == 'win32':
- cinder_attached = os.popen("wmic diskdrive get DeviceID | find /i \"PHYSICALDRIVE\" | find /V \"0\" /C").read()
-
- while (int(cinder_attached) < cinder_count) and (cinder_count != 0):
- print "Missing a cinder mount, waiting", TIME_INTERVAL, "seconds"
- time.sleep(TIME_INTERVAL)
-
- if sys.platform.startswith('linux'):
- cinder_attached = os.popen('ls /dev/disk/by-id/virtio* | wc -l').read()
-
- elif sys.platform == 'cygwin' or sys.platform == 'win32':
- cinder_attached = os.popen(
- "wmic diskdrive get DeviceID | find /i \"PHYSICALDRIVE\" | find /V \"0\" /C").read()
-
- if int(cinder_attached) == cinder_count:
- print "All cinder are attached and ready to be formatted and mounted"
-
-
-def main():
- check_network_interfaces()
- check_cinder_mounts()
-
- if component_ip is not None:
- check_connectivity()
-
- print "All resources are ready"
-
-
-if __name__ == "__main__":
- parser = argparse.ArgumentParser(description='This script is waiting for network and volume resources to come up')
- parser.add_argument('-m', '--component_ip', metavar='component_ip', type=str, help='The component ip', required=False)
- args = parser.parse_args()
- component_ip = args.component_ip
- globals().update(args.__dict__)
- main()