Implement PNFD Model driven conversion
[sdc.git] / openecomp-be / lib / openecomp-tosca-converter-lib / openecomp-tosca-converter-core / src / test / resources / transformation / pnfParseEngine / pnfWithGetInput / pnfWithGetInput.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_1
2
3 description: service template of a PNF
4
5 topology_template:
6   inputs:
7     role:
8       type: string
9       description: Role
10       default: leaf
11     role1:
12       type: string
13       description: Role
14       default: leaf
15     layer_protocols:
16       type: list
17       description: IP protocols
18       entry_schema:
19         type: string
20       default: [ipv4, ipv6, otherProtocol]
21   node_templates:
22     notToBeConvertedNode:
23       type: tosca.nodes.nfv.PNF
24       properties:
25         descriptor_id: b1bb0ce7-ebca-4fa7-95ed-4840d70a2233
26         function_description: an example PNF
27         provider: Mycompany
28         version: 1.0
29         descriptor_invariant_id: 1111-2222-ccaa-bbdd
30         name: ExamplePnf
31       requirements:
32         - virtual_link:
33             capability: tosca.capabilities.nfv.VirtualLinkable
34             node: pnfExtCp_1
35     pnfExtCp_1:
36       type: tosca.nodes.nfv.PnfExtCp
37       properties:
38         trunk_mode: false
39         layer_protocols: [ipv4, ipv6, otherProtocol]
40         role: leaf
41         description: External connection point to access this pnf
42         anObjectAttribute:
43           anyAttribute: anyAttributeValue
44     pnfExtCp_2:
45       type: tosca.nodes.nfv.PnfExtCp
46       properties:
47         trunk_mode: false
48         layer_protocols:
49           get_input: layer_protocols
50         role: {get_input: role}
51         description: External connection point to access this pnf
52         anObjectAttribute:
53           anyAttribute: anyAttributeValue
54     pnfExtCp_3:
55       type: tosca.nodes.nfv.PnfExtCp
56       properties:
57         trunk_mode: false
58         description: External connection point to access this pnf
59         anObjectAttribute:
60           anyAttribute: anyAttributeValue
61         role: {get_input: role1}