summaryrefslogtreecommitdiffstats
path: root/app/data/shared_model/composition_virtual
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/shared_model/composition_virtual
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/shared_model/composition_virtual')
-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
3 files changed, 77 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