Andy Bavier | 536e5e1 | 2018-03-15 14:39:30 -0700 | [diff] [blame] | 1 | --- |
Andy Bavier | 536e5e1 | 2018-03-15 14:39:30 -0700 | [diff] [blame] | 2 | # 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 | |
| 20 | replicaCount: 1 |
| 21 | |
Zack Williams | 9963fe5 | 2018-04-03 08:40:26 -0700 | [diff] [blame] | 22 | nameOverride: "" |
| 23 | fullnameOverride: "" |
| 24 | |
Zack Williams | 3432b94 | 2018-04-24 17:46:41 -0700 | [diff] [blame] | 25 | imagePullPolicy: 'IfNotPresent' |
Andy Bavier | 536e5e1 | 2018-03-15 14:39:30 -0700 | [diff] [blame] | 26 | |
Zack Williams | 3432b94 | 2018-04-24 17:46:41 -0700 | [diff] [blame] | 27 | rcord_synchronizerImage: "xosproject/rcord-synchronizer:master" |
| 28 | httpieImage: "clue/httpie:latest" |
Andy Bavier | 536e5e1 | 2018-03-15 14:39:30 -0700 | [diff] [blame] | 29 | |
Zack Williams | 3432b94 | 2018-04-24 17:46:41 -0700 | [diff] [blame] | 30 | xosAdminUser: "admin@opencord.org" |
| 31 | xosAdminPassword: "letmein" |
Andy Bavier | 9d9ee54 | 2018-03-19 13:31:28 -0700 | [diff] [blame] | 32 | |
| 33 | # TOSCA recipes for the tosca-loader |
Andy Bavier | 536e5e1 | 2018-03-15 14:39:30 -0700 | [diff] [blame] | 34 | toscaRecipes: |
| 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: |
| 134 | - custom_types/onosservice.yaml |
| 135 | - custom_types/serviceattribute.yaml |
| 136 | - custom_types/fabricservice.yaml |
| 137 | - custom_types/onosapp.yaml |
| 138 | - custom_types/serviceinstancelink.yaml |
| 139 | description: fabric services, generated by rcord profile |
| 140 | topology_template: |
| 141 | node_templates: |
| 142 | service#ONOS_Fabric: |
| 143 | type: tosca.nodes.ONOSService |
| 144 | properties: |
| 145 | name: ONOS_Fabric |
| 146 | kind: platform |
| 147 | no_container: true |
Matteo Scandolo | 18daed2 | 2018-04-11 13:27:32 -0700 | [diff] [blame] | 148 | rest_hostname: onos-fabric-ui |
| 149 | rest_port: 8181 |
Andy Bavier | 536e5e1 | 2018-03-15 14:39:30 -0700 | [diff] [blame] | 150 | serviceattribute#fabric_network_cfg_json: |
| 151 | type: tosca.nodes.ServiceAttribute |
| 152 | requirements: |
| 153 | - service: |
| 154 | node: service#ONOS_Fabric |
| 155 | relationship: tosca.relationships.BelongsToOne |
| 156 | properties: |
| 157 | name: rest_onos/v1/network/configuration/ |
Andy Bavier | d5b4ee8 | 2018-03-22 17:47:33 -0700 | [diff] [blame] | 158 | value: '{}' |
Andy Bavier | 536e5e1 | 2018-03-15 14:39:30 -0700 | [diff] [blame] | 159 | service#fabric: |
| 160 | type: tosca.nodes.FabricService |
| 161 | properties: |
| 162 | name: fabric |
| 163 | kind: platform |
| 164 | Fabric_ONOS_app: |
| 165 | type: tosca.nodes.ONOSApp |
| 166 | requirements: |
| 167 | - owner: |
| 168 | node: service#ONOS_Fabric |
| 169 | relationship: tosca.relationships.BelongsToOne |
| 170 | properties: |
| 171 | name: Fabric_ONOS_app |
| 172 | dependencies: org.onosproject.drivers, org.onosproject.openflow, org.onosproject.netcfghostprovider, org.onosproject.segmentrouting |
| 173 | Fabric_ONOS_app_ONOS_Fabric: |
| 174 | type: tosca.nodes.ServiceInstanceLink |
| 175 | requirements: |
| 176 | - provider_service_instance: |
| 177 | node: Fabric_ONOS_app |
| 178 | relationship: tosca.relationships.BelongsToOne |
| 179 | - subscriber_service: |
| 180 | node: service#fabric |
| 181 | relationship: tosca.relationships.BelongsToOne |
| 182 | |
| 183 | cordServices: |
| 184 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 185 | description: Set up VOLT, AddressManager, and RCORD services |
| 186 | imports: |
Andy Bavier | 536e5e1 | 2018-03-15 14:39:30 -0700 | [diff] [blame] | 187 | - custom_types/image.yaml |
| 188 | - custom_types/network.yaml |
| 189 | - custom_types/networkslice.yaml |
| 190 | - custom_types/networktemplate.yaml |
| 191 | - custom_types/nodelabel.yaml |
| 192 | - custom_types/onosapp.yaml |
| 193 | - custom_types/onosservice.yaml |
| 194 | - custom_types/site.yaml |
| 195 | - custom_types/service.yaml |
| 196 | - custom_types/servicedependency.yaml |
| 197 | - custom_types/serviceinstanceattribute.yaml |
| 198 | - custom_types/serviceinstancelink.yaml |
| 199 | - custom_types/slice.yaml |
| 200 | - custom_types/voltservice.yaml |
Matteo Scandolo | 6247655 | 2018-04-12 11:05:59 -0700 | [diff] [blame] | 201 | - custom_types/vrouterservice.yaml |
Scott Baker | 348bd28 | 2018-03-20 15:28:50 -0700 | [diff] [blame] | 202 | - custom_types/vsghwservice.yaml |
Andy Bavier | 536e5e1 | 2018-03-15 14:39:30 -0700 | [diff] [blame] | 203 | topology_template: |
| 204 | node_templates: |
Matteo Scandolo | 18daed2 | 2018-04-11 13:27:32 -0700 | [diff] [blame] | 205 | service#ONOS_Fabric: |
| 206 | type: tosca.nodes.ONOSService |
| 207 | properties: |
| 208 | name: ONOS_Fabric |
| 209 | must-exist: true |
Andy Bavier | 536e5e1 | 2018-03-15 14:39:30 -0700 | [diff] [blame] | 210 | service#rcord: |
| 211 | type: tosca.nodes.Service |
| 212 | properties: |
| 213 | name: rcord |
| 214 | rcord_volt: |
| 215 | type: tosca.nodes.ServiceDependency |
| 216 | properties: |
| 217 | connect_method: None |
| 218 | requirements: |
| 219 | - subscriber_service: |
| 220 | node: service#rcord |
| 221 | relationship: tosca.relationships.BelongsToOne |
| 222 | - provider_service: |
| 223 | node: service#volt |
| 224 | relationship: tosca.relationships.BelongsToOne |
| 225 | service#volt: |
| 226 | type: tosca.nodes.VOLTService |
| 227 | properties: |
| 228 | name: volt |
Matteo Scandolo | 6b6e63d | 2018-05-01 13:42:13 -0700 | [diff] [blame^] | 229 | voltha_url: voltha.voltha.svc.cluster.local:8882 |
| 230 | p_onos_url: onos-voltha-ui.voltha.svc.cluster.local:8181 |
| 231 | p_onos_user: karaf |
| 232 | p_onos_pass: karaf |
Scott Baker | 348bd28 | 2018-03-20 15:28:50 -0700 | [diff] [blame] | 233 | service#vsg-hw: |
| 234 | type: tosca.nodes.VSGHWService |
| 235 | properties: |
| 236 | name: vsg-hw |
Matteo Scandolo | 6247655 | 2018-04-12 11:05:59 -0700 | [diff] [blame] | 237 | service#vrouter: |
| 238 | type: tosca.nodes.VRouterService |
| 239 | properties: |
| 240 | name: vrouter |
| 241 | kind: rcord |
| 242 | rest_hostname: onos-fabric-ui |
| 243 | rest_port: 8181 |
| 244 | rest_user: karaf |
| 245 | rest_pass: karaf |
Scott Baker | 348bd28 | 2018-03-20 15:28:50 -0700 | [diff] [blame] | 246 | volt_vsg-hw: |
| 247 | type: tosca.nodes.ServiceDependency |
| 248 | properties: |
| 249 | connect_method: None |
| 250 | requirements: |
| 251 | - subscriber_service: |
| 252 | node: service#volt |
| 253 | relationship: tosca.relationships.BelongsToOne |
| 254 | - provider_service: |
| 255 | node: service#vsg-hw |
| 256 | relationship: tosca.relationships.BelongsToOne |
Matteo Scandolo | 18daed2 | 2018-04-11 13:27:32 -0700 | [diff] [blame] | 257 | onos_fabric_vsg-hw: |
Scott Baker | 348bd28 | 2018-03-20 15:28:50 -0700 | [diff] [blame] | 258 | type: tosca.nodes.ServiceDependency |
| 259 | properties: |
| 260 | connect_method: None |
| 261 | requirements: |
| 262 | - subscriber_service: |
| 263 | node: service#vsg-hw |
| 264 | relationship: tosca.relationships.BelongsToOne |
| 265 | - provider_service: |
Matteo Scandolo | 18daed2 | 2018-04-11 13:27:32 -0700 | [diff] [blame] | 266 | node: service#ONOS_Fabric |
Scott Baker | 348bd28 | 2018-03-20 15:28:50 -0700 | [diff] [blame] | 267 | relationship: tosca.relationships.BelongsToOne |
Matteo Scandolo | 6247655 | 2018-04-12 11:05:59 -0700 | [diff] [blame] | 268 | vsg-hw_vrouter: |
| 269 | type: tosca.nodes.ServiceDependency |
| 270 | properties: |
| 271 | connect_method: None |
| 272 | requirements: |
| 273 | - subscriber_service: |
| 274 | node: service#vsg-hw |
| 275 | relationship: tosca.relationships.BelongsToOne |
| 276 | - provider_service: |
| 277 | node: service#vrouter |
| 278 | relationship: tosca.relationships.BelongsToOne |
Andy Bavier | 9d9ee54 | 2018-03-19 13:31:28 -0700 | [diff] [blame] | 279 | |
| 280 | serviceGraphConstraints: |
| 281 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 282 | imports: |
| 283 | - custom_types/servicegraphconstraint.yaml |
| 284 | description: Constraints on the Services position in the graph |
| 285 | topology_template: |
| 286 | node_templates: |
| 287 | constraints: |
| 288 | type: tosca.nodes.ServiceGraphConstraint |
| 289 | properties: |
Matteo Scandolo | 6247655 | 2018-04-12 11:05:59 -0700 | [diff] [blame] | 290 | constraints: '[[null, "rcord"], [null, "volt"], ["ONOS_Fabric", "vsg-hw"], [null, "vrouter"]]' |