From 93c2e98ea8b851b0758c81762cb97b473d61d6cb Mon Sep 17 00:00:00 2001 From: Tal Gitelman Date: Mon, 30 Oct 2017 20:18:11 +0200 Subject: New normativeType Allotted Resource & Recepies Change-Id: I0602cec92497bbf0b926996b88ccbe6b3f02bbef Issue-ID:SDC-556 Signed-off-by: Tal Gitelman --- .../allottedResource/allottedResource.json | 20 +++++++++++ .../allottedResource/allottedResource.yml | 38 +++++++++++++++++++++ .../allottedResource/allottedResource.zip | Bin 0 -> 608 bytes 3 files changed, 58 insertions(+) create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/allottedResource/allottedResource.json create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/allottedResource/allottedResource.yml create mode 100644 catalog-be/src/main/resources/import/tosca/normative-types/allottedResource/allottedResource.zip (limited to 'catalog-be/src') diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/allottedResource/allottedResource.json b/catalog-be/src/main/resources/import/tosca/normative-types/allottedResource/allottedResource.json new file mode 100644 index 0000000000..143f62346d --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/normative-types/allottedResource/allottedResource.json @@ -0,0 +1,20 @@ +{ + "payloadName": "allottedResource.yml", + "contactId": "jh0003", + "name": "AllottedResource", + "description": "Allotted Resource base type all other allotted resources node types derive from", + "resourceIconPath": "defaulticon", + "categories": [ + { + "name": "Allotted Resource", + "subcategories": [ + { + "name": "Allotted Resource" + } + ] + } +], + "tags": [ + "AllottedResource" + ] +} \ No newline at end of file diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/allottedResource/allottedResource.yml b/catalog-be/src/main/resources/import/tosca/normative-types/allottedResource/allottedResource.yml new file mode 100644 index 0000000000..00d3bd243d --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/normative-types/allottedResource/allottedResource.yml @@ -0,0 +1,38 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +node_types: + org.openecomp.resource.vfc.AllottedResource: + derived_from: tosca.nodes.Root + description: ECOMP Allotted Resource base type all other allotted resources node types derive from + properties: + providing_service_uuid: + type: string + required: true + description: The depending service uuid in order to map the allotted resource to the specific service version + providing_service_invariant_uuid: + type: string + required: true + description: The depending service invariant uuid in order to map the allotted resource to the specific service version + providing_service_name: + type: string + required: true + description: The depending service name in order to map the allotted resource to the specific service version + role: + type: string + required: true + description: Unique label that defines the role that this allotted resource performs + min_instances: + type: integer + default: 1 + max_instances: + type: integer + default: 1 + target_network_role: + type: string + required: true + description: Target network role + requirements: + - service_dependency: + capability: org.openecomp.capabilities.AllottedResource + relationship: tosca.relationships.DependsOn + node: tosca.services.Root + diff --git a/catalog-be/src/main/resources/import/tosca/normative-types/allottedResource/allottedResource.zip b/catalog-be/src/main/resources/import/tosca/normative-types/allottedResource/allottedResource.zip new file mode 100644 index 0000000000..fd3f7e9d79 Binary files /dev/null and b/catalog-be/src/main/resources/import/tosca/normative-types/allottedResource/allottedResource.zip differ -- cgit 1.2.3-korg