diff options
author | Betzer, Rony (rb844h) <rb844h@intl.att.com> | 2018-09-20 14:31:06 +0300 |
---|---|---|
committer | Betzer, Rony (rb844h) <rb844h@intl.att.com> | 2018-09-20 14:31:06 +0300 |
commit | 12c8090ed5b649ac199d4f9531140bab390e6381 (patch) | |
tree | 86ab10485a764e3dee7ba086694d2958a1b3687b /app/data/shared_model | |
parent | 6af16809c3c7c82ca897f62e4f074e6707b3b7ab (diff) |
Added tosca meta_model and shared_model
Added tosca meta_model and shared_model
Change-Id: I181ef3fe282b4d16ce5c7498f15dd2a90cbb3805
Issue-ID: SDC-1218
Signed-off-by: Betzer, Rony (rb844h) <rb844h@intl.att.com>
Diffstat (limited to 'app/data/shared_model')
21 files changed, 759 insertions, 0 deletions
diff --git a/app/data/shared_model/composition_virtual/schema.yaml b/app/data/shared_model/composition_virtual/schema.yaml new file mode 100644 index 0000000..780f8ba --- /dev/null +++ b/app/data/shared_model/composition_virtual/schema.yaml @@ -0,0 +1,27 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +node_types: + + tosca.dcae.nodes.Root: + derived_from: tosca.nodes.Root + + dcae.nodes.composition.virtual: + derived_from: tosca.nodes.Root + properties: + service_id: + type: string + required: true + location_id: + type: string + required: true + capabilities: + host: + type: dcae.capabilities.composition.host + +capability_types: + dcae.capabilities.composition.host: + derived_from: tosca.capabilities.Root + properties: + service_id: + type: string + location_id: + type: string diff --git a/app/data/shared_model/composition_virtual/template_cv.yaml b/app/data/shared_model/composition_virtual/template_cv.yaml new file mode 100644 index 0000000..81b170f --- /dev/null +++ b/app/data/shared_model/composition_virtual/template_cv.yaml @@ -0,0 +1,39 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 + +#metadata section: used for catalog tagging +metadata: + template_name: composition_virtual + template_description: virtual node to include common info for all nodes in the composition + template_version: 1.0.0 +# template_author: Shu Shi + +# asc_catalog: "{name:\"Utils\"}" + +imports: + - schema: schema.yaml + +topology_template: + + inputs: +# service_id: +# type: string + dcae_service_location: + type: string + + node_templates: + composition_virtual: + type: dcae.nodes.composition.virtual + properties: +# service_id: {get_input: service_id} + location_id: {get_input: dcae_service_location} + + capabilities: + host: + properties: + service_id: {get_property: [SELF, service_id]} + location_id: {get_property: [SELF, location_id]} + + + + + diff --git a/app/data/shared_model/composition_virtual/translation_cv.yaml b/app/data/shared_model/composition_virtual/translation_cv.yaml new file mode 100644 index 0000000..ec09400 --- /dev/null +++ b/app/data/shared_model/composition_virtual/translation_cv.yaml @@ -0,0 +1,11 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 + +imports: + - schema: schema.yaml + +topology_template: + + substitution_mappings: + node_type: dcae.nodes.composition.virtual + +
\ No newline at end of file diff --git a/app/data/shared_model/docker_host/schema.yaml b/app/data/shared_model/docker_host/schema.yaml new file mode 100644 index 0000000..389a1ec --- /dev/null +++ b/app/data/shared_model/docker_host/schema.yaml @@ -0,0 +1,50 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +node_types: + + tosca.dcae.nodes.Root: + derived_from: tosca.nodes.Root + + cloudify.dcae.nodes.Root: + derived_from: tosca.nodes.Root + + tosca.dcae.nodes.dockerHost: + derived_from: tosca.dcae.nodes.Root + properties: + location_id: + type: string + required: true + docker_host_override: + type: string + + capabilities: + host: + type: dcae.capabilities.dockerHost + + requirements: + - composition: + capability: dcae.capabilities.composition.host + + dcae.nodes.SelectedDockerHost: + derived_from: cloudify.dcae.nodes.Root + properties: + location_id: + type: string + required: true + docker_host_override: + type: string + capabilities: + host: + type: dcae.capabilities.dockerHost + + +capability_types: + dcae.capabilities.dockerHost: + derived_from: tosca.capabilities.Root + + dcae.capabilities.composition.host: + derived_from: tosca.capabilities.Root + properties: + service_id: + type: string + location_id: + type: string diff --git a/app/data/shared_model/docker_host/template.yaml b/app/data/shared_model/docker_host/template.yaml new file mode 100644 index 0000000..54d41ea --- /dev/null +++ b/app/data/shared_model/docker_host/template.yaml @@ -0,0 +1,25 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 + +metadata: + template_name: docker_host + + +imports: + - schema: schema.yaml + +topology_template: + inputs: + docker_host_override: + type: string + default: "" + + node_templates: + docker_host: + type: tosca.dcae.nodes.dockerHost + properties: + location_id: {get_property: [SELF, composition, location_id]} + docker_host_override: {get_input: docker_host_override} + + + + diff --git a/app/data/shared_model/docker_host/translation.yaml b/app/data/shared_model/docker_host/translation.yaml new file mode 100644 index 0000000..e741fa2 --- /dev/null +++ b/app/data/shared_model/docker_host/translation.yaml @@ -0,0 +1,27 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: docker_host_translate + +imports: + - schema: schema.yaml + +topology_template: + + inputs: #for substitution mapping definition, these inputs are exactly the properties of dcae.nodes.dockerApp.asimovCollector + location_id: + type: string + docker_host_override: + type: string + + + substitution_mappings: + node_type: tosca.dcae.nodes.dockerHost + capabilities: + host: [host, host] + + node_templates: + host: + type: dcae.nodes.SelectedDockerHost + properties: + location_id: {get_input: location_id} + docker_host_override: {get_input: docker_host_override}
\ No newline at end of file diff --git a/app/data/shared_model/existing_feed/schema.yaml b/app/data/shared_model/existing_feed/schema.yaml new file mode 100644 index 0000000..f1de7f6 --- /dev/null +++ b/app/data/shared_model/existing_feed/schema.yaml @@ -0,0 +1,57 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 + +node_types: + + tosca.dcae.nodes.Root: + derived_from: tosca.nodes.Root + + cloudify.dcae.nodes.Root: + derived_from: tosca.nodes.Root + + tosca.dcae.nodes.dmaap.existingFeed: + derived_from: tosca.dcae.nodes.Root + properties: + location: + type: string + node_name: + type: string + feed_id: + type: string + capabilities: + feed: + type: dcae.capabilities.dmmap.feed + requirements: + - composition: + capability: dcae.capabilities.composition.host + + dcae.nodes.ExistingFeed: + derived_from: cloudify.dcae.nodes.Root + capabilities: + feed: + type: dcae.capabilities.dmmap.feed + properties: + feed_id: + type: string + + +capability_types: + + dcae.capabilities.dmmap.feed: + derived_from: tosca.capabilities.Root + properties: + location: + type: string + node_name: + type: string + feed_name: + type: string + + + dcae.capabilities.composition.host: + derived_from: tosca.capabilities.Root + properties: + service_id: + type: string + location_id: + type: string +
\ No newline at end of file diff --git a/app/data/shared_model/existing_feed/template.yaml b/app/data/shared_model/existing_feed/template.yaml new file mode 100644 index 0000000..ebfac43 --- /dev/null +++ b/app/data/shared_model/existing_feed/template.yaml @@ -0,0 +1,34 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: existing_feed +imports: +- schema: schema.yaml +topology_template: + inputs: + feed_id: + type: string + + node_templates: + feed: + type: tosca.dcae.nodes.dmaap.existingFeed + properties: + feed_id: + get_input: feed_id + location: + get_property: + - SELF + - composition + - location_id + node_name: __GET_NODE_NAME__ + capabilities: + feed: + properties: + feed_name: "" + location: + get_property: + - SELF + - location + node_name: + get_property: + - SELF + - node_name diff --git a/app/data/shared_model/existing_feed/translate.yaml b/app/data/shared_model/existing_feed/translate.yaml new file mode 100644 index 0000000..9a2be05 --- /dev/null +++ b/app/data/shared_model/existing_feed/translate.yaml @@ -0,0 +1,27 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: existing_feed_translate +imports: +- schema: schema.yaml + +topology_template: + inputs: + location: + type: string + node_name: + type: string + feed_id: + type: string + + + substitution_mappings: + node_type: tosca.dcae.nodes.dmaap.existingFeed + capabilities: + feed: + - NO_PREFIX + - feed + node_templates: + NO_PREFIX: + type: dcae.nodes.ExistingFeed + properties: + feed_id: {get_input: feed_id} diff --git a/app/data/shared_model/existing_topic/schema.yaml b/app/data/shared_model/existing_topic/schema.yaml new file mode 100644 index 0000000..8bd80ca --- /dev/null +++ b/app/data/shared_model/existing_topic/schema.yaml @@ -0,0 +1,66 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 + +node_types: + tosca.dcae.nodes.Root: + derived_from: tosca.nodes.Root + cloudify.dcae.nodes.Root: + derived_from: tosca.nodes.Root + + tosca.dcae.nodes.dmaap.existingTopic: + derived_from: tosca.dcae.nodes.Root + properties: + aaf_username: + type: string + aaf_password: + type: string + location: + type: string + client_role: + type: string + node_name: + type: string + fqtn: + type: string + capabilities: + topic: + type: dcae.capabilities.dmmap.topic + requirements: + - composition: + capability: dcae.capabilities.composition.host + + dcae.nodes.ExistingTopic: + derived_from: cloudify.dcae.nodes.Root + properties: + fqtn: + type: string + capabilities: + topic: + type: dcae.capabilities.dmmap.topic + +capability_types: + + dcae.capabilities.dmmap.topic: + derived_from: tosca.capabilities.Root + properties: + aaf_username: + type: string + aaf_password: + type: string + location: + type: string + client_role: + type: string + node_name: + type: string + topic_name: + type: string + + + dcae.capabilities.composition.host: + derived_from: tosca.capabilities.Root + properties: + service_id: + type: string + location_id: + type: string + diff --git a/app/data/shared_model/existing_topic/template.yaml b/app/data/shared_model/existing_topic/template.yaml new file mode 100644 index 0000000..cd41b04 --- /dev/null +++ b/app/data/shared_model/existing_topic/template.yaml @@ -0,0 +1,58 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: existing_topic +imports: +- schema: schema.yaml +topology_template: + inputs: + aaf_password: + type: string + aaf_username: + type: string + client_role: + type: string + fqtn: + type: string + + node_templates: + topic: + type: tosca.dcae.nodes.dmaap.existingTopic + properties: + aaf_password: + get_input: aaf_password + aaf_username: + get_input: aaf_username + client_role: + get_input: client_role + location: + get_property: + - SELF + - composition + - location_id + node_name: __GET_NODE_NAME__ + fqtn: + get_input: fqtn + capabilities: + topic: + properties: + aaf_password: + get_property: + - SELF + - aaf_password + aaf_username: + get_property: + - SELF + - aaf_username + client_role: + get_property: + - SELF + - client_role + location: + get_property: + - SELF + - location + node_name: + get_property: + - SELF + - node_name + topic_name: ''
\ No newline at end of file diff --git a/app/data/shared_model/existing_topic/translate.yaml b/app/data/shared_model/existing_topic/translate.yaml new file mode 100644 index 0000000..530db27 --- /dev/null +++ b/app/data/shared_model/existing_topic/translate.yaml @@ -0,0 +1,34 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: existing_topic_translate +imports: +- schema: schema.yaml + + +topology_template: + inputs: + aaf_username: + type: string + aaf_password: + type: string + location: + type: string + client_role: + type: string + node_name: + type: string + fqtn: + type: string + + + substitution_mappings: + node_type: tosca.dcae.nodes.dmaap.existingTopic + capabilities: + topic: + - NO_PREFIX + - topic + node_templates: + NO_PREFIX: + type: dcae.nodes.ExistingTopic + properties: + fqtn: {get_input: fqtn}
\ No newline at end of file diff --git a/app/data/shared_model/external_target_feed/schema.yaml b/app/data/shared_model/external_target_feed/schema.yaml new file mode 100644 index 0000000..9186590 --- /dev/null +++ b/app/data/shared_model/external_target_feed/schema.yaml @@ -0,0 +1,62 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 + +node_types: + + tosca.dcae.nodes.Root: + derived_from: tosca.nodes.Root + cloudify.dcae.nodes.Root: + derived_from: tosca.nodes.Root + + tosca.dcae.nodes.dmaap.externalTargetFeed: + derived_from: tosca.dcae.nodes.Root + properties: + location: + type: string + node_name: + type: string + url: + type: string + username: + type: string + userpw: + type: string + capabilities: + feed: + type: dcae.capabilities.dmmap.feed + requirements: + - composition: + capability: dcae.capabilities.composition.host + + dcae.nodes.ExternalTargetFeed: + derived_from: cloudify.dcae.nodes.Root + capabilities: + feed: + type: dcae.capabilities.dmmap.feed + properties: + url: + type: string + username: + type: string + userpw: + type: string + +capability_types: + + dcae.capabilities.dmmap.feed: + derived_from: tosca.capabilities.Root + properties: + location: + type: string + node_name: + type: string + feed_name: + type: string + + + dcae.capabilities.composition.host: + derived_from: tosca.capabilities.Root + properties: + service_id: + type: string + location_id: + type: string diff --git a/app/data/shared_model/external_target_feed/template.yaml b/app/data/shared_model/external_target_feed/template.yaml new file mode 100644 index 0000000..0e24493 --- /dev/null +++ b/app/data/shared_model/external_target_feed/template.yaml @@ -0,0 +1,42 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: external_target_feed +imports: +- schema: schema.yaml +topology_template: + inputs: + url: + type: string + username: + type: string + userpw: + type: string + + node_templates: + feed: + type: tosca.dcae.nodes.dmaap.externalTargetFeed + properties: + url: + get_input: url + username: + get_input: username + userpw: + get_input: userpw + location: + get_property: + - SELF + - composition + - location_id + node_name: __GET_NODE_NAME__ + capabilities: + feed: + properties: + feed_name: "" + location: + get_property: + - SELF + - location + node_name: + get_property: + - SELF + - node_name diff --git a/app/data/shared_model/external_target_feed/translate.yaml b/app/data/shared_model/external_target_feed/translate.yaml new file mode 100644 index 0000000..02810c2 --- /dev/null +++ b/app/data/shared_model/external_target_feed/translate.yaml @@ -0,0 +1,33 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: external_target_feed_translate +imports: +- schema: schema.yaml + +topology_template: + inputs: + location: + type: string + node_name: + type: string + url: + type: string + username: + type: string + userpw: + type: string + + + substitution_mappings: + node_type: tosca.dcae.nodes.dmaap.externalTargetFeed + capabilities: + feed: + - NO_PREFIX + - feed + node_templates: + NO_PREFIX: + type: dcae.nodes.ExternalTargetFeed + properties: + url: {get_input: url} + username: {get_input: username} + userpw: {get_input: userpw} diff --git a/app/data/shared_model/policies/schema.yaml b/app/data/shared_model/policies/schema.yaml new file mode 100644 index 0000000..505b97f --- /dev/null +++ b/app/data/shared_model/policies/schema.yaml @@ -0,0 +1,38 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 + +node_types: + + tosca.dcae.nodes.Root: + derived_from: tosca.nodes.Root + cloudify.dcae.nodes.Root: + derived_from: tosca.nodes.Root + + tosca.dcae.nodes.policies: + derived_from: tosca.dcae.nodes.Root + properties: + policyName: + type: string + configName: + type: string + onapName: + type: string + configAttributes: + type: string + unique: + type: boolean + capabilities: + policy: + type: dcae.capabilities.policy + + dcae.nodes.policies: + derived_from: cloudify.dcae.nodes.Root + properties: + policy_filter: + type: map + capabilities: + policy: + type: dcae.capabilities.policy + +capability_types: + dcae.capabilities.policy: + derived_from: tosca.capabilities.Root diff --git a/app/data/shared_model/policies/template.yaml b/app/data/shared_model/policies/template.yaml new file mode 100644 index 0000000..b3e894a --- /dev/null +++ b/app/data/shared_model/policies/template.yaml @@ -0,0 +1,28 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: policies +imports: +- schema: schema.yaml + +topology_template: + inputs: + policyName: + type: string + configName: + type: string + onapName: + type: string + configAttributes: + type: string + unique: + type: boolean + + node_templates: + policy: + type: tosca.dcae.nodes.policies + properties: + policyName: "DCAE.Config_" + configName: "" + onapName: "DCAE" + configAttributes: "" + unique: false diff --git a/app/data/shared_model/policies/translate.yaml b/app/data/shared_model/policies/translate.yaml new file mode 100644 index 0000000..c0daffb --- /dev/null +++ b/app/data/shared_model/policies/translate.yaml @@ -0,0 +1,34 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: policies_translate +imports: +- schema: schema.yaml +topology_template: + inputs: + policyName: + type: string + configName: + type: string + onapName: + type: string + configAttributes: + type: string + unique: + type: boolean + + substitution_mappings: + node_type: tosca.dcae.nodes.policies + capabilities: + policy: + - NO_PREFIX + - policy + node_templates: + NO_PREFIX: + type: dcae.nodes.policies + properties: + policy_filter: + policyName: {get_input: policyName} + configName: {get_input: configName} + onapName: {get_input: onapName} + configAttributes: {get_input: configAttributes} + unique: {get_input: unique}
\ No newline at end of file diff --git a/app/data/shared_model/policy/schema.yaml b/app/data/shared_model/policy/schema.yaml new file mode 100644 index 0000000..cb4718c --- /dev/null +++ b/app/data/shared_model/policy/schema.yaml @@ -0,0 +1,34 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 + +node_types: + + tosca.dcae.nodes.Root: + derived_from: tosca.nodes.Root + cloudify.dcae.nodes.Root: + derived_from: tosca.nodes.Root + + dcae.nodes.policy: + derived_from: cloudify.dcae.nodes.Root + properties: + policy_id: + type: string + required: true + capabilities: + policy: + type: dcae.capabilities.policy + + tosca.dcae.nodes.policy: + derived_from: tosca.dcae.nodes.Root + properties: + policy_name: + type: string + policy_id: + type: string + required: true + capabilities: + policy: + type: dcae.capabilities.policy + +capability_types: + dcae.capabilities.policy: + derived_from: tosca.capabilities.Root diff --git a/app/data/shared_model/policy/template.yaml b/app/data/shared_model/policy/template.yaml new file mode 100644 index 0000000..a0e8b00 --- /dev/null +++ b/app/data/shared_model/policy/template.yaml @@ -0,0 +1,10 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: policy +imports: +- schema: schema.yaml +topology_template: + + node_templates: + policy: + type: tosca.dcae.nodes.policy diff --git a/app/data/shared_model/policy/translate.yaml b/app/data/shared_model/policy/translate.yaml new file mode 100644 index 0000000..1c349c2 --- /dev/null +++ b/app/data/shared_model/policy/translate.yaml @@ -0,0 +1,23 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: policy_translate +imports: +- schema: schema.yaml +topology_template: + inputs: + policy_name: + type: string + policy_id: + type: string + + substitution_mappings: + node_type: tosca.dcae.nodes.policy + capabilities: + policy: + - NO_PREFIX + - policy + node_templates: + NO_PREFIX: + type: dcae.nodes.policy + properties: + policy_id: {get_input: policy_id}
\ No newline at end of file |