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. |
| 42 | addressmanager: |
| 43 | serviceConfig: |
| 44 | accessor: |
| 45 | username: admin@opencord.org |
| 46 | password: letmein |
| 47 | fabric: |
| 48 | serviceConfig: |
Andy Bavier | 3e262f2 | 2018-03-22 12:24:41 -0700 | [diff] [blame] | 49 | accessor: |
| 50 | username: admin@opencord.org |
| 51 | password: letmein |
Andy Bavier | 536e5e1 | 2018-03-15 14:39:30 -0700 | [diff] [blame] | 52 | onos-service: |
| 53 | serviceConfig: |
| 54 | accessor: |
| 55 | username: admin@opencord.org |
| 56 | password: letmein |
| 57 | volt: |
| 58 | serviceConfig: |
| 59 | accessor: |
| 60 | username: admin@opencord.org |
| 61 | password: letmein |
Andy Bavier | 3e262f2 | 2018-03-22 12:24:41 -0700 | [diff] [blame] | 62 | vsg-hw: |
| 63 | serviceConfig: |
| 64 | accessor: |
| 65 | username: admin@opencord.org |
| 66 | password: letmein |
Andy Bavier | 536e5e1 | 2018-03-15 14:39:30 -0700 | [diff] [blame] | 67 | |
Andy Bavier | 9d9ee54 | 2018-03-19 13:31:28 -0700 | [diff] [blame] | 68 | # The R-CORD synchronizer loads R-CORD-specific models into the core |
| 69 | serviceConfig: |
| 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 Bavier | 536e5e1 | 2018-03-15 14:39:30 -0700 | [diff] [blame] | 81 | toscaRecipes: |
| 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 Bavier | d5b4ee8 | 2018-03-22 17:47:33 -0700 | [diff] [blame] | 204 | value: '{}' |
Andy Bavier | 536e5e1 | 2018-03-15 14:39:30 -0700 | [diff] [blame] | 205 | 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 Baker | 348bd28 | 2018-03-20 15:28:50 -0700 | [diff] [blame] | 249 | - custom_types/vsghwservice.yaml |
Andy Bavier | 536e5e1 | 2018-03-15 14:39:30 -0700 | [diff] [blame] | 250 | 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 Baker | 348bd28 | 2018-03-20 15:28:50 -0700 | [diff] [blame] | 272 | service#vsg-hw: |
| 273 | type: tosca.nodes.VSGHWService |
| 274 | properties: |
| 275 | name: vsg-hw |
Andy Bavier | 536e5e1 | 2018-03-15 14:39:30 -0700 | [diff] [blame] | 276 | service#addressmanager: |
| 277 | type: tosca.nodes.AddressManagerService |
| 278 | properties: |
| 279 | name: addressmanager |
Scott Baker | 348bd28 | 2018-03-20 15:28:50 -0700 | [diff] [blame] | 280 | 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 Bavier | 9d9ee54 | 2018-03-19 13:31:28 -0700 | [diff] [blame] | 302 | |
| 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 Baker | 348bd28 | 2018-03-20 15:28:50 -0700 | [diff] [blame] | 313 | constraints: '[[null, "rcord"], [null, "volt"], ["addressmanager", "vsg-hw"]]' |