summaryrefslogtreecommitdiffstats
path: root/app/data
diff options
context:
space:
mode:
authorBetzer, Rony (rb844h) <rb844h@intl.att.com>2018-09-20 14:31:06 +0300
committerBetzer, Rony (rb844h) <rb844h@intl.att.com>2018-09-20 14:31:06 +0300
commit12c8090ed5b649ac199d4f9531140bab390e6381 (patch)
tree86ab10485a764e3dee7ba086694d2958a1b3687b /app/data
parent6af16809c3c7c82ca897f62e4f074e6707b3b7ab (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')
-rw-r--r--app/data/meta_model/meta_policy_schema.yaml18
-rw-r--r--app/data/meta_model/meta_tosca_schema.yaml496
-rw-r--r--app/data/shared_model/composition_virtual/schema.yaml27
-rw-r--r--app/data/shared_model/composition_virtual/template_cv.yaml39
-rw-r--r--app/data/shared_model/composition_virtual/translation_cv.yaml11
-rw-r--r--app/data/shared_model/docker_host/schema.yaml50
-rw-r--r--app/data/shared_model/docker_host/template.yaml25
-rw-r--r--app/data/shared_model/docker_host/translation.yaml27
-rw-r--r--app/data/shared_model/existing_feed/schema.yaml57
-rw-r--r--app/data/shared_model/existing_feed/template.yaml34
-rw-r--r--app/data/shared_model/existing_feed/translate.yaml27
-rw-r--r--app/data/shared_model/existing_topic/schema.yaml66
-rw-r--r--app/data/shared_model/existing_topic/template.yaml58
-rw-r--r--app/data/shared_model/existing_topic/translate.yaml34
-rw-r--r--app/data/shared_model/external_target_feed/schema.yaml62
-rw-r--r--app/data/shared_model/external_target_feed/template.yaml42
-rw-r--r--app/data/shared_model/external_target_feed/translate.yaml33
-rw-r--r--app/data/shared_model/policies/schema.yaml38
-rw-r--r--app/data/shared_model/policies/template.yaml28
-rw-r--r--app/data/shared_model/policies/translate.yaml34
-rw-r--r--app/data/shared_model/policy/schema.yaml34
-rw-r--r--app/data/shared_model/policy/template.yaml10
-rw-r--r--app/data/shared_model/policy/translate.yaml23
23 files changed, 1273 insertions, 0 deletions
diff --git a/app/data/meta_model/meta_policy_schema.yaml b/app/data/meta_model/meta_policy_schema.yaml
new file mode 100644
index 0000000..1efcf73
--- /dev/null
+++ b/app/data/meta_model/meta_policy_schema.yaml
@@ -0,0 +1,18 @@
+tosca_definitions_version: tosca_simple_yaml_1_0_0
+
+node_types:
+ policy.nodes.Root:
+ derived_from: tosca.nodes.Root
+ properties:
+ policyName:
+ type: string
+ required: true
+ policyVersion:
+ type: string
+ required: true
+ policyScope:
+ type: string
+ required: true
+ policyDescription:
+ type: string
+ required: false \ No newline at end of file
diff --git a/app/data/meta_model/meta_tosca_schema.yaml b/app/data/meta_model/meta_tosca_schema.yaml
new file mode 100644
index 0000000..1f7cec9
--- /dev/null
+++ b/app/data/meta_model/meta_tosca_schema.yaml
@@ -0,0 +1,496 @@
+tosca_definitions_version: tosca_simple_yaml_1_0_0
+imports:
+- policy: meta_policy_schema.yaml
+
+node_types:
+
+ tosca.dcae.nodes.Root:
+ derived_from: tosca.nodes.Root
+
+ tosca.dcae.nodes.dockerApp:
+ derived_from: tosca.dcae.nodes.Root
+ properties:
+ service_component_type:
+ type: string
+ required: true
+# service_id:
+# type: string
+# required: true
+ location_id:
+ type: string
+ required: true
+ image:
+ type: string
+ required: true
+ attributes:
+ service_component_name:
+ type: string
+ requirements:
+ - host:
+ capability: dcae.capabilities.dockerHost
+ relationship: dcae.relationships.component_contained_in
+ - composition:
+ capability: dcae.capabilities.composition.host
+
+ tosca.dcae.nodes.cdapApp:
+ derived_from: tosca.dcae.nodes.Root
+ properties:
+ connected_broker_dns_name:
+ type: string
+ required: true
+ default: "cdap_broker"
+ service_component_type:
+ type: string
+ required: true
+# service_id:
+# type: string
+# required: true
+# location_id:
+# type: string
+# required: true
+ jar_url:
+ type: string
+ required: true
+ attributes:
+ service_component_name:
+ type: string
+ requirements:
+ - host:
+ capability: dcae.capabilities.cdapHost
+ relationship: dcae.relationships.component_contained_in
+# - composition:
+# capability: dcae.capabilities.composition.host
+
+ tosca.dcae.nodes.dmaap.topic:
+ 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
+ topic_name:
+ type: string
+ capabilities:
+ topic:
+ type: dcae.capabilities.dmmap.topic
+ requirements:
+ - composition:
+ capability: dcae.capabilities.composition.host
+
+ 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
+
+
+ tosca.dcae.nodes.dmaap.feed:
+ derived_from: tosca.dcae.nodes.Root
+ properties:
+ location:
+ type: string
+ node_name:
+ type: string
+ feed_name:
+ type: string
+ capabilities:
+ feed:
+ type: dcae.capabilities.dmmap.feed
+ requirements:
+ - composition:
+ capability: dcae.capabilities.composition.host
+
+ 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
+
+ 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
+
+ cloudify.dcae.nodes.Root:
+ derived_from: tosca.nodes.Root
+
+
+ dcae.nodes.Feed:
+ derived_from: cloudify.dcae.nodes.Root
+ capabilities:
+ feed:
+ type: dcae.capabilities.dmmap.feed
+ properties:
+ feed_name:
+ type: string
+
+ dcae.nodes.ExistingFeed:
+ derived_from: cloudify.dcae.nodes.Root
+ capabilities:
+ feed:
+ type: dcae.capabilities.dmmap.feed
+ properties:
+ feed_id:
+ type: string
+
+ 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
+
+
+ dcae.nodes.Topic:
+ derived_from: cloudify.dcae.nodes.Root
+ properties:
+ topic_name:
+ type: string
+ capabilities:
+ topic:
+ type: dcae.capabilities.dmmap.topic
+
+ dcae.nodes.ExistingTopic:
+ derived_from: cloudify.dcae.nodes.Root
+ properties:
+ fqtn:
+ type: string
+ capabilities:
+ topic:
+ type: dcae.capabilities.dmmap.topic
+
+ dcae.nodes.DockerContainerForComponents:
+ derived_from: cloudify.dcae.nodes.Root
+ properties:
+ service_component_type:
+ type: string
+ required: true
+# service_id:
+# type: string
+# required: true
+ location_id:
+ type: string
+ required: true
+ image:
+ type: string
+ required: true
+ application_config:
+ type: map
+ required: true
+ docker_config:
+ type: map
+ attributes:
+ service_component_name:
+ type: string
+ requirements:
+ - host:
+ capability: dcae.capabilities.dockerHost
+ relationship: dcae.relationships.component_contained_in
+
+ dcae.nodes.DockerContainerForComponentsUsingDmaap:
+ derived_from: dcae.nodes.DockerContainerForComponents
+ properties:
+ streams_publishes:
+ type: list
+ streams_subscribes:
+ type: list
+
+ dcae.nodes.MicroService.cdap:
+ derived_from: cloudify.dcae.nodes.Root
+ properties:
+ service_component_type:
+ type: string
+ jar_url:
+ type: string
+ artifact_name:
+ type: string
+ required: false
+ artifact_version:
+ type: string
+ required: false
+ app_config:
+ type: map
+ required: false
+ app_preferences:
+ type: map
+ required: false
+ program_preferences:
+ type: list
+ required: false
+ programs:
+ #see Broker API
+ type: list
+ required: false
+ streamname:
+ type: string
+ required: false
+ namespace:
+ type: string
+ required: false
+ service_endpoints:
+ type: list
+ required: false
+# location_id:
+# type: string
+# service_id:
+# type: string
+ connections:
+ type: map
+ required: false
+ attributes:
+ service_component_name:
+ type: string
+ requirements:
+ - host:
+ capability: dcae.capabilities.cdapHost
+ relationship: dcae.relationships.component_contained_in
+ interfaces:
+ cloudify.interfaces.lifecycle:
+ type: tosca.interfaces.Root
+ create:
+ inputs:
+ connected_broker_dns_name:
+ type: string
+
+
+ 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
+
+ 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
+
+ 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
+
+ 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.dockerHost:
+ derived_from: tosca.capabilities.Root
+
+ dcae.capabilities.cdapHost:
+ derived_from: tosca.capabilities.Root
+
+ dcae.capabilities.policy:
+ derived_from: tosca.capabilities.Root
+
+ dcae.capabilities.stream.subscribe:
+ derived_from: tosca.capabilities.Root
+ properties:
+ format:
+ type: string
+ version:
+ type: string
+ route:
+ type: string
+
+ dcae.capabilities.dmmap.feed:
+ derived_from: tosca.capabilities.Root
+ properties:
+ location:
+ type: string
+ node_name:
+ type: string
+ feed_name:
+ type: string
+
+ 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.service.provide:
+ derived_from: tosca.capabilities.Root
+ properties:
+ request_format:
+ type: string
+ request_version:
+ type: string
+ response_format:
+ type: string
+ response_version:
+ type: string
+ service_name:
+ type: string
+ service_endpoint:
+ type: string
+ verb:
+ type: string
+
+ dcae.capabilities.composition.host:
+ derived_from: tosca.capabilities.Root
+ properties:
+ service_id:
+ type: string
+ location_id:
+ type: string
+
+
+relationship_types:
+ dcae.relationships.component_contained_in:
+ derived_from: tosca.relationships.Root
+
+ dcae.relationships.rework_connected_to:
+ derived_from: tosca.relationships.Root
+
+ dcae.relationships.publish_events:
+ derived_from: tosca.relationships.Root
+
+ dcae.relationships.subscribe_to_events:
+ derived_from: tosca.relationships.Root
+
+ dcae.relationships.publish_files:
+ derived_from: tosca.relationships.Root
+
+ dcae.relationships.subscribe_to_files:
+ derived_from: tosca.relationships.Root
+
+ cloudify.relationships.depends_on:
+ derived_from: tosca.relationships.Root
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