Implement PNFD Model driven conversion
[sdc.git] / openecomp-be / lib / openecomp-tosca-converter-lib / openecomp-tosca-converter-core / src / test / resources / transformation / pnfParseEngine / pnfAndExtCpWithInput / transformationDescriptor / convertTwoAttributesSameLevel.yaml
1 - transformation-for: nodeTemplate
2   query:
3     type: tosca.nodes.nfv.PnfExtCp
4   conversions:
5     - query:
6         type:
7       to-name: type
8       to-value:
9         strategy: replace
10         from: tosca.nodes.nfv.PnfExtCp
11         to: org.openecomp.resource.cp.v2.extCP
12     - query:
13         properties:
14           layer_protocols:
15       to-name: ip_requirements
16       to-value:
17         strategy: replaceInList
18         list:
19           - from: ipv4
20             to:
21               assingment_method: dhcp
22               ip_version: 4
23           - from: ipv6
24             to:
25               assingment_method: dhcp
26               ip_version: 6
27     - query:
28         properties:
29           description:
30       to-name: description_converted
31       to-value:
32         strategy: copy