blob: 3a4974faa68231ca7b2d6857079376216f59b33a [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.
42addressmanager:
43 serviceConfig:
44 accessor:
45 username: admin@opencord.org
46 password: letmein
47fabric:
48 serviceConfig:
Andy Bavier3e262f22018-03-22 12:24:41 -070049 accessor:
50 username: admin@opencord.org
51 password: letmein
Andy Bavier536e5e12018-03-15 14:39:30 -070052onos-service:
53 serviceConfig:
54 accessor:
55 username: admin@opencord.org
56 password: letmein
57volt:
58 serviceConfig:
59 accessor:
60 username: admin@opencord.org
61 password: letmein
Andy Bavier3e262f22018-03-22 12:24:41 -070062vsg-hw:
63 serviceConfig:
64 accessor:
65 username: admin@opencord.org
66 password: letmein
Andy Bavier536e5e12018-03-15 14:39:30 -070067
Andy Bavier9d9ee542018-03-19 13:31:28 -070068# The R-CORD synchronizer loads R-CORD-specific models into the core
69serviceConfig:
70 name: rcord
71 accessor:
72 username: admin@opencord.org
73 password: letmein
74 endpoint: xos-core:50051
75 dependency_graph: "/opt/xos/synchronizers/rcord/model-deps"
76 sys_dir: "/opt/xos/synchronizers/rcord/sys"
77 models_dir: "/opt/xos/synchronizers/rcord/models"
78 model_policies_dir: "/opt/xos/synchronizers/rcord/model_policies"
79
80# TOSCA recipes for the tosca-loader
Andy Bavier536e5e12018-03-15 14:39:30 -070081toscaRecipes:
82 fixtures:
83 tosca_definitions_version: tosca_simple_yaml_1_0
84 description: Some basic fixtures
85 imports:
86 - custom_types/siterole.yaml
87 - custom_types/slicerole.yaml
88 - custom_types/networkparametertype.yaml
89 - custom_types/networktemplate.yaml
90 topology_template:
91 node_templates:
92 # -----------------------------------------------------------------------------
93 # Network Parameter Types
94 # -----------------------------------------------------------------------------
95 s_tag:
96 type: tosca.nodes.NetworkParameterType
97 properties:
98 name: s_tag
99 c_tag:
100 type: tosca.nodes.NetworkParameterType
101 properties:
102 name: c_tag
103 next_hop:
104 type: tosca.nodes.NetworkParameterType
105 properties:
106 name: next_hop
107 device:
108 type: tosca.nodes.NetworkParameterType
109 properties:
110 name: device
111 bridge:
112 type: tosca.nodes.NetworkParameterType
113 properties:
114 name: bridge
115 neutron_port_name:
116 type: tosca.nodes.NetworkParameterType
117 properties:
118 name: neutron_port_name
119 # ----------------------------------------------------------------------------
120 # Roles
121 # ----------------------------------------------------------------------------
122 siterole#admin:
123 type: tosca.nodes.SiteRole
124 properties:
125 role: admin
126 siterole#pi:
127 type: tosca.nodes.SiteRole
128 properties:
129 role: pi
130 siterole#tech:
131 type: tosca.nodes.SiteRole
132 properties:
133 role: tech
134 slicerole#admin:
135 type: tosca.nodes.SliceRole
136 properties:
137 role: admin
138 slicerole#access:
139 type: tosca.nodes.SliceRole
140 properties:
141 role: access
142 # -----------------------------------------------------------------------------
143 # Network Templates
144 # -----------------------------------------------------------------------------
145 Private:
146 type: tosca.nodes.NetworkTemplate
147 properties:
148 name: Private
149 visibility: private
150 translation: none
151 Public shared IPv4:
152 type: tosca.nodes.NetworkTemplate
153 properties:
154 name: Public shared IPv4
155 visibility: private
156 translation: NAT
157 shared_network_name: nat-net
158 Public dedicated IPv4:
159 type: tosca.nodes.NetworkTemplate
160 properties:
161 name: Public dedicated IPv4
162 visibility: public
163 translation: none
164 shared_network_name: ext-net
165
166 deployment:
167 tosca_definitions_version: tosca_simple_yaml_1_0
168 imports:
169 - custom_types/deployment.yaml
170 description: deployment config, generated by platform-install
171 topology_template:
172 node_templates:
173 MyDeployment:
174 type: tosca.nodes.Deployment
175 properties:
176 name: MyDeployment
177
178 fabricService:
179 tosca_definitions_version: tosca_simple_yaml_1_0
180 imports:
181 - custom_types/onosservice.yaml
182 - custom_types/serviceattribute.yaml
183 - custom_types/fabricservice.yaml
184 - custom_types/onosapp.yaml
185 - custom_types/serviceinstancelink.yaml
186 description: fabric services, generated by rcord profile
187 topology_template:
188 node_templates:
189 service#ONOS_Fabric:
190 type: tosca.nodes.ONOSService
191 properties:
192 name: ONOS_Fabric
193 kind: platform
194 no_container: true
195 rest_hostname: onos-fabric
196 serviceattribute#fabric_network_cfg_json:
197 type: tosca.nodes.ServiceAttribute
198 requirements:
199 - service:
200 node: service#ONOS_Fabric
201 relationship: tosca.relationships.BelongsToOne
202 properties:
203 name: rest_onos/v1/network/configuration/
Andy Bavierd5b4ee82018-03-22 17:47:33 -0700204 value: '{}'
Andy Bavier536e5e12018-03-15 14:39:30 -0700205 service#fabric:
206 type: tosca.nodes.FabricService
207 properties:
208 name: fabric
209 kind: platform
210 Fabric_ONOS_app:
211 type: tosca.nodes.ONOSApp
212 requirements:
213 - owner:
214 node: service#ONOS_Fabric
215 relationship: tosca.relationships.BelongsToOne
216 properties:
217 name: Fabric_ONOS_app
218 dependencies: org.onosproject.drivers, org.onosproject.openflow, org.onosproject.netcfghostprovider, org.onosproject.segmentrouting
219 Fabric_ONOS_app_ONOS_Fabric:
220 type: tosca.nodes.ServiceInstanceLink
221 requirements:
222 - provider_service_instance:
223 node: Fabric_ONOS_app
224 relationship: tosca.relationships.BelongsToOne
225 - subscriber_service:
226 node: service#fabric
227 relationship: tosca.relationships.BelongsToOne
228
229 cordServices:
230 tosca_definitions_version: tosca_simple_yaml_1_0
231 description: Set up VOLT, AddressManager, and RCORD services
232 imports:
233 - custom_types/addressmanagerservice.yaml
234 - custom_types/addresspool.yaml
235 - custom_types/image.yaml
236 - custom_types/network.yaml
237 - custom_types/networkslice.yaml
238 - custom_types/networktemplate.yaml
239 - custom_types/nodelabel.yaml
240 - custom_types/onosapp.yaml
241 - custom_types/onosservice.yaml
242 - custom_types/site.yaml
243 - custom_types/service.yaml
244 - custom_types/servicedependency.yaml
245 - custom_types/serviceinstanceattribute.yaml
246 - custom_types/serviceinstancelink.yaml
247 - custom_types/slice.yaml
248 - custom_types/voltservice.yaml
Scott Baker348bd282018-03-20 15:28:50 -0700249 - custom_types/vsghwservice.yaml
Andy Bavier536e5e12018-03-15 14:39:30 -0700250 topology_template:
251 node_templates:
252 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
Andy Bavier536e5e12018-03-15 14:39:30 -0700276 service#addressmanager:
277 type: tosca.nodes.AddressManagerService
278 properties:
279 name: addressmanager
Scott Baker348bd282018-03-20 15:28:50 -0700280 volt_vsg-hw:
281 type: tosca.nodes.ServiceDependency
282 properties:
283 connect_method: None
284 requirements:
285 - subscriber_service:
286 node: service#volt
287 relationship: tosca.relationships.BelongsToOne
288 - provider_service:
289 node: service#vsg-hw
290 relationship: tosca.relationships.BelongsToOne
291 vsg-hw_addressmanager:
292 type: tosca.nodes.ServiceDependency
293 properties:
294 connect_method: None
295 requirements:
296 - subscriber_service:
297 node: service#vsg-hw
298 relationship: tosca.relationships.BelongsToOne
299 - provider_service:
300 node: service#addressmanager
301 relationship: tosca.relationships.BelongsToOne
Andy Bavier9d9ee542018-03-19 13:31:28 -0700302
303 serviceGraphConstraints:
304 tosca_definitions_version: tosca_simple_yaml_1_0
305 imports:
306 - custom_types/servicegraphconstraint.yaml
307 description: Constraints on the Services position in the graph
308 topology_template:
309 node_templates:
310 constraints:
311 type: tosca.nodes.ServiceGraphConstraint
312 properties:
Scott Baker348bd282018-03-20 15:28:50 -0700313 constraints: '[[null, "rcord"], [null, "volt"], ["addressmanager", "vsg-hw"]]'