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 | |
| 23 | pull_docker_registry: |
| 24 | |
| 25 | image: |
Andy Bavier | 9d9ee54 | 2018-03-19 13:31:28 -0700 | [diff] [blame] | 26 | toscaLoader: |
| 27 | repository: clue/httpie |
| 28 | tag: latest |
| 29 | pullPolicy: IfNotPresent |
| 30 | rcordSynchronizer: |
| 31 | repository: xosproject/rcord-synchronizer |
| 32 | tag: fc9d64d591236ec5d428045c67748e67a58b3fe3 |
| 33 | pullPolicy: IfNotPresent |
Andy Bavier | 536e5e1 | 2018-03-15 14:39:30 -0700 | [diff] [blame] | 34 | |
| 35 | xosAdminUser: admin@opencord.org |
| 36 | xosAdminPassword: letmein |
| 37 | |
| 38 | # Service-specific configuration. |
| 39 | addressmanager: |
| 40 | serviceConfig: |
| 41 | accessor: |
| 42 | username: admin@opencord.org |
| 43 | password: letmein |
| 44 | fabric: |
| 45 | serviceConfig: |
| 46 | accessor: |
| 47 | username: admin@opencord.org |
| 48 | password: letmein |
| 49 | onos-service: |
| 50 | serviceConfig: |
| 51 | accessor: |
| 52 | username: admin@opencord.org |
| 53 | password: letmein |
| 54 | volt: |
| 55 | serviceConfig: |
| 56 | accessor: |
| 57 | username: admin@opencord.org |
| 58 | password: letmein |
| 59 | |
Andy Bavier | 9d9ee54 | 2018-03-19 13:31:28 -0700 | [diff] [blame] | 60 | # The R-CORD synchronizer loads R-CORD-specific models into the core |
| 61 | serviceConfig: |
| 62 | name: rcord |
| 63 | accessor: |
| 64 | username: admin@opencord.org |
| 65 | password: letmein |
| 66 | endpoint: xos-core:50051 |
| 67 | dependency_graph: "/opt/xos/synchronizers/rcord/model-deps" |
| 68 | sys_dir: "/opt/xos/synchronizers/rcord/sys" |
| 69 | models_dir: "/opt/xos/synchronizers/rcord/models" |
| 70 | model_policies_dir: "/opt/xos/synchronizers/rcord/model_policies" |
| 71 | |
| 72 | # TOSCA recipes for the tosca-loader |
Andy Bavier | 536e5e1 | 2018-03-15 14:39:30 -0700 | [diff] [blame] | 73 | toscaRecipes: |
| 74 | fixtures: |
| 75 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 76 | description: Some basic fixtures |
| 77 | imports: |
| 78 | - custom_types/siterole.yaml |
| 79 | - custom_types/slicerole.yaml |
| 80 | - custom_types/networkparametertype.yaml |
| 81 | - custom_types/networktemplate.yaml |
| 82 | topology_template: |
| 83 | node_templates: |
| 84 | # ----------------------------------------------------------------------------- |
| 85 | # Network Parameter Types |
| 86 | # ----------------------------------------------------------------------------- |
| 87 | s_tag: |
| 88 | type: tosca.nodes.NetworkParameterType |
| 89 | properties: |
| 90 | name: s_tag |
| 91 | c_tag: |
| 92 | type: tosca.nodes.NetworkParameterType |
| 93 | properties: |
| 94 | name: c_tag |
| 95 | next_hop: |
| 96 | type: tosca.nodes.NetworkParameterType |
| 97 | properties: |
| 98 | name: next_hop |
| 99 | device: |
| 100 | type: tosca.nodes.NetworkParameterType |
| 101 | properties: |
| 102 | name: device |
| 103 | bridge: |
| 104 | type: tosca.nodes.NetworkParameterType |
| 105 | properties: |
| 106 | name: bridge |
| 107 | neutron_port_name: |
| 108 | type: tosca.nodes.NetworkParameterType |
| 109 | properties: |
| 110 | name: neutron_port_name |
| 111 | # ---------------------------------------------------------------------------- |
| 112 | # Roles |
| 113 | # ---------------------------------------------------------------------------- |
| 114 | siterole#admin: |
| 115 | type: tosca.nodes.SiteRole |
| 116 | properties: |
| 117 | role: admin |
| 118 | siterole#pi: |
| 119 | type: tosca.nodes.SiteRole |
| 120 | properties: |
| 121 | role: pi |
| 122 | siterole#tech: |
| 123 | type: tosca.nodes.SiteRole |
| 124 | properties: |
| 125 | role: tech |
| 126 | slicerole#admin: |
| 127 | type: tosca.nodes.SliceRole |
| 128 | properties: |
| 129 | role: admin |
| 130 | slicerole#access: |
| 131 | type: tosca.nodes.SliceRole |
| 132 | properties: |
| 133 | role: access |
| 134 | # ----------------------------------------------------------------------------- |
| 135 | # Network Templates |
| 136 | # ----------------------------------------------------------------------------- |
| 137 | Private: |
| 138 | type: tosca.nodes.NetworkTemplate |
| 139 | properties: |
| 140 | name: Private |
| 141 | visibility: private |
| 142 | translation: none |
| 143 | Public shared IPv4: |
| 144 | type: tosca.nodes.NetworkTemplate |
| 145 | properties: |
| 146 | name: Public shared IPv4 |
| 147 | visibility: private |
| 148 | translation: NAT |
| 149 | shared_network_name: nat-net |
| 150 | Public dedicated IPv4: |
| 151 | type: tosca.nodes.NetworkTemplate |
| 152 | properties: |
| 153 | name: Public dedicated IPv4 |
| 154 | visibility: public |
| 155 | translation: none |
| 156 | shared_network_name: ext-net |
| 157 | |
| 158 | deployment: |
| 159 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 160 | imports: |
| 161 | - custom_types/deployment.yaml |
| 162 | description: deployment config, generated by platform-install |
| 163 | topology_template: |
| 164 | node_templates: |
| 165 | MyDeployment: |
| 166 | type: tosca.nodes.Deployment |
| 167 | properties: |
| 168 | name: MyDeployment |
| 169 | |
| 170 | fabricService: |
| 171 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 172 | imports: |
| 173 | - custom_types/onosservice.yaml |
| 174 | - custom_types/serviceattribute.yaml |
| 175 | - custom_types/fabricservice.yaml |
| 176 | - custom_types/onosapp.yaml |
| 177 | - custom_types/serviceinstancelink.yaml |
| 178 | description: fabric services, generated by rcord profile |
| 179 | topology_template: |
| 180 | node_templates: |
| 181 | service#ONOS_Fabric: |
| 182 | type: tosca.nodes.ONOSService |
| 183 | properties: |
| 184 | name: ONOS_Fabric |
| 185 | kind: platform |
| 186 | no_container: true |
| 187 | rest_hostname: onos-fabric |
| 188 | serviceattribute#fabric_network_cfg_json: |
| 189 | type: tosca.nodes.ServiceAttribute |
| 190 | requirements: |
| 191 | - service: |
| 192 | node: service#ONOS_Fabric |
| 193 | relationship: tosca.relationships.BelongsToOne |
| 194 | properties: |
| 195 | name: rest_onos/v1/network/configuration/ |
| 196 | value: '' |
| 197 | service#fabric: |
| 198 | type: tosca.nodes.FabricService |
| 199 | properties: |
| 200 | name: fabric |
| 201 | kind: platform |
| 202 | Fabric_ONOS_app: |
| 203 | type: tosca.nodes.ONOSApp |
| 204 | requirements: |
| 205 | - owner: |
| 206 | node: service#ONOS_Fabric |
| 207 | relationship: tosca.relationships.BelongsToOne |
| 208 | properties: |
| 209 | name: Fabric_ONOS_app |
| 210 | dependencies: org.onosproject.drivers, org.onosproject.openflow, org.onosproject.netcfghostprovider, org.onosproject.segmentrouting |
| 211 | Fabric_ONOS_app_ONOS_Fabric: |
| 212 | type: tosca.nodes.ServiceInstanceLink |
| 213 | requirements: |
| 214 | - provider_service_instance: |
| 215 | node: Fabric_ONOS_app |
| 216 | relationship: tosca.relationships.BelongsToOne |
| 217 | - subscriber_service: |
| 218 | node: service#fabric |
| 219 | relationship: tosca.relationships.BelongsToOne |
| 220 | |
| 221 | cordServices: |
| 222 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 223 | description: Set up VOLT, AddressManager, and RCORD services |
| 224 | imports: |
| 225 | - custom_types/addressmanagerservice.yaml |
| 226 | - custom_types/addresspool.yaml |
| 227 | - custom_types/image.yaml |
| 228 | - custom_types/network.yaml |
| 229 | - custom_types/networkslice.yaml |
| 230 | - custom_types/networktemplate.yaml |
| 231 | - custom_types/nodelabel.yaml |
| 232 | - custom_types/onosapp.yaml |
| 233 | - custom_types/onosservice.yaml |
| 234 | - custom_types/site.yaml |
| 235 | - custom_types/service.yaml |
| 236 | - custom_types/servicedependency.yaml |
| 237 | - custom_types/serviceinstanceattribute.yaml |
| 238 | - custom_types/serviceinstancelink.yaml |
| 239 | - custom_types/slice.yaml |
| 240 | - custom_types/voltservice.yaml |
Scott Baker | 348bd28 | 2018-03-20 15:28:50 -0700 | [diff] [blame^] | 241 | - custom_types/vsghwservice.yaml |
Andy Bavier | 536e5e1 | 2018-03-15 14:39:30 -0700 | [diff] [blame] | 242 | topology_template: |
| 243 | node_templates: |
| 244 | service#rcord: |
| 245 | type: tosca.nodes.Service |
| 246 | properties: |
| 247 | name: rcord |
| 248 | rcord_volt: |
| 249 | type: tosca.nodes.ServiceDependency |
| 250 | properties: |
| 251 | connect_method: None |
| 252 | requirements: |
| 253 | - subscriber_service: |
| 254 | node: service#rcord |
| 255 | relationship: tosca.relationships.BelongsToOne |
| 256 | - provider_service: |
| 257 | node: service#volt |
| 258 | relationship: tosca.relationships.BelongsToOne |
| 259 | service#volt: |
| 260 | type: tosca.nodes.VOLTService |
| 261 | properties: |
| 262 | name: volt |
| 263 | kind: rcord |
Scott Baker | 348bd28 | 2018-03-20 15:28:50 -0700 | [diff] [blame^] | 264 | service#vsg-hw: |
| 265 | type: tosca.nodes.VSGHWService |
| 266 | properties: |
| 267 | name: vsg-hw |
Andy Bavier | 536e5e1 | 2018-03-15 14:39:30 -0700 | [diff] [blame] | 268 | service#addressmanager: |
| 269 | type: tosca.nodes.AddressManagerService |
| 270 | properties: |
| 271 | name: addressmanager |
Scott Baker | 348bd28 | 2018-03-20 15:28:50 -0700 | [diff] [blame^] | 272 | volt_vsg-hw: |
| 273 | type: tosca.nodes.ServiceDependency |
| 274 | properties: |
| 275 | connect_method: None |
| 276 | requirements: |
| 277 | - subscriber_service: |
| 278 | node: service#volt |
| 279 | relationship: tosca.relationships.BelongsToOne |
| 280 | - provider_service: |
| 281 | node: service#vsg-hw |
| 282 | relationship: tosca.relationships.BelongsToOne |
| 283 | vsg-hw_addressmanager: |
| 284 | type: tosca.nodes.ServiceDependency |
| 285 | properties: |
| 286 | connect_method: None |
| 287 | requirements: |
| 288 | - subscriber_service: |
| 289 | node: service#vsg-hw |
| 290 | relationship: tosca.relationships.BelongsToOne |
| 291 | - provider_service: |
| 292 | node: service#addressmanager |
| 293 | relationship: tosca.relationships.BelongsToOne |
Andy Bavier | 9d9ee54 | 2018-03-19 13:31:28 -0700 | [diff] [blame] | 294 | |
| 295 | serviceGraphConstraints: |
| 296 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 297 | imports: |
| 298 | - custom_types/servicegraphconstraint.yaml |
| 299 | description: Constraints on the Services position in the graph |
| 300 | topology_template: |
| 301 | node_templates: |
| 302 | constraints: |
| 303 | type: tosca.nodes.ServiceGraphConstraint |
| 304 | properties: |
Scott Baker | 348bd28 | 2018-03-20 15:28:50 -0700 | [diff] [blame^] | 305 | constraints: '[[null, "rcord"], [null, "volt"], ["addressmanager", "vsg-hw"]]' |