From f64976e64325073e08dce191d99bb807efd98301 Mon Sep 17 00:00:00 2001 From: stasys10 Date: Thu, 24 Feb 2022 17:38:03 +0000 Subject: Add ASD node and data types to SDC AID model Issue-ID: SDC-3938 Signed-off-by: stasys10 Change-Id: Idac990c39f7d782eb029c72e5829b607de72dbb6 Signed-off-by: stasys10 --- .../resources/import/tosca/nfv-types/asd/asd.json | 15 ++++++ .../resources/import/tosca/nfv-types/asd/asd.yml | 55 ++++++++++++++++++++++ .../import/tosca/nfv-types/asdInNsd/asdInNsd.json | 15 ++++++ .../import/tosca/nfv-types/asdInNsd/asdInNsd.yml | 54 +++++++++++++++++++++ 4 files changed, 139 insertions(+) create mode 100644 catalog-be/src/main/resources/import/tosca/nfv-types/asd/asd.json create mode 100644 catalog-be/src/main/resources/import/tosca/nfv-types/asd/asd.yml create mode 100644 catalog-be/src/main/resources/import/tosca/nfv-types/asdInNsd/asdInNsd.json create mode 100644 catalog-be/src/main/resources/import/tosca/nfv-types/asdInNsd/asdInNsd.yml (limited to 'catalog-be/src/main/resources/import/tosca/nfv-types') diff --git a/catalog-be/src/main/resources/import/tosca/nfv-types/asd/asd.json b/catalog-be/src/main/resources/import/tosca/nfv-types/asd/asd.json new file mode 100644 index 0000000000..7da91b29be --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/nfv-types/asd/asd.json @@ -0,0 +1,15 @@ +{ + "payloadName": "asd.yml", + "contactId": "jh0003", + "name": "asd", + "description": "The ASD node type", + "resourceIconPath": "defaulticon", + "resourceType": "VFC", + "categories": [{ + "name": "Generic", + "subcategories": [{ + "name": "Network Elements" + }] + }], + "tags": ["asd"] +} diff --git a/catalog-be/src/main/resources/import/tosca/nfv-types/asd/asd.yml b/catalog-be/src/main/resources/import/tosca/nfv-types/asd/asd.yml new file mode 100644 index 0000000000..e204538f08 --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/nfv-types/asd/asd.yml @@ -0,0 +1,55 @@ +tosca_definitions_version: tosca_simple_yaml_1_3 +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. + ext_cpds: + type: list + required: false + entry_schema: + type: tosca.datatypes.asd.extCpdData + description: > + Describes the externally exposed connection points of the application + service described by this ASD + enhanced_cluster_capabilities: + type: tosca.datatypes.asd.enhancedClusterCapabilities + required: false + description: > + A list of expected capabilities of the target Kubernetes cluster to aid + placement of the application service on a suitable cluster. diff --git a/catalog-be/src/main/resources/import/tosca/nfv-types/asdInNsd/asdInNsd.json b/catalog-be/src/main/resources/import/tosca/nfv-types/asdInNsd/asdInNsd.json new file mode 100644 index 0000000000..910a2c6c04 --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/nfv-types/asdInNsd/asdInNsd.json @@ -0,0 +1,15 @@ +{ + "payloadName": "asdInNsd.yml", + "contactId": "jh0003", + "name": "asdInNsd", + "description": "The ASD in NSD", + "resourceIconPath": "defaulticon", + "resourceType": "VFC", + "categories": [{ + "name": "Generic", + "subcategories": [{ + "name": "Network Elements" + }] + }], + "tags": ["asdInNsd"] +} diff --git a/catalog-be/src/main/resources/import/tosca/nfv-types/asdInNsd/asdInNsd.yml b/catalog-be/src/main/resources/import/tosca/nfv-types/asdInNsd/asdInNsd.yml new file mode 100644 index 0000000000..fa48ca5eda --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/nfv-types/asdInNsd/asdInNsd.yml @@ -0,0 +1,54 @@ +tosca_definitions_version: tosca_simple_yaml_1_3 +node_types: + tosca.nodes.asdInNsd: + derived_from: tosca.nodes.nfv.VNF + description: "The generic ASD node types for NS requirements. Optional properties are not list here." + version: 0.1 + properties: + descriptor_id: + type: string # UUID + description: Identifier of an ASD. It is in UUID format as specified in RFC 4122 + required: true + descriptor_version: + type: string + description: Identifies the version of the ASD. + required: true + default: "" + provider: + type: string + description: Identifies the provider of the ASD + required: true + default: "" + product_name: + type: string + description: Please use the application_name property + required: true + default: "" + software_version: + type: string + description: Please use the application_version property + required: true + default: "" + flavour_id: + type: string + required: true + constraints: [ equal: "simple" ] + default: "simple" + flavour_description: + type: string + required: true + default: "" + vnfm_info: + type: list + required: true + entry_schema: + type: string + requirements: + - virtual_link: + capability: tosca.capabilities.nfv.VirtualLinkable + relationship: tosca.relationships.nfv.VirtualLinkableTo + occurrences: [ 0,0 ] + - virtual_links: + capability: tosca.capabilities.nfv.VirtualLinkable + relationship: tosca.relationships.nfv.VirtualLinkableTo + occurrences: [ 0,UNBOUNDED ] -- cgit 1.2.3-korg