blob: cf65680a2893b5d3b1e0f1a5c2bbd7a5bfc8a2fc [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
Zack Williams9963fe52018-04-03 08:40:26 -070023nameOverride: ""
24fullnameOverride: ""
25
Andy Bavier536e5e12018-03-15 14:39:30 -070026pull_docker_registry:
27
28image:
Andy Bavier9d9ee542018-03-19 13:31:28 -070029 toscaLoader:
30 repository: clue/httpie
31 tag: latest
32 pullPolicy: IfNotPresent
33 rcordSynchronizer:
34 repository: xosproject/rcord-synchronizer
Andy Bavier3e262f22018-03-22 12:24:41 -070035 tag: master
Andy Bavier9d9ee542018-03-19 13:31:28 -070036 pullPolicy: IfNotPresent
Andy Bavier536e5e12018-03-15 14:39:30 -070037
38xosAdminUser: admin@opencord.org
39xosAdminPassword: letmein
40
41# Service-specific configuration.
Andy Bavier536e5e12018-03-15 14:39:30 -070042fabric:
43 serviceConfig:
Andy Bavier3e262f22018-03-22 12:24:41 -070044 accessor:
45 username: admin@opencord.org
46 password: letmein
Andy Bavier536e5e12018-03-15 14:39:30 -070047onos-service:
48 serviceConfig:
49 accessor:
50 username: admin@opencord.org
51 password: letmein
52volt:
53 serviceConfig:
54 accessor:
55 username: admin@opencord.org
56 password: letmein
Andy Bavier3e262f22018-03-22 12:24:41 -070057vsg-hw:
58 serviceConfig:
59 accessor:
60 username: admin@opencord.org
61 password: letmein
Andy Bavier536e5e12018-03-15 14:39:30 -070062
Andy Bavier9d9ee542018-03-19 13:31:28 -070063# The R-CORD synchronizer loads R-CORD-specific models into the core
64serviceConfig:
65 name: rcord
66 accessor:
67 username: admin@opencord.org
68 password: letmein
69 endpoint: xos-core:50051
70 dependency_graph: "/opt/xos/synchronizers/rcord/model-deps"
71 sys_dir: "/opt/xos/synchronizers/rcord/sys"
72 models_dir: "/opt/xos/synchronizers/rcord/models"
73 model_policies_dir: "/opt/xos/synchronizers/rcord/model_policies"
74
75# TOSCA recipes for the tosca-loader
Andy Bavier536e5e12018-03-15 14:39:30 -070076toscaRecipes:
77 fixtures:
78 tosca_definitions_version: tosca_simple_yaml_1_0
79 description: Some basic fixtures
80 imports:
81 - custom_types/siterole.yaml
82 - custom_types/slicerole.yaml
83 - custom_types/networkparametertype.yaml
84 - custom_types/networktemplate.yaml
85 topology_template:
86 node_templates:
87 # -----------------------------------------------------------------------------
88 # Network Parameter Types
89 # -----------------------------------------------------------------------------
90 s_tag:
91 type: tosca.nodes.NetworkParameterType
92 properties:
93 name: s_tag
94 c_tag:
95 type: tosca.nodes.NetworkParameterType
96 properties:
97 name: c_tag
98 next_hop:
99 type: tosca.nodes.NetworkParameterType
100 properties:
101 name: next_hop
102 device:
103 type: tosca.nodes.NetworkParameterType
104 properties:
105 name: device
106 bridge:
107 type: tosca.nodes.NetworkParameterType
108 properties:
109 name: bridge
110 neutron_port_name:
111 type: tosca.nodes.NetworkParameterType
112 properties:
113 name: neutron_port_name
114 # ----------------------------------------------------------------------------
115 # Roles
116 # ----------------------------------------------------------------------------
117 siterole#admin:
118 type: tosca.nodes.SiteRole
119 properties:
120 role: admin
121 siterole#pi:
122 type: tosca.nodes.SiteRole
123 properties:
124 role: pi
125 siterole#tech:
126 type: tosca.nodes.SiteRole
127 properties:
128 role: tech
129 slicerole#admin:
130 type: tosca.nodes.SliceRole
131 properties:
132 role: admin
133 slicerole#access:
134 type: tosca.nodes.SliceRole
135 properties:
136 role: access
137 # -----------------------------------------------------------------------------
138 # Network Templates
139 # -----------------------------------------------------------------------------
140 Private:
141 type: tosca.nodes.NetworkTemplate
142 properties:
143 name: Private
144 visibility: private
145 translation: none
146 Public shared IPv4:
147 type: tosca.nodes.NetworkTemplate
148 properties:
149 name: Public shared IPv4
150 visibility: private
151 translation: NAT
152 shared_network_name: nat-net
153 Public dedicated IPv4:
154 type: tosca.nodes.NetworkTemplate
155 properties:
156 name: Public dedicated IPv4
157 visibility: public
158 translation: none
159 shared_network_name: ext-net
160
161 deployment:
162 tosca_definitions_version: tosca_simple_yaml_1_0
163 imports:
164 - custom_types/deployment.yaml
165 description: deployment config, generated by platform-install
166 topology_template:
167 node_templates:
168 MyDeployment:
169 type: tosca.nodes.Deployment
170 properties:
171 name: MyDeployment
172
173 fabricService:
174 tosca_definitions_version: tosca_simple_yaml_1_0
175 imports:
176 - custom_types/onosservice.yaml
177 - custom_types/serviceattribute.yaml
178 - custom_types/fabricservice.yaml
179 - custom_types/onosapp.yaml
180 - custom_types/serviceinstancelink.yaml
181 description: fabric services, generated by rcord profile
182 topology_template:
183 node_templates:
184 service#ONOS_Fabric:
185 type: tosca.nodes.ONOSService
186 properties:
187 name: ONOS_Fabric
188 kind: platform
189 no_container: true
Matteo Scandolo18daed22018-04-11 13:27:32 -0700190 rest_hostname: onos-fabric-ui
191 rest_port: 8181
Andy Bavier536e5e12018-03-15 14:39:30 -0700192 serviceattribute#fabric_network_cfg_json:
193 type: tosca.nodes.ServiceAttribute
194 requirements:
195 - service:
196 node: service#ONOS_Fabric
197 relationship: tosca.relationships.BelongsToOne
198 properties:
199 name: rest_onos/v1/network/configuration/
Andy Bavierd5b4ee82018-03-22 17:47:33 -0700200 value: '{}'
Andy Bavier536e5e12018-03-15 14:39:30 -0700201 service#fabric:
202 type: tosca.nodes.FabricService
203 properties:
204 name: fabric
205 kind: platform
206 Fabric_ONOS_app:
207 type: tosca.nodes.ONOSApp
208 requirements:
209 - owner:
210 node: service#ONOS_Fabric
211 relationship: tosca.relationships.BelongsToOne
212 properties:
213 name: Fabric_ONOS_app
214 dependencies: org.onosproject.drivers, org.onosproject.openflow, org.onosproject.netcfghostprovider, org.onosproject.segmentrouting
215 Fabric_ONOS_app_ONOS_Fabric:
216 type: tosca.nodes.ServiceInstanceLink
217 requirements:
218 - provider_service_instance:
219 node: Fabric_ONOS_app
220 relationship: tosca.relationships.BelongsToOne
221 - subscriber_service:
222 node: service#fabric
223 relationship: tosca.relationships.BelongsToOne
224
225 cordServices:
226 tosca_definitions_version: tosca_simple_yaml_1_0
227 description: Set up VOLT, AddressManager, and RCORD services
228 imports:
Andy Bavier536e5e12018-03-15 14:39:30 -0700229 - custom_types/image.yaml
230 - custom_types/network.yaml
231 - custom_types/networkslice.yaml
232 - custom_types/networktemplate.yaml
233 - custom_types/nodelabel.yaml
234 - custom_types/onosapp.yaml
235 - custom_types/onosservice.yaml
236 - custom_types/site.yaml
237 - custom_types/service.yaml
238 - custom_types/servicedependency.yaml
239 - custom_types/serviceinstanceattribute.yaml
240 - custom_types/serviceinstancelink.yaml
241 - custom_types/slice.yaml
242 - custom_types/voltservice.yaml
Matteo Scandolo62476552018-04-12 11:05:59 -0700243 - custom_types/vrouterservice.yaml
Scott Baker348bd282018-03-20 15:28:50 -0700244 - custom_types/vsghwservice.yaml
Andy Bavier536e5e12018-03-15 14:39:30 -0700245 topology_template:
246 node_templates:
Matteo Scandolo18daed22018-04-11 13:27:32 -0700247 service#ONOS_Fabric:
248 type: tosca.nodes.ONOSService
249 properties:
250 name: ONOS_Fabric
251 must-exist: true
Andy Bavier536e5e12018-03-15 14:39:30 -0700252 service#rcord:
253 type: tosca.nodes.Service
254 properties:
255 name: rcord
256 rcord_volt:
257 type: tosca.nodes.ServiceDependency
258 properties:
259 connect_method: None
260 requirements:
261 - subscriber_service:
262 node: service#rcord
263 relationship: tosca.relationships.BelongsToOne
264 - provider_service:
265 node: service#volt
266 relationship: tosca.relationships.BelongsToOne
267 service#volt:
268 type: tosca.nodes.VOLTService
269 properties:
270 name: volt
271 kind: rcord
Scott Baker348bd282018-03-20 15:28:50 -0700272 service#vsg-hw:
273 type: tosca.nodes.VSGHWService
274 properties:
275 name: vsg-hw
Matteo Scandolo62476552018-04-12 11:05:59 -0700276 service#vrouter:
277 type: tosca.nodes.VRouterService
278 properties:
279 name: vrouter
280 kind: rcord
281 rest_hostname: onos-fabric-ui
282 rest_port: 8181
283 rest_user: karaf
284 rest_pass: karaf
Scott Baker348bd282018-03-20 15:28:50 -0700285 volt_vsg-hw:
286 type: tosca.nodes.ServiceDependency
287 properties:
288 connect_method: None
289 requirements:
290 - subscriber_service:
291 node: service#volt
292 relationship: tosca.relationships.BelongsToOne
293 - provider_service:
294 node: service#vsg-hw
295 relationship: tosca.relationships.BelongsToOne
Matteo Scandolo18daed22018-04-11 13:27:32 -0700296 onos_fabric_vsg-hw:
Scott Baker348bd282018-03-20 15:28:50 -0700297 type: tosca.nodes.ServiceDependency
298 properties:
299 connect_method: None
300 requirements:
301 - subscriber_service:
302 node: service#vsg-hw
303 relationship: tosca.relationships.BelongsToOne
304 - provider_service:
Matteo Scandolo18daed22018-04-11 13:27:32 -0700305 node: service#ONOS_Fabric
Scott Baker348bd282018-03-20 15:28:50 -0700306 relationship: tosca.relationships.BelongsToOne
Matteo Scandolo62476552018-04-12 11:05:59 -0700307 vsg-hw_vrouter:
308 type: tosca.nodes.ServiceDependency
309 properties:
310 connect_method: None
311 requirements:
312 - subscriber_service:
313 node: service#vsg-hw
314 relationship: tosca.relationships.BelongsToOne
315 - provider_service:
316 node: service#vrouter
317 relationship: tosca.relationships.BelongsToOne
Andy Bavier9d9ee542018-03-19 13:31:28 -0700318
319 serviceGraphConstraints:
320 tosca_definitions_version: tosca_simple_yaml_1_0
321 imports:
322 - custom_types/servicegraphconstraint.yaml
323 description: Constraints on the Services position in the graph
324 topology_template:
325 node_templates:
326 constraints:
327 type: tosca.nodes.ServiceGraphConstraint
328 properties:
Matteo Scandolo62476552018-04-12 11:05:59 -0700329 constraints: '[[null, "rcord"], [null, "volt"], ["ONOS_Fabric", "vsg-hw"], [null, "vrouter"]]'