blob: 5408334a87ecfb0607ac1f95b5b82471a03349b9 [file] [log] [blame]
Andy Bavier536e5e12018-03-15 14:39:30 -07001---
2
3# Copyright 2018-present Open Networking Foundation
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16
17# Default values for the rcord-lite profile.
18# This is a YAML-formatted file.
19# Declare variables to be passed into your templates.
20
21replicaCount: 1
22
23pull_docker_registry:
24
25image:
Andy Bavier9d9ee542018-03-19 13:31:28 -070026 toscaLoader:
27 repository: clue/httpie
28 tag: latest
29 pullPolicy: IfNotPresent
30 rcordSynchronizer:
31 repository: xosproject/rcord-synchronizer
Andy Bavier3e262f22018-03-22 12:24:41 -070032 tag: master
Andy Bavier9d9ee542018-03-19 13:31:28 -070033 pullPolicy: IfNotPresent
Andy Bavier536e5e12018-03-15 14:39:30 -070034
35xosAdminUser: admin@opencord.org
36xosAdminPassword: letmein
37
38# Service-specific configuration.
39addressmanager:
40 serviceConfig:
41 accessor:
42 username: admin@opencord.org
43 password: letmein
44fabric:
45 serviceConfig:
Andy Bavier3e262f22018-03-22 12:24:41 -070046 accessor:
47 username: admin@opencord.org
48 password: letmein
Andy Bavier536e5e12018-03-15 14:39:30 -070049onos-service:
50 serviceConfig:
51 accessor:
52 username: admin@opencord.org
53 password: letmein
54volt:
55 serviceConfig:
56 accessor:
57 username: admin@opencord.org
58 password: letmein
Andy Bavier3e262f22018-03-22 12:24:41 -070059vsg-hw:
60 serviceConfig:
61 accessor:
62 username: admin@opencord.org
63 password: letmein
Andy Bavier536e5e12018-03-15 14:39:30 -070064
Andy Bavier9d9ee542018-03-19 13:31:28 -070065# The R-CORD synchronizer loads R-CORD-specific models into the core
66serviceConfig:
67 name: rcord
68 accessor:
69 username: admin@opencord.org
70 password: letmein
71 endpoint: xos-core:50051
72 dependency_graph: "/opt/xos/synchronizers/rcord/model-deps"
73 sys_dir: "/opt/xos/synchronizers/rcord/sys"
74 models_dir: "/opt/xos/synchronizers/rcord/models"
75 model_policies_dir: "/opt/xos/synchronizers/rcord/model_policies"
76
77# TOSCA recipes for the tosca-loader
Andy Bavier536e5e12018-03-15 14:39:30 -070078toscaRecipes:
79 fixtures:
80 tosca_definitions_version: tosca_simple_yaml_1_0
81 description: Some basic fixtures
82 imports:
83 - custom_types/siterole.yaml
84 - custom_types/slicerole.yaml
85 - custom_types/networkparametertype.yaml
86 - custom_types/networktemplate.yaml
87 topology_template:
88 node_templates:
89 # -----------------------------------------------------------------------------
90 # Network Parameter Types
91 # -----------------------------------------------------------------------------
92 s_tag:
93 type: tosca.nodes.NetworkParameterType
94 properties:
95 name: s_tag
96 c_tag:
97 type: tosca.nodes.NetworkParameterType
98 properties:
99 name: c_tag
100 next_hop:
101 type: tosca.nodes.NetworkParameterType
102 properties:
103 name: next_hop
104 device:
105 type: tosca.nodes.NetworkParameterType
106 properties:
107 name: device
108 bridge:
109 type: tosca.nodes.NetworkParameterType
110 properties:
111 name: bridge
112 neutron_port_name:
113 type: tosca.nodes.NetworkParameterType
114 properties:
115 name: neutron_port_name
116 # ----------------------------------------------------------------------------
117 # Roles
118 # ----------------------------------------------------------------------------
119 siterole#admin:
120 type: tosca.nodes.SiteRole
121 properties:
122 role: admin
123 siterole#pi:
124 type: tosca.nodes.SiteRole
125 properties:
126 role: pi
127 siterole#tech:
128 type: tosca.nodes.SiteRole
129 properties:
130 role: tech
131 slicerole#admin:
132 type: tosca.nodes.SliceRole
133 properties:
134 role: admin
135 slicerole#access:
136 type: tosca.nodes.SliceRole
137 properties:
138 role: access
139 # -----------------------------------------------------------------------------
140 # Network Templates
141 # -----------------------------------------------------------------------------
142 Private:
143 type: tosca.nodes.NetworkTemplate
144 properties:
145 name: Private
146 visibility: private
147 translation: none
148 Public shared IPv4:
149 type: tosca.nodes.NetworkTemplate
150 properties:
151 name: Public shared IPv4
152 visibility: private
153 translation: NAT
154 shared_network_name: nat-net
155 Public dedicated IPv4:
156 type: tosca.nodes.NetworkTemplate
157 properties:
158 name: Public dedicated IPv4
159 visibility: public
160 translation: none
161 shared_network_name: ext-net
162
163 deployment:
164 tosca_definitions_version: tosca_simple_yaml_1_0
165 imports:
166 - custom_types/deployment.yaml
167 description: deployment config, generated by platform-install
168 topology_template:
169 node_templates:
170 MyDeployment:
171 type: tosca.nodes.Deployment
172 properties:
173 name: MyDeployment
174
175 fabricService:
176 tosca_definitions_version: tosca_simple_yaml_1_0
177 imports:
178 - custom_types/onosservice.yaml
179 - custom_types/serviceattribute.yaml
180 - custom_types/fabricservice.yaml
181 - custom_types/onosapp.yaml
182 - custom_types/serviceinstancelink.yaml
183 description: fabric services, generated by rcord profile
184 topology_template:
185 node_templates:
186 service#ONOS_Fabric:
187 type: tosca.nodes.ONOSService
188 properties:
189 name: ONOS_Fabric
190 kind: platform
191 no_container: true
192 rest_hostname: onos-fabric
193 serviceattribute#fabric_network_cfg_json:
194 type: tosca.nodes.ServiceAttribute
195 requirements:
196 - service:
197 node: service#ONOS_Fabric
198 relationship: tosca.relationships.BelongsToOne
199 properties:
200 name: rest_onos/v1/network/configuration/
201 value: ''
202 service#fabric:
203 type: tosca.nodes.FabricService
204 properties:
205 name: fabric
206 kind: platform
207 Fabric_ONOS_app:
208 type: tosca.nodes.ONOSApp
209 requirements:
210 - owner:
211 node: service#ONOS_Fabric
212 relationship: tosca.relationships.BelongsToOne
213 properties:
214 name: Fabric_ONOS_app
215 dependencies: org.onosproject.drivers, org.onosproject.openflow, org.onosproject.netcfghostprovider, org.onosproject.segmentrouting
216 Fabric_ONOS_app_ONOS_Fabric:
217 type: tosca.nodes.ServiceInstanceLink
218 requirements:
219 - provider_service_instance:
220 node: Fabric_ONOS_app
221 relationship: tosca.relationships.BelongsToOne
222 - subscriber_service:
223 node: service#fabric
224 relationship: tosca.relationships.BelongsToOne
225
226 cordServices:
227 tosca_definitions_version: tosca_simple_yaml_1_0
228 description: Set up VOLT, AddressManager, and RCORD services
229 imports:
230 - custom_types/addressmanagerservice.yaml
231 - custom_types/addresspool.yaml
232 - custom_types/image.yaml
233 - custom_types/network.yaml
234 - custom_types/networkslice.yaml
235 - custom_types/networktemplate.yaml
236 - custom_types/nodelabel.yaml
237 - custom_types/onosapp.yaml
238 - custom_types/onosservice.yaml
239 - custom_types/site.yaml
240 - custom_types/service.yaml
241 - custom_types/servicedependency.yaml
242 - custom_types/serviceinstanceattribute.yaml
243 - custom_types/serviceinstancelink.yaml
244 - custom_types/slice.yaml
245 - custom_types/voltservice.yaml
Scott Baker348bd282018-03-20 15:28:50 -0700246 - custom_types/vsghwservice.yaml
Andy Bavier536e5e12018-03-15 14:39:30 -0700247 topology_template:
248 node_templates:
249 service#rcord:
250 type: tosca.nodes.Service
251 properties:
252 name: rcord
253 rcord_volt:
254 type: tosca.nodes.ServiceDependency
255 properties:
256 connect_method: None
257 requirements:
258 - subscriber_service:
259 node: service#rcord
260 relationship: tosca.relationships.BelongsToOne
261 - provider_service:
262 node: service#volt
263 relationship: tosca.relationships.BelongsToOne
264 service#volt:
265 type: tosca.nodes.VOLTService
266 properties:
267 name: volt
268 kind: rcord
Scott Baker348bd282018-03-20 15:28:50 -0700269 service#vsg-hw:
270 type: tosca.nodes.VSGHWService
271 properties:
272 name: vsg-hw
Andy Bavier536e5e12018-03-15 14:39:30 -0700273 service#addressmanager:
274 type: tosca.nodes.AddressManagerService
275 properties:
276 name: addressmanager
Scott Baker348bd282018-03-20 15:28:50 -0700277 volt_vsg-hw:
278 type: tosca.nodes.ServiceDependency
279 properties:
280 connect_method: None
281 requirements:
282 - subscriber_service:
283 node: service#volt
284 relationship: tosca.relationships.BelongsToOne
285 - provider_service:
286 node: service#vsg-hw
287 relationship: tosca.relationships.BelongsToOne
288 vsg-hw_addressmanager:
289 type: tosca.nodes.ServiceDependency
290 properties:
291 connect_method: None
292 requirements:
293 - subscriber_service:
294 node: service#vsg-hw
295 relationship: tosca.relationships.BelongsToOne
296 - provider_service:
297 node: service#addressmanager
298 relationship: tosca.relationships.BelongsToOne
Andy Bavier9d9ee542018-03-19 13:31:28 -0700299
300 serviceGraphConstraints:
301 tosca_definitions_version: tosca_simple_yaml_1_0
302 imports:
303 - custom_types/servicegraphconstraint.yaml
304 description: Constraints on the Services position in the graph
305 topology_template:
306 node_templates:
307 constraints:
308 type: tosca.nodes.ServiceGraphConstraint
309 properties:
Scott Baker348bd282018-03-20 15:28:50 -0700310 constraints: '[[null, "rcord"], [null, "volt"], ["addressmanager", "vsg-hw"]]'