diff options
author | Pamela Dragosh <pdragosh@research.att.com> | 2019-11-01 11:22:34 -0400 |
---|---|---|
committer | Pamela Dragosh <pdragosh@research.att.com> | 2019-11-01 11:26:58 -0400 |
commit | 1633ecbdc61fbfe769f55970d046263d721ea489 (patch) | |
tree | 6193657c2e5cf3602774274f5515e94d1f6293fd /models-examples/src/main/resources/policytypes | |
parent | 18555714bf9d3204be552c8664f008ec31115479 (diff) |
Add SDNC Naming Policy Type and example policy
Will be used to create naming application for XACML PDP.
Issue-ID: POLICY-1740
Change-Id: I996537da16bdb386f4bcddd0008055b8ffac417e
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Diffstat (limited to 'models-examples/src/main/resources/policytypes')
-rw-r--r-- | models-examples/src/main/resources/policytypes/onap.policies.Naming.yaml | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/models-examples/src/main/resources/policytypes/onap.policies.Naming.yaml b/models-examples/src/main/resources/policytypes/onap.policies.Naming.yaml new file mode 100644 index 000000000..f1b9c43d2 --- /dev/null +++ b/models-examples/src/main/resources/policytypes/onap.policies.Naming.yaml @@ -0,0 +1,100 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +policy_types: + onap.policies.Naming: + derived_from: tosca.policies.Root + version: 1.0.0 + description: Virtual policy node for naming + properties: + policy-instance-name: + type: string + naming-models: + type: list + entry_schema: + type: policy.data.naming-model-entity +data_types: + policy.data.naming-model-entity: + derived_from: tosca.nodes.Root + properties: + nfRole: + type: string + required: false + metadata: + matchable: true + naming-type: + type: string + required: true + metadata: + matchable: true + naming-recipe: + type: String + required: true + name-operation: + type: string + required: false + naming-properties: + type: list + required: true + entry_schema: + type: policy.data.naming-property + policy.data.naming-property: + derived_from: tosca.nodes.Root + properties: + property-name: + type: string + required: true + metadata: + matchable: true + property-value: + type: string + required: false + property-operation: + type: string + required: false + source-system: + type: string + required: false + source-endpoint: + type: string + required: false + increment-sequence: + type: policy.data.increment-sequence + required: false + policy.data.increment-sequence: + derived_from: tosca.nodes.Root + properties: + scope: + type: list + required: true + entry_schema: + type: string + constraints: + - valid_values: + - CLOUD_REGION_ID + - LOCATION_CLLI + - VNF + - VM + - VFMODULE + - PRECEEDING + - TRAILING + - ENTIRETY + sequence-type: + type: string + require: true + entry_schema: + type: string + constraints: + - valid_values: + - numeric + - alpha-numeric + start-value: + type: string + required: true + max: + type: string + required: false + increment: + type: string + required: true + length: + type: integer + required: true
\ No newline at end of file |