NPE in parse tosca file
[externalapi/nbi.git] / src / test / resources / toscafile / service-TestNetwork-template.yml
1 #
2 #     Copyright (c) 2018 Orange
3 #
4 #     Licensed under the Apache License, Version 2.0 (the "License");
5 #     you may not use this file except in compliance with the License.
6 #     You may obtain a copy of the License at
7 #
8 #         http://www.apache.org/licenses/LICENSE-2.0
9 #
10 #     Unless required by applicable law or agreed to in writing, software
11 #     distributed under the License is distributed on an "AS IS" BASIS,
12 #     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 #     See the License for the specific language governing permissions and
14 #     limitations under the License.
15 #
16
17 tosca_definitions_version: tosca_simple_yaml_1_1
18 metadata:
19   invariantUUID: c4b53838-852e-465b-9912-d386228e8784
20   UUID: 5349c430-8bf7-4033-be37-ef33d0f9823e
21   name: test network
22   description: '12345'
23   type: Service
24   category: Network L1-3
25   serviceType: ''
26   serviceRole: ''
27   serviceEcompNaming: true
28   ecompGeneratedNaming: true
29   namingPolicy: ''
30 imports:
31 - nodes:
32     file: nodes.yml
33 - datatypes:
34     file: data.yml
35 - capabilities:
36     file: capabilities.yml
37 - relationships:
38     file: relationships.yml
39 - groups:
40     file: groups.yml
41 - policies:
42     file: policies.yml
43 - service-test network-interface:
44     file: service-TestNetwork-template-interface.yml
45 - resource-Generic NeutronNet:
46     file: resource-GenericNeutronnet-template.yml
47 topology_template:
48   node_templates:
49     Generic NeutronNet 0:
50       type: org.openecomp.resource.vl.GenericNeutronNet
51       metadata:
52         invariantUUID: 185ad0e3-0031-4d34-9ac2-d6ad30f7f34d
53         UUID: e2b12ac6-cbb6-4517-9c58-b846d1f68caf
54         customizationUUID: 27f40057-902a-4cbf-870e-0db55f97283e
55         version: '1.0'
56         name: Generic NeutronNet
57         description: Generic NeutronNet
58         type: VL
59         category: Generic
60         subcategory: Network Elements
61         resourceVendor: ATT (Tosca)
62         resourceVendorRelease: 1.0.0.wd03
63         resourceVendorModelNumber: ''
64       properties:
65         network_role: TestNetwork.test
66         network_assignments:
67           is_external_network: false
68           ipv4_subnet_default_assignment:
69             min_subnets_count: 1
70           ecomp_generated_network_assignment: false
71           ipv6_subnet_default_assignment:
72             min_subnets_count: 1
73         exVL_naming:
74           ecomp_generated_naming: true
75         network_flows:
76           is_network_policy: false
77           is_bound_to_vpn: false
78         network_ecomp_naming:
79           ecomp_generated_naming: true
80         network_type: NEUTRON
81         network_technology: NEUTRON
82         network_homing:
83           ecomp_selected_instance_node_target: false
84   substitution_mappings:
85     node_type: org.openecomp.service.TestNetwork
86     capabilities:
87       genericneutronnet0.feature:
88       - genericneutronnet0
89       - feature
90       genericneutronnet0.virtual_linkable:
91       - genericneutronnet0
92       - virtual_linkable
93     requirements:
94       genericneutronnet0.dependency:
95       - genericneutronnet0
96       - dependency