summaryrefslogtreecommitdiffstats
path: root/app/data/shared_model/policy
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/policy
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/policy')
-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
3 files changed, 67 insertions, 0 deletions
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