aboutsummaryrefslogtreecommitdiffstats
path: root/robot/assets/templates/sdc
diff options
context:
space:
mode:
Diffstat (limited to 'robot/assets/templates/sdc')
-rw-r--r--robot/assets/templates/sdc/action.jinja3
-rw-r--r--robot/assets/templates/sdc/artifact_upload.jinja8
-rw-r--r--robot/assets/templates/sdc/catalog_allotted_inputs.jinja46
-rw-r--r--robot/assets/templates/sdc/catalog_allotted_properties.jinja43
-rw-r--r--robot/assets/templates/sdc/catalog_net_input_properties.jinja39
-rw-r--r--robot/assets/templates/sdc/catalog_resource.jinja43
-rw-r--r--robot/assets/templates/sdc/catalog_resource_alloted_resource.jinja41
-rw-r--r--robot/assets/templates/sdc/catalog_service.jinja42
-rw-r--r--robot/assets/templates/sdc/catalog_vnf_inputs.jinja112
-rw-r--r--robot/assets/templates/sdc/catalog_vnf_properties.jinja29
-rw-r--r--robot/assets/templates/sdc/entitlement_pool.jinja13
-rw-r--r--robot/assets/templates/sdc/feature_group.jinja11
-rw-r--r--robot/assets/templates/sdc/key_group.jinja10
-rw-r--r--robot/assets/templates/sdc/license_agreement.jinja12
-rw-r--r--robot/assets/templates/sdc/license_model.jinja5
-rw-r--r--robot/assets/templates/sdc/resource_instance.jinja10
-rw-r--r--robot/assets/templates/sdc/software_product.jinja17
-rw-r--r--robot/assets/templates/sdc/user_remarks.jinja1
18 files changed, 485 insertions, 0 deletions
diff --git a/robot/assets/templates/sdc/action.jinja b/robot/assets/templates/sdc/action.jinja
new file mode 100644
index 00000000..3ef9f60b
--- /dev/null
+++ b/robot/assets/templates/sdc/action.jinja
@@ -0,0 +1,3 @@
+{
+ "action": "{{action}}"
+} \ No newline at end of file
diff --git a/robot/assets/templates/sdc/artifact_upload.jinja b/robot/assets/templates/sdc/artifact_upload.jinja
new file mode 100644
index 00000000..c4aa57d7
--- /dev/null
+++ b/robot/assets/templates/sdc/artifact_upload.jinja
@@ -0,0 +1,8 @@
+{
+ "artifactLabel":"{{artifactLabel}}",
+ "artifactName": "{{artifactName}}",
+ "artifactType": "{{artifactType}}",
+ "artifactGroupType": "{{artifactGroupType}}",
+ "description": "{{description}}",
+ "payloadData": "{{payloadData}}"
+} \ No newline at end of file
diff --git a/robot/assets/templates/sdc/catalog_allotted_inputs.jinja b/robot/assets/templates/sdc/catalog_allotted_inputs.jinja
new file mode 100644
index 00000000..69629a0a
--- /dev/null
+++ b/robot/assets/templates/sdc/catalog_allotted_inputs.jinja
@@ -0,0 +1,46 @@
+[
+ {
+ "defaultValue": "{{nf_type}}",
+ "description": null,
+ "name": "nf_type",
+ "parentUniqueId": null,
+ "password": false,
+ "required": false,
+ "schema": {
+ "property": {}
+ },
+ "type": "string",
+ "uniqueId": "{{nf_type_uid}}",
+ "value": null,
+ "definition": false,
+ "getInputValues": null,
+ "instanceUniqueId": null,
+ "propertyId": null,
+ "properties": null,
+ "inputs": null,
+ "ownerId": null,
+ "inputPath": null
+ },
+ {
+ "defaultValue": "{{nf_role}}",
+ "description": null,
+ "name": "nf_role",
+ "parentUniqueId": null,
+ "password": false,
+ "required": false,
+ "schema": {
+ "property": {}
+ },
+ "type": "string",
+ "uniqueId": "{{nf_role_uid}}",
+ "value": null,
+ "definition": false,
+ "getInputValues": null,
+ "instanceUniqueId": null,
+ "propertyId": null,
+ "properties": null,
+ "inputs": null,
+ "ownerId": null,
+ "inputPath": null
+ }
+] \ No newline at end of file
diff --git a/robot/assets/templates/sdc/catalog_allotted_properties.jinja b/robot/assets/templates/sdc/catalog_allotted_properties.jinja
new file mode 100644
index 00000000..1654c8f1
--- /dev/null
+++ b/robot/assets/templates/sdc/catalog_allotted_properties.jinja
@@ -0,0 +1,43 @@
+[{
+ "definition": false,
+ "description": "The depending service invariant uuid in order to map the allotted resource to the specific service version",
+ "empty": false,
+ "getInputProperty": false,
+ "hidden": false,
+ "immutable": false,
+ "name": "providing_service_invariant_uuid",
+ "password": false,
+ "required": true,
+ "type": "string",
+ "value": {{providing_service_invariant_uuid}},
+ "uniqueId": "{{uniqueId}}.providing_service_invariant_uuid"
+ },
+ {
+ "definition": false,
+ "description": "The depending service uuid in order to map the allotted resource to the specific service version",
+ "empty": false,
+ "getInputProperty": false,
+ "hidden": false,
+ "immutable": false,
+ "name": "providing_service_uuid",
+ "password": false,
+ "required": true,
+ "type": "string",
+ "value": {{providing_service_uuid}},
+ "uniqueId": "{{uniqueId}}.providing_service_uuid"
+ },
+ {
+ "definition": false,
+ "description": "The depending service name in order to map the allotted resource to the specific service version",
+ "empty": false,
+ "getInputProperty": false,
+ "hidden": false,
+ "immutable": false,
+ "name": "providing_service_name",
+ "password": false,
+ "required": true,
+ "type": "string",
+ "value": {{providing_service_name}},
+ "uniqueId": "{{uniqueId}}.providing_service_name"
+ }
+] \ No newline at end of file
diff --git a/robot/assets/templates/sdc/catalog_net_input_properties.jinja b/robot/assets/templates/sdc/catalog_net_input_properties.jinja
new file mode 100644
index 00000000..be471591
--- /dev/null
+++ b/robot/assets/templates/sdc/catalog_net_input_properties.jinja
@@ -0,0 +1,39 @@
+[
+{
+ "uniqueId": "{{uniqueId}}",
+ "type": "string",
+ "required": false,
+ "definition": false,
+ "description": "{{description}}",
+ "schema": {
+ "property": {
+ "required": false,
+ "definition": true,
+ "password": false,
+ "hidden": false,
+ "immutable": false,
+ "getInputProperty": false,
+ "empty": false
+ },
+ "empty": false
+ },
+ "password": false,
+ "name": "{{name}}",
+ "value": "{{value}}",
+ "hidden": false,
+ "immutable": false,
+ "parentUniqueId": "{{parentUniqueId}}",
+ "schemaProperty": {
+ "required": false,
+ "definition": true,
+ "password": false,
+ "hidden": false,
+ "immutable": false,
+ "getInputProperty": false,
+ "empty": false
+ },
+ "getInputProperty": false,
+ "ownerId": "{{ownerId}}",
+ "empty": false
+ }
+] \ No newline at end of file
diff --git a/robot/assets/templates/sdc/catalog_resource.jinja b/robot/assets/templates/sdc/catalog_resource.jinja
new file mode 100644
index 00000000..6839beda
--- /dev/null
+++ b/robot/assets/templates/sdc/catalog_resource.jinja
@@ -0,0 +1,43 @@
+{
+ "artifacts": {},
+ "toscaArtifacts": {},
+ "contactId": "cs0008",
+ "categories": [
+ {
+ "name": "Generic",
+ "normalizedName": "generic",
+ "uniqueId": "resourceNewCategory.generic",
+ "subcategories": [
+ {
+ "name": "Abstract",
+ "normalizedName": "abstract",
+ "uniqueId": "resourceNewCategory.generic.abstract",
+ "icons": [
+ "database"
+ ]
+ }
+ ]
+ }
+ ],
+ "description": "vendor software product",
+ "icon": "defaulticon",
+ "componentInstancesProperties": {},
+ "componentInstancesAttributes": {},
+ "name": "{{software_product_name}}",
+ "tags": [
+ "{{software_product_name}}"
+ ],
+ "capabilities": {},
+ "requirements": {},
+ "deploymentArtifacts": {},
+ "componentType": "RESOURCE",
+ "vendorName": "{{vendor_name}}",
+ "vendorRelease": "1.0",
+ "componentInstances": [],
+ "properties": [],
+ "attributes": [],
+ "groups": [],
+ "resourceType": "VF",
+ "csarUUID": "{{software_product_id}}",
+ "csarVersion": "1.0"
+} \ No newline at end of file
diff --git a/robot/assets/templates/sdc/catalog_resource_alloted_resource.jinja b/robot/assets/templates/sdc/catalog_resource_alloted_resource.jinja
new file mode 100644
index 00000000..6992e320
--- /dev/null
+++ b/robot/assets/templates/sdc/catalog_resource_alloted_resource.jinja
@@ -0,0 +1,41 @@
+{
+ "artifacts": {},
+ "toscaArtifacts": {},
+ "contactId": "cs0008",
+ "categories": [
+ {
+ "name": "Allotted Resource",
+ "normalizedName": "allotted resource",
+ "uniqueId": "resourceNewCategory.allotted resource",
+ "subcategories": [
+ {
+ "name": "{{subcategory}}",
+ "normalizedName": "{{subcategory}}",
+ "uniqueId": "resourceNewCategory.allotted resource.{{subcategory}}",
+ "icons": [
+ "allotted_resource"
+ ]
+ }
+ ]
+ }
+ ],
+ "description": "Alloted Resource {{subcategory}}",
+ "icon": "defaulticon",
+ "componentInstancesProperties": {},
+ "componentInstancesAttributes": {},
+ "name": "{{software_product_name}}",
+ "tags": [
+ "{{software_product_name}}"
+ ],
+ "capabilities": {},
+ "requirements": {},
+ "deploymentArtifacts": {},
+ "componentType": "RESOURCE",
+ "vendorName": "{{vendor_name}}",
+ "vendorRelease": "1.0",
+ "componentInstances": [],
+ "properties": [],
+ "attributes": [],
+ "groups": [],
+ "resourceType": "VF"
+} \ No newline at end of file
diff --git a/robot/assets/templates/sdc/catalog_service.jinja b/robot/assets/templates/sdc/catalog_service.jinja
new file mode 100644
index 00000000..09c56301
--- /dev/null
+++ b/robot/assets/templates/sdc/catalog_service.jinja
@@ -0,0 +1,42 @@
+{
+ "artifacts": {},
+ "toscaArtifacts": {},
+ "contactId": "cs0008",
+ "categories": [
+ {
+ "name": "Network L1-3",
+ "normalizedName": "network l1-3",
+ "uniqueId": "serviceNewCategory.network l1-3",
+ "icons": [
+ "network_l_1-3"
+ ],
+ "subcategories": null,
+ "version": null,
+ "ownerId": null,
+ "empty": false,
+ "type": null
+ }
+ ],
+ "description": "catalog service description",
+ "icon": "network_l_1-3",
+ "componentInstancesProperties": {},
+ "componentInstancesAttributes": {},
+ "name": "{{service_name}}",
+ "tags": [
+ "robot-ete",
+ "{{service_name}}"
+ ],
+ "capabilities": {},
+ "requirements": {},
+ "deploymentArtifacts": {},
+ "componentType": "SERVICE",
+ "projectCode": "123456",
+ "componentInstances": [],
+ "properties": [],
+ "attributes": [],
+ "forwardingPaths": {},
+ "ecompGeneratedNaming": true,
+ "serviceApiArtifacts": {},
+ "instantiationType": "A-la-carte",
+ "environmentContext": "General_Revenue-Bearing"
+} \ No newline at end of file
diff --git a/robot/assets/templates/sdc/catalog_vnf_inputs.jinja b/robot/assets/templates/sdc/catalog_vnf_inputs.jinja
new file mode 100644
index 00000000..48a58499
--- /dev/null
+++ b/robot/assets/templates/sdc/catalog_vnf_inputs.jinja
@@ -0,0 +1,112 @@
+[
+ {
+ "defaultValue": "{{nf_function}}",
+ "description": null,
+ "name": "nf_function",
+ "parentUniqueId": "cs0008",
+ "password": false,
+ "required": false,
+ "schema": {
+ "property": {}
+ },
+ "type": "string",
+ "uniqueId": "{{nf_function_uid}}",
+ "value": null,
+ "definition": false,
+ "getInputValues": null,
+ "instanceUniqueId": null,
+ "propertyId": null,
+ "properties": null,
+ "inputs": null,
+ "ownerId": "cs0008",
+ "inputPath": null
+ },
+ {
+ "defaultValue": "{{nf_type}}",
+ "description": null,
+ "name": "nf_type",
+ "parentUniqueId": null,
+ "password": false,
+ "required": false,
+ "schema": {
+ "property": {}
+ },
+ "type": "string",
+ "uniqueId": "{{nf_type_uid}}",
+ "value": null,
+ "definition": false,
+ "getInputValues": null,
+ "instanceUniqueId": null,
+ "propertyId": null,
+ "properties": null,
+ "inputs": null,
+ "ownerId": null,
+ "inputPath": null
+ },
+ {
+ "defaultValue": "{{nf_naming_code}}",
+ "description": null,
+ "name": "nf_naming_code",
+ "parentUniqueId": null,
+ "password": false,
+ "required": false,
+ "schema": {
+ "property": {}
+ },
+ "type": "string",
+ "uniqueId": "{{nf_naming_code_uid}}",
+ "value": null,
+ "definition": false,
+ "getInputValues": null,
+ "instanceUniqueId": null,
+ "propertyId": null,
+ "properties": null,
+ "inputs": null,
+ "ownerId": null,
+ "inputPath": null
+ },
+ {
+ "defaultValue": "{{nf_role}}",
+ "description": null,
+ "name": "nf_role",
+ "parentUniqueId": null,
+ "password": false,
+ "required": false,
+ "schema": {
+ "property": {}
+ },
+ "type": "string",
+ "uniqueId": "{{nf_role_uid}}",
+ "value": null,
+ "definition": false,
+ "getInputValues": null,
+ "instanceUniqueId": null,
+ "propertyId": null,
+ "properties": null,
+ "inputs": null,
+ "ownerId": null,
+ "inputPath": null
+ },
+ {
+ "defaultValue": "{{cloud_env}}",
+ "description": "Cloud environment (e.g., openstack, rackspace)",
+ "name": "cloud_env",
+ "parentUniqueId": null,
+ "password": false,
+ "required": false,
+ "schema": {
+ "property": {}
+ },
+ "type": "string",
+ "uniqueId": "{{cloud_env_uid}}",
+ "value": null,
+ "definition": false,
+ "getInputValues": null,
+ "instanceUniqueId": null,
+ "propertyId": null,
+ "properties": null,
+ "inputs": null,
+ "ownerId": null,
+ "inputPath": null
+ }
+] \ No newline at end of file
diff --git a/robot/assets/templates/sdc/catalog_vnf_properties.jinja b/robot/assets/templates/sdc/catalog_vnf_properties.jinja
new file mode 100644
index 00000000..96a06506
--- /dev/null
+++ b/robot/assets/templates/sdc/catalog_vnf_properties.jinja
@@ -0,0 +1,29 @@
+[
+ {
+ "name": "nfc_function",
+ "parentUniqueId": "{{parent_id}}",
+ "password": false,
+ "required": false,
+ "schema": {
+ "property": {}
+ },
+ "type": "string",
+ "uniqueId": "{{parent_id}}.nfc_function",
+ "value": "{{nfc_function}}",
+ "definition": false
+ },
+ {
+ "description": "vfc naming",
+ "name": "nfc_naming",
+ "parentUniqueId": "{{parent_id}}",
+ "password": false,
+ "required": false,
+ "schema": {
+ "property": {}
+ },
+ "type": "org.openecomp.datatypes.Naming",
+ "uniqueId": "{{parent_id}}.nfc_naming",
+ "value": "{\"ecomp_generated_naming\":true,\"naming_policy\":\"{{nfc_naming_policy}}\"}",
+ "definition": false
+ }
+] \ No newline at end of file
diff --git a/robot/assets/templates/sdc/entitlement_pool.jinja b/robot/assets/templates/sdc/entitlement_pool.jinja
new file mode 100644
index 00000000..4ca68ddd
--- /dev/null
+++ b/robot/assets/templates/sdc/entitlement_pool.jinja
@@ -0,0 +1,13 @@
+{
+ "name": "{{entitlement_pool_name}}",
+ "description": "vendor entitlement pool",
+ "thresholdValue": "100",
+ "thresholdUnits": "Percentage",
+ "time": {
+ "choice": "",
+ "other": ""
+ },
+ "startDate": "{{license_start_date}}",
+ "expiryDate": "{{license_end_date}}",
+ "manufacturerReferenceNumber": "111111"
+} \ No newline at end of file
diff --git a/robot/assets/templates/sdc/feature_group.jinja b/robot/assets/templates/sdc/feature_group.jinja
new file mode 100644
index 00000000..cc3fec13
--- /dev/null
+++ b/robot/assets/templates/sdc/feature_group.jinja
@@ -0,0 +1,11 @@
+{
+ "name": "{{feature_group_name}}",
+ "description": "vendor feature group",
+ "partNumber": "123abc456",
+ "addedLicenseKeyGroupsIds": [
+ "{{key_group_id}}"
+ ],
+ "addedEntitlementPoolsIds": [
+ "{{entitlement_pool_id}}"
+ ]
+} \ No newline at end of file
diff --git a/robot/assets/templates/sdc/key_group.jinja b/robot/assets/templates/sdc/key_group.jinja
new file mode 100644
index 00000000..e58639b7
--- /dev/null
+++ b/robot/assets/templates/sdc/key_group.jinja
@@ -0,0 +1,10 @@
+{
+ "name": "{{key_group_name}}",
+ "description": "vendor license key group",
+ "type": "Universal",
+ "thresholdValue": "100",
+ "thresholdUnits": "Percentage",
+ "startDate": "{{license_start_date}}",
+ "expiryDate": "{{license_end_date}}",
+ "manufacturerReferenceNumber": "11111"
+} \ No newline at end of file
diff --git a/robot/assets/templates/sdc/license_agreement.jinja b/robot/assets/templates/sdc/license_agreement.jinja
new file mode 100644
index 00000000..66776f47
--- /dev/null
+++ b/robot/assets/templates/sdc/license_agreement.jinja
@@ -0,0 +1,12 @@
+{
+ "name": "{{license_agreement_name}}",
+ "description": "vendor license agreement",
+ "requirementsAndConstrains": "abcdef",
+ "licenseTerm": {
+ "choice": "Fixed_Term",
+ "other": ""
+ },
+ "addedFeatureGroupsIds": [
+ "{{feature_group_id}}"
+ ]
+} \ No newline at end of file
diff --git a/robot/assets/templates/sdc/license_model.jinja b/robot/assets/templates/sdc/license_model.jinja
new file mode 100644
index 00000000..27fe266e
--- /dev/null
+++ b/robot/assets/templates/sdc/license_model.jinja
@@ -0,0 +1,5 @@
+{
+ "vendorName": "{{vendor_name}}",
+ "description": "vendor license model",
+ "iconRef": "icon"
+} \ No newline at end of file
diff --git a/robot/assets/templates/sdc/resource_instance.jinja b/robot/assets/templates/sdc/resource_instance.jinja
new file mode 100644
index 00000000..c2c279c7
--- /dev/null
+++ b/robot/assets/templates/sdc/resource_instance.jinja
@@ -0,0 +1,10 @@
+{
+ "uniqueId": "{{catalog_resource_id}}{{milli_timestamp}}",
+ "posX": {{posX}},
+ "posY": {{posY}},
+ "name": "{{catalog_resource_name}}",
+ "componentVersion": "1.0",
+ "originType": "{{originType}}",
+ "icon": "defaulticon",
+ "componentUid": "{{catalog_resource_id}}"
+} \ No newline at end of file
diff --git a/robot/assets/templates/sdc/software_product.jinja b/robot/assets/templates/sdc/software_product.jinja
new file mode 100644
index 00000000..23d5f7ca
--- /dev/null
+++ b/robot/assets/templates/sdc/software_product.jinja
@@ -0,0 +1,17 @@
+{
+ "name": "{{software_product_name}}",
+ "description": "vendor software product",
+ "category": "resourceNewCategory.generic",
+ "subCategory": "resourceNewCategory.generic.abstract",
+ "onboardingMethod" : "NetworkPackage",
+ "licensingVersion": "{{version_id}}",
+ "vendorName": "{{vendor_name}}",
+ "vendorId": "{{vendor_id}}",
+ "icon": "icon",
+ "licensingData": {
+ "licenseAgreement": "{{license_agreement_id}}",
+ "featureGroups": [
+ "{{feature_group_id}}"
+ ]
+ }
+} \ No newline at end of file
diff --git a/robot/assets/templates/sdc/user_remarks.jinja b/robot/assets/templates/sdc/user_remarks.jinja
new file mode 100644
index 00000000..ea01a249
--- /dev/null
+++ b/robot/assets/templates/sdc/user_remarks.jinja
@@ -0,0 +1 @@
+{"userRemarks":"{{user_remarks}}"} \ No newline at end of file