blob: 745b5ac6e7b906f9711401078a1dfbbf90d246b7 [file] [log] [blame]
Matteo Scandolodac281e2017-10-05 17:52:43 -07001# Copyright 2017-present Open Networking Foundation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15
16tosca_definitions_version: tosca_simple_yaml_1_0
17
18description: Persist M-CORD Subscriber
19
20imports:
21 - custom_types/mcordsubscriberservice.yaml
22 - custom_types/venbservice.yaml
23 - custom_types/slice.yaml
24 - custom_types/site.yaml
25 - custom_types/image.yaml
26 - custom_types/servicedependency.yaml
27
28topology_template:
29 node_templates:
30
31 # Site
32 {{ site_humanname | lower }}:
33 type: tosca.nodes.Site
34 properties:
35 must-exist: true
36 name: {{ site_humanname | lower }}
37
38 # Images
39 image#vsg-1.1:
40 type: tosca.nodes.Image
41 properties:
42 must-exist: true
43 name: vsg-1.1
44
45 # M-CORD Subscriber Service
46 mcord:
47 type: tosca.nodes.MCordSubscriberService
48 properties:
49 name: mcord
50
51 # M-CORD vENB Service
52 service#vENB:
53 type: tosca.nodes.VENBService
54 properties:
55 name: vENB
56
57 slice#vENB_slice:
58 type: tosca.nodes.Slice
59 properties:
60 name: {{ site_name }}_vENB_slice
61 requirements:
62 - service:
63 node: service#vENB
64 relationship: tosca.relationships.BelongsToOne
65 - site:
66 node: {{ site_humanname | lower }}
67 relationship: tosca.relationships.BelongsToOne
68 - default_image:
69 node: image#vsg-1.1
70 relationship: tosca.relationships.BelongsToOne
71
72 # ServiceDependency M-CORD to vENB
73 mcord_venb:
74 type: tosca.nodes.ServiceDependency
75 properties:
76 connect_method: None
77 requirements:
78 - subscriber_service:
79 node: mcord
80 relationship: tosca.relationships.BelongsToOne
81 - provider_service:
82 node: service#vENB
83 relationship: tosca.relationships.BelongsToOne