diff options
author | k.kedron <k.kedron@partner.samsung.com> | 2021-04-26 12:22:08 +0200 |
---|---|---|
committer | k.kedron <k.kedron@partner.samsung.com> | 2021-06-28 13:46:10 +0200 |
commit | 14edec94f9110bd9a73823bd042e4e714018ebb2 (patch) | |
tree | 401cd22130ac6955edc1f1a41218249e3f5a9336 /operations/a1-pe-sim-packages/resources/oran-sim-cba/Templates | |
parent | 5ec59f8ea2751b78797424e0a224b9cd6f1cf1b7 (diff) |
Add a1-pe-sim packages
Add a1-pe-sim cba
Add data-types for cba
Add a1-pe-sim cnf csar
Add helm chart for cnf
mvn pom.xml to build artifacts
Issue-ID: INT-1887
Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com>
Change-Id: Ia72fd7cb240092b7be759456ce4d49136864e85d
Diffstat (limited to 'operations/a1-pe-sim-packages/resources/oran-sim-cba/Templates')
13 files changed, 654 insertions, 0 deletions
diff --git a/operations/a1-pe-sim-packages/resources/oran-sim-cba/Templates/cells-mapping.json b/operations/a1-pe-sim-packages/resources/oran-sim-cba/Templates/cells-mapping.json new file mode 100644 index 0000000..d75c4f3 --- /dev/null +++ b/operations/a1-pe-sim-packages/resources/oran-sim-cba/Templates/cells-mapping.json @@ -0,0 +1,13 @@ +[ + { + "name": "cells-payload", + "input-param": true, + "property": { + "type": "string", + "default": "" + }, + "dictionary-name": "cells-payload", + "dictionary-source": "default", + "dependencies": [] + } +] diff --git a/operations/a1-pe-sim-packages/resources/oran-sim-cba/Templates/cells-template.vtl b/operations/a1-pe-sim-packages/resources/oran-sim-cba/Templates/cells-template.vtl new file mode 100644 index 0000000..9ab26ca --- /dev/null +++ b/operations/a1-pe-sim-packages/resources/oran-sim-cba/Templates/cells-template.vtl @@ -0,0 +1,129 @@ +#if( $cells-payload != "") +$cells-payload +#else +{ + "cellList": [ + { + "Cell": { + "networkId": "RAN001", + "nodeId": "Cell1", + "physicalCellId": 0, + "pnfName": "ncserver1", + "sectorNumber": 0, + "latitude": "50.11", + "longitude": "19.98" + }, + "neighbor": [ + { + "nodeId": "Cell3", + "blacklisted": "false" + }, + { + "nodeId": "Cell4", + "blacklisted": "false" + }, + { + "nodeId": "Cell2", + "blacklisted": "false" + } + ] + }, + { + "Cell": { + "networkId": "RAN001", + "nodeId": "Cell2", + "physicalCellId": 1, + "pnfName": "ncserver1", + "sectorNumber": 0, + "latitude": "50.06", + "longitude": "20.03" + }, + "neighbor": [ + { + "nodeId": "Cell5", + "blacklisted": "false" + }, + { + "nodeId": "Cell1", + "blacklisted": "false" + }, + { + "nodeId": "Cell3", + "blacklisted": "false" + } + ] + }, + { + "Cell": { + "networkId": "RAN001", + "nodeId": "Cell3", + "physicalCellId": 3, + "pnfName": "ncserver1", + "sectorNumber": 0, + "latitude": "50.06", + "longitude": "19.94" + }, + "neighbor": [ + { + "nodeId": "Cell5", + "blacklisted": "false" + }, + { + "nodeId": "Cell1", + "blacklisted": "false" + }, + { + "nodeId": "Cell4", + "blacklisted": "false" + }, + { + "nodeId": "Cell2", + "blacklisted": "false" + } + ] + }, + { + "Cell": { + "networkId": "RAN001", + "nodeId": "Cell4", + "physicalCellId": 4, + "pnfName": "ncserver1", + "sectorNumber": 0, + "latitude": "50.11", + "longitude": "19.88" + }, + "neighbor": [ + { + "nodeId": "Cell3", + "blacklisted": "false" + }, + { + "nodeId": "Cell1", + "blacklisted": "false" + } + ] + }, + { + "Cell": { + "networkId": "RAN001", + "nodeId": "Cell5", + "physicalCellId": 6, + "pnfName": "ncserver1", + "sectorNumber": 0, + "latitude": "50.01", + "longitude": "19.99" + }, + "neighbor": [ + { + "nodeId": "Cell3", + "blacklisted": "false" + }, + { + "nodeId": "Cell2", + "blacklisted": "false" + } + ] + } + ] +} +#end diff --git a/operations/a1-pe-sim-packages/resources/oran-sim-cba/Templates/k8s-profiles/cnf-config-template.tar.gz b/operations/a1-pe-sim-packages/resources/oran-sim-cba/Templates/k8s-profiles/cnf-config-template.tar.gz Binary files differnew file mode 100644 index 0000000..d5bcef4 --- /dev/null +++ b/operations/a1-pe-sim-packages/resources/oran-sim-cba/Templates/k8s-profiles/cnf-config-template.tar.gz diff --git a/operations/a1-pe-sim-packages/resources/oran-sim-cba/Templates/o-ran-simulator-mapping.json b/operations/a1-pe-sim-packages/resources/oran-sim-cba/Templates/o-ran-simulator-mapping.json new file mode 100644 index 0000000..b8b779c --- /dev/null +++ b/operations/a1-pe-sim-packages/resources/oran-sim-cba/Templates/o-ran-simulator-mapping.json @@ -0,0 +1,155 @@ +[ + { + "name": "vnf_name", + "property": { + "description": "", + "required": false, + "type": "string", + "status": "", + "constraints": [ + {} + ], + "entry_schema": { + "type": "" + } + }, + "input-param": false, + "dictionary-name": "vnf_name", + "dictionary-source": "sdnc", + "dependencies": [ + "service-instance-id", + "vnf-id" + ], + "version": 0 + }, + { + "name": "oran_name", + "property": { + "description": "", + "required": false, + "type": "string", + "status": "", + "constraints": [ + {} + ], + "entry_schema": { + "type": "" + }, + "default": "${oran_name}" + }, + "input-param": false, + "dictionary-name": "oran_name", + "dictionary-source": "default", + "dependencies": [], + "version": 0 + }, + { + "name": "vf-naming-policy", + "property": { + "description": "", + "required": false, + "type": "string", + "status": "", + "constraints": [ + {} + ], + "entry_schema": { + "type": "" + }, + "default": "SDNC_Policy.ONAP_NF_NAMING_TIMESTAMP" + }, + "input-param": false, + "dictionary-name": "vf-naming-policy", + "dictionary-source": "default", + "dependencies": [], + "version": 0 + }, + { + "name": "vf-module-id", + "property": { + "description": "", + "required": false, + "type": "string", + "status": "", + "constraints": [ + {} + ], + "entry_schema": { + "type": "" + } + }, + "input-param": false, + "dictionary-name": "vf-module-id", + "dictionary-source": "input", + "dependencies": [], + "version": 0 + }, + { + "name": "vf-module-label", + "property": { + "description": "", + "required": false, + "type": "string" + }, + "input-param": false, + "dictionary-name": "vf-module-label", + "dictionary-source": "processor-db", + "dependencies": [ + "vf-module-model-customization-uuid" + ], + "version": 0 + }, + { + "name": "vf-module-model-customization-uuid", + "property": { + "description": "", + "required": false, + "type": "string" + }, + "input-param": false, + "dictionary-name": "vf-module-model-customization-uuid", + "dictionary-source": "input", + "dependencies": [], + "version": 0 + }, + { + "name": "service-instance-id", + "property": { + "description": "", + "required": false, + "type": "string", + "status": "", + "constraints": [ + {} + ], + "entry_schema": { + "type": "" + } + }, + "input-param": false, + "dictionary-name": "service-instance-id", + "dictionary-source": "input", + "dependencies": [], + "version": 0 + }, + { + "name": "vnf-id", + "property": { + "description": "", + "required": false, + "type": "string", + "status": "", + "constraints": [ + {} + ], + "entry_schema": { + "type": "" + } + }, + "input-param": false, + "dictionary-name": "vnf-id", + "dictionary-source": "input", + "dependencies": [], + "version": 0 + } +] diff --git a/operations/a1-pe-sim-packages/resources/oran-sim-cba/Templates/o-ran-simulator-template.vtl b/operations/a1-pe-sim-packages/resources/oran-sim-cba/Templates/o-ran-simulator-template.vtl new file mode 100644 index 0000000..014d074 --- /dev/null +++ b/operations/a1-pe-sim-packages/resources/oran-sim-cba/Templates/o-ran-simulator-template.vtl @@ -0,0 +1,61 @@ +{ + "resource-accumulator-resolved-data": [ + { + "param-name": "k8s-rb-instance-release-name", + "param-value": "default" + } + ], + "capability-data": [ + { + "capability-name": "generate-name", + "key-mapping": [ + { + "payload": [ + { + "param-name": "VF_MODULE_TYPE", + "param-value": "vfmt" + }, + { + "param-name": "resource-name", + "param-value": "oran_name" + }, + { + "param-name": "resource-value", + "param-value": "${oran_name}" + }, + { + "param-name": "external-key", + "param-value": "${vf-module-id}_oran_name" + }, + { + "param-name": "policy-instance-name", + "param-value": "${vf-naming-policy}" + }, + { + "param-name": "naming-type", + "param-value": "VF-MODULE" + }, + { + "param-name": "VNF_NAME", + "param-value": "${vnf_name}" + }, + { + "param-name": "VF_MODULE_LABEL", + "param-value": "${vf-module-label}" + }, + { + "param-name": "NFC_NAMING_CODE", + "param-value": "ORAN" + } + ], + "output-key-mapping": [ + { + "resource-name": "oran_name", + "resource-value": "${oran_name}" + } + ] + } + ] + } + ] +} diff --git a/operations/a1-pe-sim-packages/resources/oran-sim-cba/Templates/req-input-mapping.json b/operations/a1-pe-sim-packages/resources/oran-sim-cba/Templates/req-input-mapping.json new file mode 100644 index 0000000..77326e8 --- /dev/null +++ b/operations/a1-pe-sim-packages/resources/oran-sim-cba/Templates/req-input-mapping.json @@ -0,0 +1,22 @@ +[ + { + "name": "vnf-id", + "input-param": true, + "property": { + "type": "string" + }, + "dictionary-name": "vnf-id", + "dictionary-source": "input", + "dependencies": [] + }, + { + "name": "service-instance-id", + "input-param": true, + "property": { + "type": "string" + }, + "dictionary-name": "service-instance-id", + "dictionary-source": "input", + "dependencies": [] + } +] diff --git a/operations/a1-pe-sim-packages/resources/oran-sim-cba/Templates/req-input-template.vtl b/operations/a1-pe-sim-packages/resources/oran-sim-cba/Templates/req-input-template.vtl new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/operations/a1-pe-sim-packages/resources/oran-sim-cba/Templates/req-input-template.vtl diff --git a/operations/a1-pe-sim-packages/resources/oran-sim-cba/Templates/ues-mapping.json b/operations/a1-pe-sim-packages/resources/oran-sim-cba/Templates/ues-mapping.json new file mode 100644 index 0000000..23e82dc --- /dev/null +++ b/operations/a1-pe-sim-packages/resources/oran-sim-cba/Templates/ues-mapping.json @@ -0,0 +1,13 @@ +[ + { + "name": "ues-payload", + "input-param": true, + "property": { + "type": "string", + "default": "" + }, + "dictionary-name": "ues-payload", + "dictionary-source": "default", + "dependencies": [] + } +] diff --git a/operations/a1-pe-sim-packages/resources/oran-sim-cba/Templates/ues-template.vtl b/operations/a1-pe-sim-packages/resources/oran-sim-cba/Templates/ues-template.vtl new file mode 100644 index 0000000..954478c --- /dev/null +++ b/operations/a1-pe-sim-packages/resources/oran-sim-cba/Templates/ues-template.vtl @@ -0,0 +1,24 @@ +#if( $ues-payload != "") +${ues-payload} +#else +[ + { + "id": "emergency_samsung_s10_01", + "latitude": "50.09", + "longitude": "19.94", + "cellId": "Cell1" + }, + { + "id": "mobile_samsung_s20_02", + "latitude": "50.05", + "longitude": "19.95", + "cellId": "Cell3" + }, + { + "id": "emergency_police_01", + "latitude": "50.035", + "longitude": "19.97", + "cellId": "Cell3" + } +] +#end diff --git a/operations/a1-pe-sim-packages/resources/oran-sim-cba/Templates/ves-mapping.json b/operations/a1-pe-sim-packages/resources/oran-sim-cba/Templates/ves-mapping.json new file mode 100644 index 0000000..596bae2 --- /dev/null +++ b/operations/a1-pe-sim-packages/resources/oran-sim-cba/Templates/ves-mapping.json @@ -0,0 +1,77 @@ +[ + { + "name": "vnf-id", + "input-param": true, + "property": { + "type": "string" + }, + "dictionary-name": "vnf-id", + "dictionary-source": "input", + "dependencies": [] + }, + { + "name": "vnf-name", + "input-param": true, + "property": { + "type": "string", + "default": "oran-sim-name" + }, + "dictionary-name": "vnf-name", + "dictionary-source": "default", + "dependencies": [] + }, + { + "name": "vnf-type", + "input-param": true, + "property": { + "type": "string", + "default": "oran-sim-type" + }, + "dictionary-name": "vnf-type", + "dictionary-source": "default", + "dependencies": [] + }, + { + "name": "externalNodeIp", + "input-param": true, + "property": { + "type": "string" + }, + "dictionary-name": "externalNodeIp", + "dictionary-source": "input", + "dependencies": [] + }, + { + "name": "ves-port", + "input-param": true, + "property": { + "type": "string", + "default": "30417" + }, + "dictionary-name": "ves-port", + "dictionary-source": "default", + "dependencies": [] + }, + { + "name": "ves-user", + "input-param": true, + "property": { + "type": "string", + "default": "sample1" + }, + "dictionary-name": "ves-user", + "dictionary-source": "default", + "dependencies": [] + }, + { + "name": "ves-password", + "input-param": true, + "property": { + "type": "string", + "default": "sample1" + }, + "dictionary-name": "ves-password", + "dictionary-source": "default", + "dependencies": [] + } +] diff --git a/operations/a1-pe-sim-packages/resources/oran-sim-cba/Templates/ves-template.vtl b/operations/a1-pe-sim-packages/resources/oran-sim-cba/Templates/ves-template.vtl new file mode 100644 index 0000000..af7669e --- /dev/null +++ b/operations/a1-pe-sim-packages/resources/oran-sim-cba/Templates/ves-template.vtl @@ -0,0 +1,7 @@ +vnfType=$vnf-type +vnfId=$vnf-id +vnfName=$vnf-name +vesHost=$externalNodeIp +vesPort=$ves-port +vesPassword=$ves-user +vesUser=$ves-password diff --git a/operations/a1-pe-sim-packages/resources/oran-sim-cba/Templates/vnf-mapping.json b/operations/a1-pe-sim-packages/resources/oran-sim-cba/Templates/vnf-mapping.json new file mode 100644 index 0000000..cba47d9 --- /dev/null +++ b/operations/a1-pe-sim-packages/resources/oran-sim-cba/Templates/vnf-mapping.json @@ -0,0 +1,104 @@ +[ + { + "name": "vf-naming-policy", + "property": { + "description": "", + "required": false, + "type": "string", + "status": "", + "constraints": [ + {} + ], + "entry_schema": { + "type": "" + }, + "default": "SDNC_Policy.ONAP_NF_NAMING_TIMESTAMP" + }, + "input-param": false, + "dictionary-name": "vf-naming-policy", + "dictionary-source": "default", + "dependencies": [], + "version": 0 + }, + { + "name": "aic-cloud-region", + "property": { + "description": "", + "required": false, + "type": "string", + "status": "", + "constraints": [ + {} + ], + "entry_schema": { + "type": "" + } + }, + "input-param": false, + "dictionary-name": "aic-cloud-region", + "dictionary-source": "input", + "dependencies": [], + "version": 0 + }, + { + "name": "vnf-id", + "property": { + "description": "", + "required": false, + "type": "string", + "status": "", + "constraints": [ + {} + ], + "entry_schema": { + "type": "" + } + }, + "input-param": false, + "dictionary-name": "vnf-id", + "dictionary-source": "input", + "dependencies": [], + "version": 0 + }, + { + "name": "vnf-ip-address", + "property": { + "description": "", + "required": false, + "type": "string", + "status": "", + "constraints": [ + {} + ], + "entry_schema": { + "type": "" + }, + "default": "${vnf-ip-address}" + }, + "input-param": false, + "dictionary-name": "vnf-ip-address", + "dictionary-source": "aai-data", + "dependencies": [], + "version": 0 + }, + { + "name": "service-instance-id", + "property": { + "description": "", + "required": false, + "type": "string", + "status": "", + "constraints": [ + {} + ], + "entry_schema": { + "type": "" + } + }, + "input-param": false, + "dictionary-name": "service-instance-id", + "dictionary-source": "input", + "dependencies": [], + "version": 0 + } +] diff --git a/operations/a1-pe-sim-packages/resources/oran-sim-cba/Templates/vnf-template.vtl b/operations/a1-pe-sim-packages/resources/oran-sim-cba/Templates/vnf-template.vtl new file mode 100644 index 0000000..cc7d0d6 --- /dev/null +++ b/operations/a1-pe-sim-packages/resources/oran-sim-cba/Templates/vnf-template.vtl @@ -0,0 +1,49 @@ +{ + "resource-accumulator-resolved-data": [ + { + "param-name": "vnf-ip-address", + "param-value": "${vnf-ip-address}" + } + ], + "capability-data": [ + { + "capability-name": "generate-name", + "key-mapping": [ + { + "output-key-mapping": [ + { + "resource-name": "vnf_name", + "resource-value": "${vnf_name}" + } + ], + "payload": [ + { + "param-name": "resource-name", + "param-value": "vnf_name" + }, + { + "param-name": "resource-value", + "param-value": "${vnf_name}" + }, + { + "param-name": "external-key", + "param-value": "${vnf-id}_vnf_name" + }, + { + "param-name": "policy-instance-name", + "param-value": "${vf-naming-policy}" + }, + { + "param-name": "naming-type", + "param-value": "VNF" + }, + { + "param-name": "AIC_CLOUD_REGION", + "param-value": "${aic-cloud-region}" + } + ] + } + ] + } + ] +} |