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