blob: 765b0f67ffffd676a49d0f92f443320ce13e09fc [file] [log] [blame]
Pingping Linb7a7d2b2016-08-19 18:11:36 +00001tosca_definitions_version: tosca_simple_yaml_1_0
2
3description: Setup MCORD-related services.
4
5imports:
6 - custom_types/xos.yaml
7
8node_types:
9
10 tosca.nodes.MCORDService:
11 derived_from: tosca.nodes.Root
12 description: >
13 An XOS Service object. Services may be listed in the Service
14 directory and may be linked together via Tenancy Relationships.
15 capabilities:
16 scalable:
17 type: tosca.capabilities.Scalable
18 service:
19 type: tosca.capabilities.xos.Service
20 properties:
21 no-delete:
22 type: boolean
23 default: false
24 description: Do not allow Tosca to delete this object
25 no-create:
26 type: boolean
27 default: false
28 description: Do not allow Tosca to create this object
29 no-update:
30 type: boolean
31 default: false
32 description: Do not allow Tosca to update this object
33 kind:
34 type: string
35 default: RAN
36 description: Type of service.
37 view_url:
38 type: string
39 required: false
40 description: URL to follow when icon is clicked in the Service Directory.
41 icon_url:
42 type: string
43 required: false
44 description: ICON to display in the Service Directory.
45 enabled:
46 type: boolean
47 default: true
48 published:
49 type: boolean
50 default: true
51 description: If True then display this Service in the Service Directory.
52 public_key:
53 type: string
54 required: false
55 description: Public key to install into Instances to allows Services to SSH into them.
56 private_key_fn:
57 type: string
58 required: false
59 description: Location of private key file
60 versionNumber:
61 type: string
62 required: false
63 description: Version number of Service.
64
65 tosca.nodes.VBBUComponent:
66 derived_from: tosca.nodes.Root
67 description: >
68 CORD: vBBU Component of MCORD Service.
69 properties:
70 kind:
71 type: string
72 default: RAN
73 description: Kind of component
74 s1u_tag:
75 type: string
76 required: false
77 default: 901
78 description: VTN stag port-name
79 s1mme_tag:
80 type: string
81 required: false
82 default: 900
83 description: VTN stag port-name
84 rru_tag:
85 type: string
86 required: false
87 default: 999
88 description: VTN stag port-name
89 display_message:
90 type: string
91 required: false
92 default: New vBBU Component
93 description: Just a message
94
95 tosca.nodes.VPGWCComponent:
96 derived_from: tosca.nodes.Root
97 description: >
98 CORD: vPGWC Component of MCORD Service.
99 properties:
100 kind:
101 type: string
102 default: VPGWC_KIND
103 description: Kind of component
104 s5s8_pgw_tag:
105 type: string
106 required: false
107 default: 300
108 description: VTN stag port-name
109 display_message:
110 type: string
111 required: false
112 default: New vPGWc Component
113 description: Just a message
114
115topology_template:
116 node_templates:
117 vBBU:
118 type: tosca.nodes.MCORDService
119 requirements:
120 properties:
121 kind: RAN
122 icon_url: /static/mCordServices/service_server.png
Pingping Lin711a1062016-09-20 11:08:10 -0700123 view_url: /admin/vbbu/vbbucomponent
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000124 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
Pingping Lineb05ccd2016-09-19 21:23:59 +0000125 private_key_fn: /opt/xos/services/vbbu/keys/vBBU_rsa
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000126 artifacts:
Pingping Lineb05ccd2016-09-19 21:23:59 +0000127 pubkey: /opt/xos/services/vbbu/keys/vBBU_rsa.pub
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000128
129 vPGWC:
130 type: tosca.nodes.MCORDService
131 requirements:
132 properties:
133 kind: vEPC
134 icon_url: /static/mCordServices/service_server.png
Pingping Lin711a1062016-09-20 11:08:10 -0700135 view_url: /admin/vpgwc/vpgwccomponent
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000136 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
Pingping Lin97c12612016-09-19 23:40:53 +0000137 private_key_fn: /opt/xos/services/vpgwc/keys/vPGWC_rsa
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000138 artifacts:
Pingping Lin97c12612016-09-19 23:40:53 +0000139 pubkey: /opt/xos/services/vpgwc/keys/vPGWC_rsa.pub
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000140
141 m1.xlarge:
142 type: tosca.nodes.Flavor
143
144 Private:
145 type: tosca.nodes.NetworkTemplate
146
147 External:
148 type: tosca.nodes.NetworkTemplate
149
150 management_template:
151 type: tosca.nodes.NetworkTemplate
152 properties:
153 visibility: private
154 translation: none
155
156 management:
157 type: tosca.nodes.network.Network.XOS
158# properties:
159# no-create: true
160# no-delete: true
161# no-update: true
162
163 lan_3gpp_s1mme_network:
164 type: tosca.nodes.network.Network.XOS
165 properties:
166 ip_version: 4
167 labels: lan_3gpp_s1uc_net
168 cidr: 172.16.1.0/24
169 start_ip: 172.16.1.3
170 end_ip: 172.16.1.12
171 gateway_ip: 172.16.1.1
172 requirements:
173 - network_template:
174 node: External
175 relationship: tosca.relationships.UsesNetworkTemplate
176 - owner:
177 node: mysite_mobile_net
178 relationship: tosca.relationships.MemberOfSlice
179 - connection:
180 node: mysite_vbbu_slice1
181 relationship: tosca.relationships.ConnectsToSlice
182
183 lan_3gpp_s1u_network:
184 type: tosca.nodes.network.Network.XOS
185 properties:
186 ip_version: 4
187 labels: lan_3gpp_s1u_net
188 cidr: 172.16.2.0/24
189 start_ip: 172.16.2.3
190 end_ip: 172.16.2.12
191 gateway_ip: 172.16.16.1
192 requirements:
193 - network_template:
194 node: External
195 relationship: tosca.relationships.UsesNetworkTemplate
196 - owner:
197 node: mysite_mobile_net
198 relationship: tosca.relationships.MemberOfSlice
199 - connection:
200 node: mysite_vbbu_slice1
201 relationship: tosca.relationships.ConnectsToSlice
202
203 lan_rru_network:
204 type: tosca.nodes.network.Network.XOS
205 properties:
206 ip_version: 4
207 labels: lan_rru_net
208 cidr: 172.16.0.0/24
209 start_ip: 172.16.0.3
210 end_ip: 172.16.0.12
211 gateway_ip: 172.16.0.1
212 requirements:
213 - network_template:
214 node: External
215 relationship: tosca.relationships.UsesNetworkTemplate
216 - owner:
217 node: mysite_mobile_net
218 relationship: tosca.relationships.MemberOfSlice
219 - connection:
220 node: mysite_vbbu_slice1
221 relationship: tosca.relationships.ConnectsToSlice
222
223 lan_3gpp_s5s8_pgw_network:
224 type: tosca.nodes.network.Network.XOS
225 properties:
226 ip_version: 4
227 labels: lan_3gpp_s5s8_pgw_net
228 cidr: 172.17.1.0/24
229 start_ip: 172.17.1.2
230 end_ip: 172.17.1.8
231 gateway_ip: 172.17.1.1
232 requirements:
233 - network_template:
234 node: External
235 relationship: tosca.relationships.UsesNetworkTemplate
236 - owner:
237 node: mysite_mobile_net
238 relationship: tosca.relationships.MemberOfSlice
239 - connection:
240 node: mysite_vpgwc_slice1
241 relationship: tosca.relationships.ConnectsToSlice
242
243 mysite:
244 type: tosca.nodes.Site
245
246 mcord-bbu-multi-nic:
247 type: tosca.nodes.Image
248
249 mcord-vpgwc-onos-multi-nic:
250 type: tosca.nodes.Image
251
252 mysite_management:
253 description: This slice exists solely to own the management network
254 type: tosca.nodes.Slice
255 properties:
256 network: noauto
257 requirements:
258 - site:
259 node: mysite
260 relationship: tosca.relationships.MemberOfSite
261
262 mysite_mobile_net:
263 description: This slice exists solely to own the mobile network
264 type: tosca.nodes.Slice
265 properties:
266 network: noauto
267 requirements:
268 - site:
269 node: mysite
270 relationship: tosca.relationships.MemberOfSite
271
272 mysite_vbbu_slice1:
273 description: vBBU Service Slice 1
274 type: tosca.nodes.Slice
275 requirements:
276 - vBBU:
277 node: vBBU
278 relationship: tosca.relationships.MemberOfService
279 - site:
280 node: mysite
281 relationship: tosca.relationships.MemberOfSite
282 - default_image:
283 node: mcord-bbu-multi-nic
284 relationship: tosca.relationships.DefaultImage
285 - default_flavor:
286 node: m1.xlarge
287 relationship: tosca.relationships.DefaultFlavor
288 - management:
289 node: management
290 relationship: tosca.relationships.ConnectsToNetwork
291 properties:
292 network: noauto
293# default_flavor: m1.xlarge
294 default_node: computeBBU2
295
296 mysite_vpgwc_slice1:
297 description: vPGWC Service Slice 1
298 type: tosca.nodes.Slice
299 requirements:
300 - vPGWC:
301 node: vPGWC
302 relationship: tosca.relationships.MemberOfService
303 - site:
304 node: mysite
305 relationship: tosca.relationships.MemberOfSite
306 - default_image:
307 node: mcord-vpgwc-onos-multi-nic
308 relationship: tosca.relationships.DefaultImage
309 - default_flavor:
310 node: m1.xlarge
311 relationship: tosca.relationships.DefaultFlavor
312 - management:
313 node: management
314 relationship: tosca.relationships.ConnectsToNetwork
315 properties:
316 network: noauto
317 default_node: compute10
Pingping Lineb05ccd2016-09-19 21:23:59 +0000318
Pingping Lin97c12612016-09-19 23:40:53 +0000319 mysite_VPGWC_Component:
320 description: MCORD Service default Component
321 type: tosca.nodes.VPGWCComponent
322 requirements:
323 - provider_service:
324 node: vPGWC
325 relationship: tosca.relationships.MemberOfService
326 - vpgwc_slice:
327 node: mysite_vpgwc_slice1
328 relationship: tosca.relationships.MemberOfSlice
329 properties:
330 display_message: vPGWC looks good!
331 s5s8_pgw_tag: 300
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000332