diff options
Diffstat (limited to 'app/data/shared_model/policies')
-rw-r--r-- | app/data/shared_model/policies/schema.yaml | 38 | ||||
-rw-r--r-- | app/data/shared_model/policies/template.yaml | 28 | ||||
-rw-r--r-- | app/data/shared_model/policies/translate.yaml | 34 |
3 files changed, 100 insertions, 0 deletions
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 |