aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/main/resources
diff options
context:
space:
mode:
authoraribeiro <anderson.ribeiro@est.tech>2019-09-11 13:50:46 +0100
committerOfir Sonsino <ofir.sonsino@intl.att.com>2019-11-04 13:33:00 +0000
commit5775dd13964a56a60dfbe8fc72e5977672d5acb8 (patch)
tree5ce7f67dc963e219d338cde4a152f90f9dccc2fc /openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/main/resources
parentdd22ca7a392b6532f6ed74d2aa985e14035828d1 (diff)
Transform custom types for PNFD.
Transformation of customized Node Types for PNFD. Issue-ID: SDC-2561 Change-Id: Id3e07edff0e5a8cb134aa12c07878e14c33d1512 Signed-off-by: aribeiro <anderson.ribeiro@est.tech>
Diffstat (limited to 'openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/main/resources')
-rw-r--r--openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/main/resources/pnfdTransformationTemplate/model-driven-conversion.yaml65
1 files changed, 65 insertions, 0 deletions
diff --git a/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/main/resources/pnfdTransformationTemplate/model-driven-conversion.yaml b/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/main/resources/pnfdTransformationTemplate/model-driven-conversion.yaml
index c58a23b8a2..9d2a899bd4 100644
--- a/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/main/resources/pnfdTransformationTemplate/model-driven-conversion.yaml
+++ b/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/main/resources/pnfdTransformationTemplate/model-driven-conversion.yaml
@@ -1,3 +1,68 @@
+- transformation-for: nodeType # Transforms all Node Types that extend from a valid ONAP NodeType.
+ name: Node Type transformation
+ description: converts any node type that has/extends from the type tosca.nodes.nfv.PnfExtCp
+ properties:
+ nodeNamePrefix: "org.openecomp.resource.abstract."
+ query:
+ derived_from: tosca.nodes.nfv.PnfExtCp
+ conversions:
+ - query:
+ derived_from:
+ to-name: derived_from
+ to-value:
+ strategy: replace
+ from: tosca.nodes.nfv.PnfExtCp
+ to: org.openecomp.resource.cp.v2.extCP
+ - query:
+ version:
+ to-name: version
+ to-value:
+ strategy: copy
+ - query:
+ metadata:
+ to-name: metadata
+ to-value:
+ strategy: copy
+ - query:
+ description:
+ to-name: description
+ to-value:
+ strategy: copy
+ - query:
+ attributes:
+ to-name: attributes
+ to-value:
+ strategy: copy
+ - query:
+ properties:
+ to-name: properties
+ to-value:
+ strategy: copy
+ - query:
+ requirements:
+ to-name: requirements
+ to-value:
+ strategy: copy
+ - query:
+ capabilities:
+ to-name: capabilities
+ to-value:
+ strategy: copy
+ - query:
+ interfaces:
+ to-name: interfaces
+ to-value:
+ strategy: copy
+ - query:
+ artifacts:
+ to-name: artifacts
+ to-value:
+ strategy: copy
+- transformation-for: customNodeType # Transforms all Customized Node Types that extend from a valid ONAP NodeType.
+ name: Custom Node Type transformation
+ description: converts any node type that has/extends from the type tosca.nodes.nfv.PnfExtCp
+ from: tosca.nodes.nfv.PnfExtCp
+ to: org.openecomp.resource.cp.v2.extCP
- transformation-for: nodeTemplate #block
name: PnfExtCp transformation #transformation name
description: converts any node template that has a type tosca.nodes.nfv.PnfExtCp #transformation description