aboutsummaryrefslogtreecommitdiffstats
path: root/models-examples/src/main/resources/policies
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2019-11-01 11:22:34 -0400
committerPamela Dragosh <pdragosh@research.att.com>2019-11-01 11:26:58 -0400
commit1633ecbdc61fbfe769f55970d046263d721ea489 (patch)
tree6193657c2e5cf3602774274f5515e94d1f6293fd /models-examples/src/main/resources/policies
parent18555714bf9d3204be552c8664f008ec31115479 (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/policies')
-rw-r--r--models-examples/src/main/resources/policies/sdnc.policy.naming.input.tosca.yaml49
1 files changed, 49 insertions, 0 deletions
diff --git a/models-examples/src/main/resources/policies/sdnc.policy.naming.input.tosca.yaml b/models-examples/src/main/resources/policies/sdnc.policy.naming.input.tosca.yaml
new file mode 100644
index 000000000..825e95dea
--- /dev/null
+++ b/models-examples/src/main/resources/policies/sdnc.policy.naming.input.tosca.yaml
@@ -0,0 +1,49 @@
+tosca_definitions_version: tosca_simple_yaml_1_0_0
+topology_template:
+ policies:
+ - SDNC_Policy.ONAP_VNF_NAMING_TIMESTAMP:
+ type: onap.policies.Naming
+ version: 1.0.0
+ properties:
+ policy-instance-name: ONAP_VNF_NAMING_TIMESTAMP
+ naming-models:
+ - naming-type: VNF
+ naming-recipe: AIC_CLOUD_REGION|DELIMITER|CONSTANT|DELIMITER|TIMESTAMP
+ naming-properties:
+ - property-name: AIC_CLOUD_REGION
+ - property-name: CONSTANT
+ property-value: ONAP-NF
+ - property-name: TIMESTAMP
+ - property-value: _
+ property-name: DELIMITER
+ - naming-type: VNFC
+ naming-recipe: VNF_NAME|DELIMITER|NFC_NAMING_CODE|DELIMITER|SEQUENCE
+ naming-properties:
+ - property-name: VNF_NAME
+ - property-name: SEQUENCE
+ increment-sequence:
+ max: zzz
+ scope: ENTIRETY
+ start-value: 1
+ length: 3
+ increment: 1
+ sequence-type: alpha-numeric
+ - property-name: NFC_NAMING_CODE
+ - property-value: _
+ property-name: DELIMITER
+ - naming-type: VF-MODULE
+ naming-recipe: VNF_NAME|DELIMITER|VF_MODULE_LABEL|DELIMITER|VF_MODULE_TYPE|DELIMITER|SEQUENCE
+ naming-properties:
+ - property-name: VNF_NAME
+ - property-value: _
+ property-name: DELIMITER
+ - property-name: VF_MODULE_LABEL
+ - property-name: VF_MODULE_TYPE
+ - property-name: SEQUENCE
+ increment-sequence:
+ max: zzz
+ scope: PRECEEDING
+ start-value: 1
+ length: 3
+ increment: 1
+ sequence-type: alpha-numeric \ No newline at end of file