blob: f2c000f74299d5fa726bd8bd3a198fc808cf2af9 [file] [log] [blame]
Matteo Scandolo1bd10762017-10-18 09:53:14 +02001
2# Copyright 2017-present Open Networking Foundation
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
17tosca_definitions_version: tosca_simple_yaml_1_0
18
19description: Persist xos-sample-gui-extension
20
21imports:
22 - custom_types/slice.yaml
23 - custom_types/network.yaml
24 - custom_types/networkslice.yaml
25 - custom_types/networktemplate.yaml
26 - custom_types/site.yaml
27 - custom_types/image.yaml
28 - custom_types/service.yaml
29 - custom_types/serviceinstance.yaml
30 - custom_types/serviceinstancelink.yaml
31
32topology_template:
33 node_templates:
34
35 service#mcord:
36 type: tosca.nodes.Service
37 properties:
38 name: mcord
39
40 test1:
41 type: tosca.nodes.ServiceInstance
42 properties:
43 name: test1
44
45 test2:
46 type: tosca.nodes.ServiceInstance
47 properties:
48 name: test2
49
50 link1:
51 type: tosca.nodes.ServiceInstanceLink
52 requirements:
53 - provider_service_instance:
54 node: test1
55 relationship: tosca.relationships.BelongsToOne
56 - subscriber_service_instance:
57 node: test2
58 relationship: tosca.relationships.BelongsToOne
59
60 link2:
61 type: tosca.nodes.ServiceInstanceLink
62 requirements:
63 - subscriber_service:
64 node: service#mcord
65 relationship: tosca.relationships.BelongsToOne
66 - provider_service_instance:
67 node: test2
68 relationship: tosca.relationships.BelongsToOne
69
70 # Site
71 mysite:
72 type: tosca.nodes.Site
73 properties:
74 must-exist: true
75 name: mysite
76
77 # Images
78 image#trusty-server-multi-nic:
79 type: tosca.nodes.Image
80 properties:
81 must-exist: true
82 name: trusty-server-multi-nic
83
84 # slices
85 slice#slice1:
86 type: tosca.nodes.Slice
87 properties:
88 name: mysite_slice1
89 requirements:
90 - site:
91 node: mysite
92 relationship: tosca.relationships.BelongsToOne
93 - default_image:
94 node: image#trusty-server-multi-nic
95 relationship: tosca.relationships.BelongsToOne
96
97 slice#slice2:
98 type: tosca.nodes.Slice
99 properties:
100 name: mysite_slice2
101 requirements:
102 - site:
103 node: mysite
104 relationship: tosca.relationships.BelongsToOne
105 - default_image:
106 node: image#trusty-server-multi-nic
107 relationship: tosca.relationships.BelongsToOne
108
109 # networks
110
111 shared_template:
112 type: tosca.nodes.NetworkTemplate
113 properties:
114 must-exist: true
115 name: shared_template
116
117 network#network1:
118 type: tosca.nodes.Network
119 properties:
120 name: network1
121 requirements:
122 - template:
123 node: shared_template
124 relationship: tosca.relationships.BelongsToOne
125 - owner:
126 node: slice#slice1
127 relationship: tosca.relationships.BelongsToOne
128
129 network#network2:
130 type: tosca.nodes.Network
131 properties:
132 name: network2
133 requirements:
134 - template:
135 node: shared_template
136 relationship: tosca.relationships.BelongsToOne
137 - owner:
138 node: slice#slice2
139 relationship: tosca.relationships.BelongsToOne
140
141 networkslice#slice1_network2:
142 type: tosca.nodes.NetworkSlice
143 requirements:
144 - network:
145 node: network#network2
146 relationship: tosca.relationships.BelongsToOne
147 - slice:
148 node: slice#slice1
149 relationship: tosca.relationships.BelongsToOne
150
151 networkslice#slice2_network1:
152 type: tosca.nodes.NetworkSlice
153 requirements:
154 - network:
155 node: network#network1
156 relationship: tosca.relationships.BelongsToOne
157 - slice:
158 node: slice#slice2
159 relationship: tosca.relationships.BelongsToOne
160