From: karthiks1977 Date: Wed, 17 Dec 2025 11:43:16 +0000 (+0530) Subject: CSAR package for PRB prediction rapp X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=b5dc480fdc2c7b917f07070199f472f686b7bcce;p=nonrtric%2Fplt%2Frappmanager.git CSAR package for PRB prediction rapp Change-Id: Icdd9baeed4e148ed2c5719e08d0a32ea7850be44 Signed-off-by: karthiks1977 --- diff --git a/sample-rapp-generator/rapp-slice-prb-prediction/slice-prb-prediction-rapp/Definitions/asd.yaml b/sample-rapp-generator/rapp-slice-prb-prediction/slice-prb-prediction-rapp/Definitions/asd.yaml new file mode 100644 index 0000000..000b6d2 --- /dev/null +++ b/sample-rapp-generator/rapp-slice-prb-prediction/slice-prb-prediction-rapp/Definitions/asd.yaml @@ -0,0 +1,30 @@ +tosca_definitions_version: tosca_simple_yaml_1_2 + +description: rApp RAN Slice PRB Prediction + +imports: + - asd_types.yaml + +topology_template: + node_templates: + applicationServiceDescriptor: + type: tosca.nodes.asd + description: "rapp-slice-prb-prediction" + properties: + descriptor_id: 2cd6a567-2e33-4960-8ef7-1cc519c998c5 + descriptor_invariant_id: 3f8a5e1b-68f1-42e5-89d0-47090dd0ef5b + descriptor_version: 1.0 + schema_version: 2.0 + function_description: rapp-slice-prb-prediction + provider: O-RAN SC NONRTRIC team + application_name: rapp-slice-prb-prediction + application_version: 1.0 + artifacts: + slice-prb-prediction: + type: tosca.artifacts.asd.deploymentItem + file: "Artifacts/Deployment/HELM/slice-prb-prediction-rapp-0.1.0.tgz" + properties: + artifact_type: "helm_chart" + target_server: "chartmuseum" + target_server_uri: "UPDATE_THIS_CHART_MUSEUM_POST_CHARTS_URI" + item_id: 1 diff --git a/sample-rapp-generator/rapp-slice-prb-prediction/slice-prb-prediction-rapp/Definitions/asd_types.yaml b/sample-rapp-generator/rapp-slice-prb-prediction/slice-prb-prediction-rapp/Definitions/asd_types.yaml new file mode 100644 index 0000000..572164f --- /dev/null +++ b/sample-rapp-generator/rapp-slice-prb-prediction/slice-prb-prediction-rapp/Definitions/asd_types.yaml @@ -0,0 +1,72 @@ +tosca_definitions_version: tosca_simple_yaml_1_2 +description: ASD types definitions version 0.1 +node_types: + tosca.nodes.asd: + derived_from: tosca.nodes.Root + description: "The ASD node type" + version: 0.1 + properties: + descriptor_id: + type: string # UUID + required: true + description: Identifier of this ASD. It is in UUID format as specified in RFC 4122 + descriptor_invariant_id: + type: string # UUID + required: true + description: > + Identifier of this descriptor in a version independent manner. This attribute + is invariant across versions of ASD. It is in UUID format as specified in RFC 4122 + descriptor_version: + type: string + required: true + description: Identifies the version of the ASD. + schema_version: + type: string + required: true + description: Identifies the Identifies the version of this ASD’s schema. + function_description: + type: string + required: false + description: Description of the application service described by this ASD. + provider: + type: string + required: true + description: Identifies the provider of the ASD. + application_name: + type: string + required: true + description: Name to identify the application service described by this ASD + application_version: + type: string + required: true + description: Identifies the version of the application service described by this ASD. + +artifact_types: +tosca.artifacts.asd.deploymentItem: + version: 0.1 + derived_from: tosca.artifacts.Root + description: "Describes the artifact type of asd deployment item" + file: "Relative path of the artifact in the package" + properties: + item_id: + description: "The identifier of this asd deployment item" + required: true + type: string + artifact_type: + description: > + Specify artifact type. + required: true + type: string + constraints: + - valid_values: ["helm_chart"] + target_server: + description: > + Specify target server for artifact. + required: true + type: string + constraints: + - valid_values: [ "chartmuseum" ] + target_server_uri: + description: "URI of the target server" + required: true + type: string \ No newline at end of file diff --git a/sample-rapp-generator/rapp-slice-prb-prediction/slice-prb-prediction-rapp/Files/Acm/definition/compositions.json b/sample-rapp-generator/rapp-slice-prb-prediction/slice-prb-prediction-rapp/Files/Acm/definition/compositions.json new file mode 100644 index 0000000..f7b0401 --- /dev/null +++ b/sample-rapp-generator/rapp-slice-prb-prediction/slice-prb-prediction-rapp/Files/Acm/definition/compositions.json @@ -0,0 +1,189 @@ +{ + "tosca_definitions_version": "tosca_simple_yaml_1_3", + "data_types": { + "onap.datatypes.ToscaConceptIdentifier": { + "derived_from": "tosca.datatypes.Root", + "properties": { + "name": { + "type": "string", + "required": true + }, + "version": { + "type": "string", + "required": true + } + } + } + }, + "node_types": { + "org.onap.policy.clamp.acm.Participant": { + "version": "1.0.1", + "derived_from": "tosca.nodetypes.Root", + "properties": { + "provider": { + "type": "string", + "required": false + } + } + }, + "org.onap.policy.clamp.acm.AutomationCompositionElement": { + "version": "1.0.1", + "derived_from": "tosca.nodetypes.Root", + "properties": { + "provider": { + "type": "string", + "required": false + }, + "participantType": { + "type": "onap.datatypes.ToscaConceptIdentifier", + "required": true + }, + "startPhase": { + "type": "integer", + "required": false, + "constraints": [ + { + "greater-or-equal": 0 + } + ], + "metadata": { + "common": true + }, + "description": "A value indicating the start phase in which this automation composition element will be started, the first start phase is zero. Automation Composition Elements are started in their start_phase order and stopped in reverse start phase order. Automation Composition Elements with the same start phase are started and stopped simultaneously" + }, + "passiveToRunningTimeout": { + "type": "integer", + "required": false, + "constraints": [ + { + "greater_or_equal": 0 + } + ], + "default": 60, + "metadata": { + "common": true + }, + "description": "The maximum time in seconds to wait for a state chage from passive to running" + }, + "runningToPassiveTimeout": { + "type": "integer", + "required": false, + "constraints": [ + { + "greater_or_equal": 0 + } + ], + "default": 60, + "metadata": { + "common": true + }, + "description": "The maximum time in seconds to wait for a state chage from running to passive" + }, + "passiveToUninitializedTimeout": { + "type": "integer", + "required": false, + "constraints": [ + { + "greater_or_equal": 0 + } + ], + "default": 60, + "metadata": { + "common": true + }, + "description": "The maximum time in seconds to wait for a state chage from passive to uninitialized" + } + } + }, + "org.onap.policy.clamp.acm.AutomationComposition": { + "version": "1.0.1", + "derived_from": "tosca.nodetypes.Root", + "properties": { + "provider": { + "type": "string", + "required": false, + "metadata": { + "common": true + } + }, + "elements": { + "type": "list", + "required": true, + "metadata": { + "common": true + }, + "entry_schema": { + "type": "onap.datatypes.ToscaConceptIdentifier" + } + } + } + }, + "org.onap.policy.clamp.acm.K8SMicroserviceAutomationCompositionElement": { + "version": "1.0.0", + "derived_from": "org.onap.policy.clamp.acm.AutomationCompositionElement", + "properties": { + "chart": { + "type": "string", + "required": true + }, + "configs": { + "type": "list", + "required": false + }, + "requirements": { + "type": "string", + "required": false + }, + "templates": { + "type": "list", + "required": false, + "entry_schema": null + }, + "values": { + "type": "string", + "required": true + } + } + } + }, + "topology_template": { + "node_templates": { + "org.onap.k8s.acm.K8SAutomationCompositionParticipant": { + "version": "2.3.4", + "type": "org.onap.policy.clamp.acm.Participant", + "type_version": "1.0.1", + "description": "Participant for K8S", + "properties": { + "provider": "ONAP" + } + }, + "onap.policy.clamp.ac.element.K8S_StarterAutomationCompositionElement": { + "version": "1.2.3", + "type": "org.onap.policy.clamp.acm.K8SMicroserviceAutomationCompositionElement", + "type_version": "1.0.0", + "description": "Automation composition element for the K8S microservice for AC Element Starter", + "properties": { + "provider": "ONAP", + "startPhase": 0, + "uninitializedToPassiveTimeout": 300, + "podStatusCheckInterval": 30 + } + }, + "onap.policy.clamp.ac.element.AutomationCompositionDefinition": { + "version": "1.2.3", + "type": "org.onap.policy.clamp.acm.AutomationComposition", + "type_version": "1.0.1", + "description": "Automation composition for rapp deployment", + "properties": { + "provider": "ONAP", + "elements": [ + { + "name": "onap.policy.clamp.ac.element.K8S_StarterAutomationCompositionElement", + "version": "1.2.3" + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/sample-rapp-generator/rapp-slice-prb-prediction/slice-prb-prediction-rapp/Files/Acm/instances/k8s-instance.json b/sample-rapp-generator/rapp-slice-prb-prediction/slice-prb-prediction-rapp/Files/Acm/instances/k8s-instance.json new file mode 100644 index 0000000..80f7481 --- /dev/null +++ b/sample-rapp-generator/rapp-slice-prb-prediction/slice-prb-prediction-rapp/Files/Acm/instances/k8s-instance.json @@ -0,0 +1,35 @@ +{ + "name": "SlicePRBInstance0", + "version": "1.0.1", + "compositionId": "DO_NOT_CHANGE_THIS_COMPOSITION_ID", + "description": "RAN Slice PRB Prediction automation composition instance 0", + "elements": { + "d7be552e-bcc5-4478-b64d-797dbaec8f56": { + "id": "d7be552e-bcc5-4478-b64d-797dbaec8f56", + "definition": { + "name": "onap.policy.clamp.ac.element.K8S_StarterAutomationCompositionElement", + "version": "1.2.3" + }, + "description": "Starter Automation Composition Element for the RAN Slice PRB Prediction", + "properties": { + "chart": { + "chartId": { + "name": "slice-prb-prediction-rapp", + "version": "0.1.0" + }, + "namespace": "smo", + "releaseName": "slice-prb-prediction-rapp", + "podName": "slice-prb-prediction-rapp", + "repository": { + "repoName": "local", + "address": "UPDATE_THIS_CHART_MUSEUM_GET_CHARTS_URI" + }, + "overrideParams": { + "environment.appId": "DO_NOT_CHANGE_THIS_RAPP_INSTANCE_ID", + "environment.smeDiscoveryEndpoint": "DO_NOT_CHANGE_THIS_SME_DISCOVERY_ENDPOINT" + } + } + } + } + } +} \ No newline at end of file diff --git a/sample-rapp-generator/rapp-slice-prb-prediction/slice-prb-prediction-rapp/Files/Sme/invokers/invoker-influxdb.json b/sample-rapp-generator/rapp-slice-prb-prediction/slice-prb-prediction-rapp/Files/Sme/invokers/invoker-influxdb.json new file mode 100644 index 0000000..6bf4e5f --- /dev/null +++ b/sample-rapp-generator/rapp-slice-prb-prediction/slice-prb-prediction-rapp/Files/Sme/invokers/invoker-influxdb.json @@ -0,0 +1,14 @@ +[ + { + "apiInvokerInformation": "DO_NOT_CHANGE_THIS_RAPP_INSTANCE_ID", + "apiList": [ + { "apiName": "influxdb2-http" } + ], + "notificationDestination": "http://NOT_USED_HERE", + "onboardingInformation": { + "apiInvokerPublicKey": "{PUBLIC_KEY_INVOKER_INFLUXDB}", + "apiInvokerCertificate": "apiInvokerCertificate" + }, + "requestTestNotification": true + } +] \ No newline at end of file diff --git a/sample-rapp-generator/rapp-slice-prb-prediction/slice-prb-prediction-rapp/Files/Sme/invokers/invoker-ran-nssmf.json b/sample-rapp-generator/rapp-slice-prb-prediction/slice-prb-prediction-rapp/Files/Sme/invokers/invoker-ran-nssmf.json new file mode 100644 index 0000000..2939b8d --- /dev/null +++ b/sample-rapp-generator/rapp-slice-prb-prediction/slice-prb-prediction-rapp/Files/Sme/invokers/invoker-ran-nssmf.json @@ -0,0 +1,14 @@ +[ + { + "apiInvokerInformation": "DO_NOT_CHANGE_THIS_RAPP_INSTANCE_ID", + "apiList": [ + { "apiName": "RAN NSSMF Simulator API Set 1" } + ], + "notificationDestination": "http://NOT_USED_HERE", + "onboardingInformation": { + "apiInvokerPublicKey": "{PUBLIC_KEY_INVOKER_RAN_NSSMF}", + "apiInvokerCertificate": "apiInvokerCertificate" + }, + "requestTestNotification": true + } +] \ No newline at end of file diff --git a/sample-rapp-generator/rapp-slice-prb-prediction/slice-prb-prediction-rapp/Files/Sme/providers/provider-function-1.json b/sample-rapp-generator/rapp-slice-prb-prediction/slice-prb-prediction-rapp/Files/Sme/providers/provider-function-1.json new file mode 100644 index 0000000..4f98ce3 --- /dev/null +++ b/sample-rapp-generator/rapp-slice-prb-prediction/slice-prb-prediction-rapp/Files/Sme/providers/provider-function-1.json @@ -0,0 +1,20 @@ +{ + "apiProvDomInfo": "Provider domain", + "apiProvFuncs": [ + { + "apiProvFuncInfo": "RAN Slice PRB Prediction as APF", + "apiProvFuncRole": "APF", + "regInfo": { + "apiProvPubKey": "NOT USED here" + } + }, + { + "apiProvFuncInfo": "RAN Slice PRB Prediction as AEF", + "apiProvFuncRole": "AEF", + "regInfo": { + "apiProvPubKey": "NOT USED here" + } + } + ], + "regSec": "plain" +} \ No newline at end of file diff --git a/sample-rapp-generator/rapp-slice-prb-prediction/slice-prb-prediction-rapp/Files/Sme/serviceapis/api-set-1.json b/sample-rapp-generator/rapp-slice-prb-prediction/slice-prb-prediction-rapp/Files/Sme/serviceapis/api-set-1.json new file mode 100644 index 0000000..4f37013 --- /dev/null +++ b/sample-rapp-generator/rapp-slice-prb-prediction/slice-prb-prediction-rapp/Files/Sme/serviceapis/api-set-1.json @@ -0,0 +1,32 @@ +{ + "apiName": "RAN Slice PRB Prediction API Set 1", + "description": "RAN Slice PRB Prediction API", + "aefProfiles": [ + { + "aefId": "RAN Slice PRB Prediction as AEF", + "description": "RAN Slice PRB Prediction API", + "versions": [ + { + "apiVersion": "", + "resources": [ + { + "resourceName": "sliceprbprediction", + "commType": "REQUEST_RESPONSE", + "uri": "/sliceprbprediction/v1", + "operations": [ + "GET" + ] + } + ] + } + ], + "protocol": "HTTP_1_1", + "interfaceDescriptions": [ + { + "ipv4Addr": "slice-prb-prediction-rapp.smo.svc.cluster.local", + "port": 8080 + } + ] + } + ] +} \ No newline at end of file diff --git a/sample-rapp-generator/rapp-slice-prb-prediction/slice-prb-prediction-rapp/Files/Sme/serviceapis/api-set-2.json b/sample-rapp-generator/rapp-slice-prb-prediction/slice-prb-prediction-rapp/Files/Sme/serviceapis/api-set-2.json new file mode 100644 index 0000000..bea05ee --- /dev/null +++ b/sample-rapp-generator/rapp-slice-prb-prediction/slice-prb-prediction-rapp/Files/Sme/serviceapis/api-set-2.json @@ -0,0 +1,32 @@ +{ + "apiName": "RAN Slice PRB Prediction API Set 1", + "description": "RAN Slice PRB Prediction API", + "aefProfiles": [ + { + "aefId": "RAN Slice PRB Prediction as AEF", + "description": "RAN Slice PRB Prediction API", + "versions": [ + { + "apiVersion": "", + "resources": [ + { + "resourceName": "sliceprbprediction", + "commType": "REQUEST_RESPONSE", + "uri": "/sliceprbprediction/v1/subpath1", + "operations": [ + "GET" + ] + } + ] + } + ], + "protocol": "HTTP_1_1", + "interfaceDescriptions": [ + { + "ipv4Addr": "slice-prb-prediction-rapp.smo.svc.cluster.local", + "port": 8080 + } + ] + } + ] +} \ No newline at end of file diff --git a/sample-rapp-generator/rapp-slice-prb-prediction/slice-prb-prediction-rapp/TOSCA-Metadata/TOSCA.meta b/sample-rapp-generator/rapp-slice-prb-prediction/slice-prb-prediction-rapp/TOSCA-Metadata/TOSCA.meta new file mode 100644 index 0000000..cb4e482 --- /dev/null +++ b/sample-rapp-generator/rapp-slice-prb-prediction/slice-prb-prediction-rapp/TOSCA-Metadata/TOSCA.meta @@ -0,0 +1,5 @@ +TOSCA-Meta-File-Version: 1.0 +CSAR-Version: 1.0 +Created-By: O-RAN SC NONRTRIC team +Entry-Definitions: Definitions/asd.yaml +ETSI-Entry-Manifest: asd.mf \ No newline at end of file diff --git a/sample-rapp-generator/rapp-slice-prb-prediction/slice-prb-prediction-rapp/asd.mf b/sample-rapp-generator/rapp-slice-prb-prediction/slice-prb-prediction-rapp/asd.mf new file mode 100644 index 0000000..2dddb99 --- /dev/null +++ b/sample-rapp-generator/rapp-slice-prb-prediction/slice-prb-prediction-rapp/asd.mf @@ -0,0 +1,17 @@ +metadata: + application_name: slice-prb-prediction-rapp + application_provider: O-RAN SC NONRTRIC team + release_date_time: 2025-09-15T11:30:00+00:00 + entry_definition_type: asd + +Source: asd.mf +Source: Artifacts/Deployment/HELM/slice-prb-prediction-rapp-0.1.0.tgz +Source: Definitions/asd.yaml +Source: Definitions/asd_types.yaml +Source: TOSCA-Metadata/TOSCA.meta +Source: Files/Acm/definition/compositions.json +Source: Files/Acm/instances/k8s-instance.json +Source: Files/Sme/invokers/invoker-influxdb.json +Source: Files/Sme/provider/provider-function-1.json +Source: Files/Sme/serviceapis/api-set-1.json +Source: Files/Sme/serviceapis/api-set-2.json