blob: ee535e37e0e321a1b9e5b24713d8b4cae0a929d2 [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: 201
78 description: VTN stag port-name
79 s1mme_tag:
80 type: string
81 required: false
82 default: 200
83 description: VTN stag port-name
84 rru_tag:
85 type: string
86 required: false
87 default: 199
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
96topology_template:
97 node_templates:
98 vBBU:
99 type: tosca.nodes.MCORDService
100 requirements:
101 properties:
102 kind: RAN
103 icon_url: /static/mCordServices/service_server.png
104 view_url: /admin/mcord/vbbucomponent
105 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
106 private_key_fn: /opt/xos/configurations/mcord/mcord_private_key
107 artifacts:
108 pubkey: /opt/xos/configurations/mcord/mcord_public_key
109
110
111 Private:
112 type: tosca.nodes.NetworkTemplate
113
114 External:
115 type: tosca.nodes.NetworkTemplate
116
117 management_template:
118 type: tosca.nodes.NetworkTemplate
119 properties:
120 visibility: private
121 translation: none
122
123 management:
124 type: tosca.nodes.network.Network.XOS
125# properties:
126# no-create: true
127# no-delete: true
128# no-update: true
129
130 lan_3gpp_s1mme_network:
131 type: tosca.nodes.network.Network.XOS
132 properties:
133 ip_version: 4
134 labels: lan_3gpp_s1uc_net
135 cidr: 172.16.1.0/24
136 start_ip: 172.16.1.3
137 end_ip: 172.16.1.12
138 gateway_ip: 172.16.1.1
139 requirements:
140 - network_template:
141 node: External
142 relationship: tosca.relationships.UsesNetworkTemplate
143 - owner:
144 node: mysite_mobile_net
145 relationship: tosca.relationships.MemberOfSlice
146 - connection:
147 node: mysite_vbbu_slice1
148 relationship: tosca.relationships.ConnectsToSlice
149
150 lan_3gpp_s1u_network:
151 type: tosca.nodes.network.Network.XOS
152 properties:
153 ip_version: 4
154 labels: lan_3gpp_s1u_net
155 cidr: 172.16.2.0/24
156 start_ip: 172.16.2.3
157 end_ip: 172.16.2.12
158 gateway_ip: 172.16.16.1
159 requirements:
160 - network_template:
161 node: External
162 relationship: tosca.relationships.UsesNetworkTemplate
163 - owner:
164 node: mysite_mobile_net
165 relationship: tosca.relationships.MemberOfSlice
166 - connection:
167 node: mysite_vbbu_slice1
168 relationship: tosca.relationships.ConnectsToSlice
169
170 lan_rru_network:
171 type: tosca.nodes.network.Network.XOS
172 properties:
173 ip_version: 4
174 labels: lan_rru_net
175 cidr: 172.16.0.0/24
176 start_ip: 172.16.0.3
177 end_ip: 172.16.0.12
178 gateway_ip: 172.16.0.1
179 requirements:
180 - network_template:
181 node: External
182 relationship: tosca.relationships.UsesNetworkTemplate
183 - owner:
184 node: mysite_mobile_net
185 relationship: tosca.relationships.MemberOfSlice
186 - connection:
187 node: mysite_vbbu_slice1
188 relationship: tosca.relationships.ConnectsToSlice
189
190 mysite:
191 type: tosca.nodes.Site
192
193 mcord-bbu-multi-nic:
194 type: tosca.nodes.Image
195
196 mysite_management:
197 description: This slice exists solely to own the management network
198 type: tosca.nodes.Slice
199 properties:
200 network: noauto
201 requirements:
202 - site:
203 node: mysite
204 relationship: tosca.relationships.MemberOfSite
205
206 mysite_mobile_net:
207 description: This slice exists solely to own the mobile network
208 type: tosca.nodes.Slice
209 properties:
210 network: noauto
211 requirements:
212 - site:
213 node: mysite
214 relationship: tosca.relationships.MemberOfSite
215
216 mysite_vbbu_slice1:
217 description: vBBU Service Slice 1
218 type: tosca.nodes.Slice
219 requirements:
220 - vBBU:
221 node: vBBU
222 relationship: tosca.relationships.MemberOfService
223 - site:
224 node: mysite
225 relationship: tosca.relationships.MemberOfSite
226 - default_image:
227 node: mcord-bbu-multi-nic
228 relationship: tosca.relationships.DefaultImage
229 - management:
230 node: management
231 relationship: tosca.relationships.ConnectsToNetwork
232 properties:
233 network: noauto
234 default_flavor: m1.xlarge
235 default_node: computeBBU2
236
237 mysite_VBBU_Component:
238 description: MCORD Service default Component
239 type: tosca.nodes.VBBUComponent
240 requirements:
241 - provider_service:
242 node: vBBU
243 relationship: tosca.relationships.MemberOfService
244 - vbbu_slice:
245 node: mysite_vbbu_slice1
246 relationship: tosca.relationships.MemberOfSlice
247 properties:
248 display_message: vBBU looks good!
249 s1u_tag: 201
250 s1mme_tag: 200
251 rru_tag: 199