Implement PNFD Model driven conversion
[sdc.git] / openecomp-be / lib / openecomp-tosca-converter-lib / openecomp-tosca-converter-core / src / test / resources / transformation / pnfParseEngine / pnfWithGetInput / transformationDescriptor / fullTransformation.yaml
1 - transformation-for: nodeTemplate
2   name: PnfExtCp transformation
3   description: converts any node template that has a type tosca.nodes.nfv.PnfExtCp
4   query:
5     type: tosca.nodes.nfv.PnfExtCp
6   conversions:
7     - query:
8         properties:
9           layer_protocols:
10       to-name: ip_requirements
11       to-value:
12         strategy: replaceInList
13         list:
14           - from: ipv4
15             to:
16               assingment_method: dhcp
17               ip_version: 4
18           - from: ipv6
19             to:
20               assingment_method: dhcp
21               ip_version: 6
22       to-get-input: ipRequirements
23     - query:
24         properties:
25           role:
26       to-name: role
27       to-value:
28         strategy: copy
29       to-get-input: stringTransformation
30 - transformation-for: getInputFunction
31   name: ipRequirements
32   description: converts IpRequirements inputs when called by a get_input TOSCA function
33   conversions:
34     - query:
35         type:
36       to-name: type
37       to-value:
38         strategy: copy
39     - query:
40         description:
41       to-name: description
42       to-value:
43         strategy: copy
44     - query:
45         entry_schema:
46           type:
47       to-name: type
48       to-value:
49         strategy: replace
50         from: string
51         to: org.openecomp.datatypes.network.IpRequirements
52     - query:
53         default:
54       to-name: default
55       to-value:
56         strategy: replaceInList
57         list:
58           - from: ipv4
59             to:
60               assingment_method: dhcp
61               ip_version: 4
62           - from: ipv6
63             to:
64               assingment_method: dhcp
65               ip_version: 6
66 - transformation-for: getInputFunction
67   name: stringTransformation
68   description: converts a string input
69   conversions:
70     - query:
71         type:
72       to-name: type
73       to-value:
74         strategy: copy
75     - query:
76         description:
77       to-name: description
78       to-value:
79         strategy: copy
80     - query:
81         default:
82       to-name: default
83       to-value:
84         strategy: copy