Andy Bavier | 536e5e1 | 2018-03-15 14:39:30 -0700 | [diff] [blame] | 1 | --- |
| 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 | |
| 21 | replicaCount: 1 |
| 22 | |
Zack Williams | 9963fe5 | 2018-04-03 08:40:26 -0700 | [diff] [blame] | 23 | nameOverride: "" |
| 24 | fullnameOverride: "" |
| 25 | |
Andy Bavier | 536e5e1 | 2018-03-15 14:39:30 -0700 | [diff] [blame] | 26 | pull_docker_registry: |
| 27 | |
| 28 | image: |
Andy Bavier | 9d9ee54 | 2018-03-19 13:31:28 -0700 | [diff] [blame] | 29 | toscaLoader: |
| 30 | repository: clue/httpie |
| 31 | tag: latest |
| 32 | pullPolicy: IfNotPresent |
| 33 | rcordSynchronizer: |
| 34 | repository: xosproject/rcord-synchronizer |
Andy Bavier | 3e262f2 | 2018-03-22 12:24:41 -0700 | [diff] [blame] | 35 | tag: master |
Andy Bavier | 9d9ee54 | 2018-03-19 13:31:28 -0700 | [diff] [blame] | 36 | pullPolicy: IfNotPresent |
Andy Bavier | 536e5e1 | 2018-03-15 14:39:30 -0700 | [diff] [blame] | 37 | |
| 38 | xosAdminUser: admin@opencord.org |
| 39 | xosAdminPassword: letmein |
| 40 | |
| 41 | # Service-specific configuration. |
Andy Bavier | 536e5e1 | 2018-03-15 14:39:30 -0700 | [diff] [blame] | 42 | fabric: |
| 43 | serviceConfig: |
Andy Bavier | 3e262f2 | 2018-03-22 12:24:41 -0700 | [diff] [blame] | 44 | accessor: |
| 45 | username: admin@opencord.org |
| 46 | password: letmein |
Andy Bavier | 536e5e1 | 2018-03-15 14:39:30 -0700 | [diff] [blame] | 47 | onos-service: |
| 48 | serviceConfig: |
| 49 | accessor: |
| 50 | username: admin@opencord.org |
| 51 | password: letmein |
| 52 | volt: |
| 53 | serviceConfig: |
| 54 | accessor: |
| 55 | username: admin@opencord.org |
| 56 | password: letmein |
Andy Bavier | 3e262f2 | 2018-03-22 12:24:41 -0700 | [diff] [blame] | 57 | vsg-hw: |
| 58 | serviceConfig: |
| 59 | accessor: |
| 60 | username: admin@opencord.org |
| 61 | password: letmein |
Andy Bavier | 536e5e1 | 2018-03-15 14:39:30 -0700 | [diff] [blame] | 62 | |
Andy Bavier | 9d9ee54 | 2018-03-19 13:31:28 -0700 | [diff] [blame] | 63 | # The R-CORD synchronizer loads R-CORD-specific models into the core |
| 64 | serviceConfig: |
| 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 Bavier | 536e5e1 | 2018-03-15 14:39:30 -0700 | [diff] [blame] | 76 | toscaRecipes: |
| 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 Scandolo | 18daed2 | 2018-04-11 13:27:32 -0700 | [diff] [blame] | 190 | rest_hostname: onos-fabric-ui |
| 191 | rest_port: 8181 |
Andy Bavier | 536e5e1 | 2018-03-15 14:39:30 -0700 | [diff] [blame] | 192 | 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 Bavier | d5b4ee8 | 2018-03-22 17:47:33 -0700 | [diff] [blame] | 200 | value: '{}' |
Andy Bavier | 536e5e1 | 2018-03-15 14:39:30 -0700 | [diff] [blame] | 201 | 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 Bavier | 536e5e1 | 2018-03-15 14:39:30 -0700 | [diff] [blame] | 229 | - 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 |
Scott Baker | 348bd28 | 2018-03-20 15:28:50 -0700 | [diff] [blame] | 243 | - custom_types/vsghwservice.yaml |
Andy Bavier | 536e5e1 | 2018-03-15 14:39:30 -0700 | [diff] [blame] | 244 | topology_template: |
| 245 | node_templates: |
Matteo Scandolo | 18daed2 | 2018-04-11 13:27:32 -0700 | [diff] [blame] | 246 | service#ONOS_Fabric: |
| 247 | type: tosca.nodes.ONOSService |
| 248 | properties: |
| 249 | name: ONOS_Fabric |
| 250 | must-exist: true |
Andy Bavier | 536e5e1 | 2018-03-15 14:39:30 -0700 | [diff] [blame] | 251 | service#rcord: |
| 252 | type: tosca.nodes.Service |
| 253 | properties: |
| 254 | name: rcord |
| 255 | rcord_volt: |
| 256 | type: tosca.nodes.ServiceDependency |
| 257 | properties: |
| 258 | connect_method: None |
| 259 | requirements: |
| 260 | - subscriber_service: |
| 261 | node: service#rcord |
| 262 | relationship: tosca.relationships.BelongsToOne |
| 263 | - provider_service: |
| 264 | node: service#volt |
| 265 | relationship: tosca.relationships.BelongsToOne |
| 266 | service#volt: |
| 267 | type: tosca.nodes.VOLTService |
| 268 | properties: |
| 269 | name: volt |
| 270 | kind: rcord |
Scott Baker | 348bd28 | 2018-03-20 15:28:50 -0700 | [diff] [blame] | 271 | service#vsg-hw: |
| 272 | type: tosca.nodes.VSGHWService |
| 273 | properties: |
| 274 | name: vsg-hw |
Scott Baker | 348bd28 | 2018-03-20 15:28:50 -0700 | [diff] [blame] | 275 | volt_vsg-hw: |
| 276 | type: tosca.nodes.ServiceDependency |
| 277 | properties: |
| 278 | connect_method: None |
| 279 | requirements: |
| 280 | - subscriber_service: |
| 281 | node: service#volt |
| 282 | relationship: tosca.relationships.BelongsToOne |
| 283 | - provider_service: |
| 284 | node: service#vsg-hw |
| 285 | relationship: tosca.relationships.BelongsToOne |
Matteo Scandolo | 18daed2 | 2018-04-11 13:27:32 -0700 | [diff] [blame] | 286 | onos_fabric_vsg-hw: |
Scott Baker | 348bd28 | 2018-03-20 15:28:50 -0700 | [diff] [blame] | 287 | type: tosca.nodes.ServiceDependency |
| 288 | properties: |
| 289 | connect_method: None |
| 290 | requirements: |
| 291 | - subscriber_service: |
| 292 | node: service#vsg-hw |
| 293 | relationship: tosca.relationships.BelongsToOne |
| 294 | - provider_service: |
Matteo Scandolo | 18daed2 | 2018-04-11 13:27:32 -0700 | [diff] [blame] | 295 | node: service#ONOS_Fabric |
Scott Baker | 348bd28 | 2018-03-20 15:28:50 -0700 | [diff] [blame] | 296 | relationship: tosca.relationships.BelongsToOne |
Andy Bavier | 9d9ee54 | 2018-03-19 13:31:28 -0700 | [diff] [blame] | 297 | |
| 298 | serviceGraphConstraints: |
| 299 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 300 | imports: |
| 301 | - custom_types/servicegraphconstraint.yaml |
| 302 | description: Constraints on the Services position in the graph |
| 303 | topology_template: |
| 304 | node_templates: |
| 305 | constraints: |
| 306 | type: tosca.nodes.ServiceGraphConstraint |
| 307 | properties: |
Matteo Scandolo | 18daed2 | 2018-04-11 13:27:32 -0700 | [diff] [blame] | 308 | constraints: '[[null, "rcord"], [null, "volt"], ["ONOS_Fabric", "vsg-hw"]]' |