blob: 7367f04343551e88f4d641f2399af218266a1314 [file] [log] [blame]
Andy Bavier536e5e12018-03-15 14:39:30 -07001---
Andy Bavier536e5e12018-03-15 14:39:30 -07002# Copyright 2018-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16# Default values for the rcord-lite profile.
17# This is a YAML-formatted file.
18# Declare variables to be passed into your templates.
19
20replicaCount: 1
21
Zack Williams9963fe52018-04-03 08:40:26 -070022nameOverride: ""
23fullnameOverride: ""
24
Zack Williams3432b942018-04-24 17:46:41 -070025imagePullPolicy: 'IfNotPresent'
Andy Bavier536e5e12018-03-15 14:39:30 -070026
Zack Williams3432b942018-04-24 17:46:41 -070027rcord_synchronizerImage: "xosproject/rcord-synchronizer:master"
28httpieImage: "clue/httpie:latest"
Andy Bavier536e5e12018-03-15 14:39:30 -070029
Zack Williams3432b942018-04-24 17:46:41 -070030xosAdminUser: "admin@opencord.org"
31xosAdminPassword: "letmein"
Andy Bavier9d9ee542018-03-19 13:31:28 -070032
33# TOSCA recipes for the tosca-loader
Andy Bavier536e5e12018-03-15 14:39:30 -070034toscaRecipes:
35 fixtures:
36 tosca_definitions_version: tosca_simple_yaml_1_0
37 description: Some basic fixtures
38 imports:
39 - custom_types/siterole.yaml
40 - custom_types/slicerole.yaml
41 - custom_types/networkparametertype.yaml
42 - custom_types/networktemplate.yaml
43 topology_template:
44 node_templates:
45 # -----------------------------------------------------------------------------
46 # Network Parameter Types
47 # -----------------------------------------------------------------------------
48 s_tag:
49 type: tosca.nodes.NetworkParameterType
50 properties:
51 name: s_tag
52 c_tag:
53 type: tosca.nodes.NetworkParameterType
54 properties:
55 name: c_tag
56 next_hop:
57 type: tosca.nodes.NetworkParameterType
58 properties:
59 name: next_hop
60 device:
61 type: tosca.nodes.NetworkParameterType
62 properties:
63 name: device
64 bridge:
65 type: tosca.nodes.NetworkParameterType
66 properties:
67 name: bridge
68 neutron_port_name:
69 type: tosca.nodes.NetworkParameterType
70 properties:
71 name: neutron_port_name
72 # ----------------------------------------------------------------------------
73 # Roles
74 # ----------------------------------------------------------------------------
75 siterole#admin:
76 type: tosca.nodes.SiteRole
77 properties:
78 role: admin
79 siterole#pi:
80 type: tosca.nodes.SiteRole
81 properties:
82 role: pi
83 siterole#tech:
84 type: tosca.nodes.SiteRole
85 properties:
86 role: tech
87 slicerole#admin:
88 type: tosca.nodes.SliceRole
89 properties:
90 role: admin
91 slicerole#access:
92 type: tosca.nodes.SliceRole
93 properties:
94 role: access
95 # -----------------------------------------------------------------------------
96 # Network Templates
97 # -----------------------------------------------------------------------------
98 Private:
99 type: tosca.nodes.NetworkTemplate
100 properties:
101 name: Private
102 visibility: private
103 translation: none
104 Public shared IPv4:
105 type: tosca.nodes.NetworkTemplate
106 properties:
107 name: Public shared IPv4
108 visibility: private
109 translation: NAT
110 shared_network_name: nat-net
111 Public dedicated IPv4:
112 type: tosca.nodes.NetworkTemplate
113 properties:
114 name: Public dedicated IPv4
115 visibility: public
116 translation: none
117 shared_network_name: ext-net
118
119 deployment:
120 tosca_definitions_version: tosca_simple_yaml_1_0
121 imports:
122 - custom_types/deployment.yaml
123 description: deployment config, generated by platform-install
124 topology_template:
125 node_templates:
126 MyDeployment:
127 type: tosca.nodes.Deployment
128 properties:
129 name: MyDeployment
130
131 fabricService:
132 tosca_definitions_version: tosca_simple_yaml_1_0
133 imports:
Andy Bavier536e5e12018-03-15 14:39:30 -0700134 - custom_types/fabricservice.yaml
135 - custom_types/onosapp.yaml
Matteo Scandolof27d5882018-05-01 15:17:43 -0700136 - custom_types/onosservice.yaml
137 - custom_types/serviceattribute.yaml
138 - custom_types/servicedependency.yaml
Andy Bavier536e5e12018-03-15 14:39:30 -0700139 - custom_types/serviceinstancelink.yaml
140 description: fabric services, generated by rcord profile
141 topology_template:
142 node_templates:
143 service#ONOS_Fabric:
144 type: tosca.nodes.ONOSService
145 properties:
146 name: ONOS_Fabric
147 kind: platform
148 no_container: true
Matteo Scandolo18daed22018-04-11 13:27:32 -0700149 rest_hostname: onos-fabric-ui
150 rest_port: 8181
Andy Bavier536e5e12018-03-15 14:39:30 -0700151 service#fabric:
152 type: tosca.nodes.FabricService
153 properties:
154 name: fabric
155 kind: platform
156 Fabric_ONOS_app:
157 type: tosca.nodes.ONOSApp
158 requirements:
159 - owner:
160 node: service#ONOS_Fabric
161 relationship: tosca.relationships.BelongsToOne
162 properties:
163 name: Fabric_ONOS_app
Luca Prete9c405c22018-05-03 17:59:41 -0700164 dependencies: org.onosproject.drivers, org.onosproject.openflow, org.onosproject.netcfghostprovider, org.onosproject.segmentrouting, org.onosproject.vrouter
Matteo Scandolof27d5882018-05-01 15:17:43 -0700165 service_dependency#onos-fabric_fabric:
166 type: tosca.nodes.ServiceDependency
167 properties:
168 connect_method: None
169 requirements:
170 - subscriber_service:
171 node: service#ONOS_Fabric
172 relationship: tosca.relationships.BelongsToOne
173 - provider_service:
174 node: service#fabric
175 relationship: tosca.relationships.BelongsToOne
Andy Bavier536e5e12018-03-15 14:39:30 -0700176
177 cordServices:
178 tosca_definitions_version: tosca_simple_yaml_1_0
179 description: Set up VOLT, AddressManager, and RCORD services
180 imports:
Matteo Scandolof27d5882018-05-01 15:17:43 -0700181 - custom_types/fabricservice.yaml
Andy Bavier536e5e12018-03-15 14:39:30 -0700182 - custom_types/image.yaml
Scott Baker0219e692018-04-10 07:50:23 -0700183 - custom_types/kubernetesservice.yaml
Andy Bavier536e5e12018-03-15 14:39:30 -0700184 - custom_types/network.yaml
185 - custom_types/networkslice.yaml
186 - custom_types/networktemplate.yaml
187 - custom_types/nodelabel.yaml
188 - custom_types/onosapp.yaml
189 - custom_types/onosservice.yaml
190 - custom_types/site.yaml
191 - custom_types/service.yaml
192 - custom_types/servicedependency.yaml
193 - custom_types/serviceinstanceattribute.yaml
194 - custom_types/serviceinstancelink.yaml
195 - custom_types/slice.yaml
196 - custom_types/voltservice.yaml
Matteo Scandolo62476552018-04-12 11:05:59 -0700197 - custom_types/vrouterservice.yaml
Scott Baker348bd282018-03-20 15:28:50 -0700198 - custom_types/vsghwservice.yaml
Andy Bavier536e5e12018-03-15 14:39:30 -0700199 topology_template:
200 node_templates:
Matteo Scandolo18daed22018-04-11 13:27:32 -0700201 service#ONOS_Fabric:
202 type: tosca.nodes.ONOSService
203 properties:
204 name: ONOS_Fabric
205 must-exist: true
Matteo Scandolof27d5882018-05-01 15:17:43 -0700206 service#fabric:
207 type: tosca.nodes.FabricService
208 properties:
209 name: fabric
210 must-exist: true
Andy Bavier536e5e12018-03-15 14:39:30 -0700211 service#rcord:
212 type: tosca.nodes.Service
213 properties:
214 name: rcord
215 rcord_volt:
216 type: tosca.nodes.ServiceDependency
217 properties:
218 connect_method: None
219 requirements:
220 - subscriber_service:
221 node: service#rcord
222 relationship: tosca.relationships.BelongsToOne
223 - provider_service:
224 node: service#volt
225 relationship: tosca.relationships.BelongsToOne
Scott Baker0219e692018-04-10 07:50:23 -0700226 service#kubernetes:
227 type: tosca.nodes.KubernetesService
228 properties:
229 name: kubernetes
Andy Bavier536e5e12018-03-15 14:39:30 -0700230 service#volt:
231 type: tosca.nodes.VOLTService
232 properties:
233 name: volt
Matteo Scandolo4cb70eb2018-05-04 14:11:52 -0700234 voltha_url: voltha.voltha.svc.cluster.local
235 voltha_port: 8882
236 onos_voltha_url: onos-voltha-ui.voltha.svc.cluster.local
237 onos_voltha_port: 8181
238 onos_voltha_user: karaf
239 onos_voltha_pass: karaf
Scott Baker348bd282018-03-20 15:28:50 -0700240 service#vsg-hw:
241 type: tosca.nodes.VSGHWService
242 properties:
243 name: vsg-hw
Matteo Scandolo62476552018-04-12 11:05:59 -0700244 service#vrouter:
245 type: tosca.nodes.VRouterService
246 properties:
247 name: vrouter
248 kind: rcord
Matteo Scandolof27d5882018-05-01 15:17:43 -0700249 service_dependency#fabric_vrouter:
250 type: tosca.nodes.ServiceDependency
251 properties:
252 connect_method: None
253 requirements:
254 - subscriber_service:
255 node: service#fabric
256 relationship: tosca.relationships.BelongsToOne
257 - provider_service:
258 node: service#vrouter
259 relationship: tosca.relationships.BelongsToOne
Scott Baker348bd282018-03-20 15:28:50 -0700260 volt_vsg-hw:
261 type: tosca.nodes.ServiceDependency
262 properties:
263 connect_method: None
264 requirements:
265 - subscriber_service:
266 node: service#volt
267 relationship: tosca.relationships.BelongsToOne
268 - provider_service:
269 node: service#vsg-hw
270 relationship: tosca.relationships.BelongsToOne
Matteo Scandolo18daed22018-04-11 13:27:32 -0700271 onos_fabric_vsg-hw:
Scott Baker348bd282018-03-20 15:28:50 -0700272 type: tosca.nodes.ServiceDependency
273 properties:
274 connect_method: None
275 requirements:
276 - subscriber_service:
277 node: service#vsg-hw
278 relationship: tosca.relationships.BelongsToOne
279 - provider_service:
Matteo Scandolo18daed22018-04-11 13:27:32 -0700280 node: service#ONOS_Fabric
Scott Baker348bd282018-03-20 15:28:50 -0700281 relationship: tosca.relationships.BelongsToOne
Andy Bavier9d9ee542018-03-19 13:31:28 -0700282
283 serviceGraphConstraints:
284 tosca_definitions_version: tosca_simple_yaml_1_0
285 imports:
286 - custom_types/servicegraphconstraint.yaml
287 description: Constraints on the Services position in the graph
288 topology_template:
289 node_templates:
290 constraints:
291 type: tosca.nodes.ServiceGraphConstraint
292 properties:
Matteo Scandolof27d5882018-05-01 15:17:43 -0700293 constraints: '[[null, "rcord"], [null, "volt"], ["ONOS_Fabric", "vsg-hw"], ["fabric", null], ["vrouter", null]]'