summaryrefslogtreecommitdiffstats
path: root/models-examples/src
diff options
context:
space:
mode:
Diffstat (limited to 'models-examples/src')
-rw-r--r--models-examples/src/main/resources/policies/sdnc.policy.naming.input.tosca.yaml49
-rw-r--r--models-examples/src/main/resources/policytypes/onap.policies.Naming.yaml100
2 files changed, 149 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
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