Matteo Scandolo | 3896c47 | 2017-08-01 13:31:42 -0700 | [diff] [blame] | 1 | |
| 2 | {# |
| 3 | Copyright 2017-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 | |
| 18 | |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 19 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 20 | |
| 21 | description: Created by platform-install/roles/cord-profile/templates/services.yaml.j2 |
| 22 | |
| 23 | imports: |
| 24 | - custom_types/xos.yaml |
Scott Baker | 3a5dea7 | 2017-03-06 23:01:01 -0800 | [diff] [blame] | 25 | - custom_types/vtr.yaml |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 26 | |
| 27 | topology_template: |
| 28 | node_templates: |
| 29 | |
| 30 | # CORD Services |
| 31 | service#vtr: |
Scott Baker | 3a5dea7 | 2017-03-06 23:01:01 -0800 | [diff] [blame] | 32 | type: tosca.nodes.VTRService |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 33 | properties: |
| 34 | view_url: /admin/vtr/vtrservice/$id$/ |
| 35 | kind: vTR |
| 36 | replaces: service_vtr |
| 37 | |
| 38 | service#volt: |
| 39 | type: tosca.nodes.VOLTService |
| 40 | requirements: |
| 41 | - vsg_tenant: |
| 42 | node: service#vsg |
| 43 | relationship: tosca.relationships.TenantOfService |
| 44 | properties: |
| 45 | view_url: /admin/cord/voltservice/$id$/ |
| 46 | kind: vOLT |
| 47 | replaces: service_volt |
| 48 | |
| 49 | addresses_vsg: |
| 50 | type: tosca.nodes.AddressPool |
| 51 | properties: |
| 52 | addresses: 10.168.0.0/24 |
| 53 | gateway_ip: 10.168.0.1 |
| 54 | gateway_mac: 02:42:0a:a8:00:01 |
| 55 | |
| 56 | addresses_exampleservice-public: |
| 57 | type: tosca.nodes.AddressPool |
| 58 | properties: |
| 59 | addresses: 10.168.1.0/24 |
| 60 | gateway_ip: 10.168.1.1 |
| 61 | gateway_mac: 02:42:0a:a8:00:01 |
| 62 | |
| 63 | service#vsg: |
| 64 | type: tosca.nodes.VSGService |
| 65 | requirements: |
| 66 | - vrouter_tenant: |
| 67 | node: service#vrouter |
| 68 | relationship: tosca.relationships.TenantOfService |
| 69 | properties: |
| 70 | view_url: /admin/cord/vsgservice/$id$/ |
| 71 | private_key_fn: /opt/xos/synchronizers/vcpe/vcpe_private_key |
| 72 | replaces: service_vsg |
| 73 | |
| 74 | service#vrouter: |
| 75 | type: tosca.nodes.VRouterService |
| 76 | properties: |
| 77 | view_url: /admin/vrouter/vrouterservice/$id$/ |
| 78 | replaces: service_vrouter |
| 79 | requirements: |
| 80 | - addresses_vsg: |
| 81 | node: addresses_vsg |
| 82 | relationship: tosca.relationships.ProvidesAddresses |
| 83 | - addresses_service1: |
| 84 | node: addresses_exampleservice-public |
| 85 | relationship: tosca.relationships.ProvidesAddresses |
| 86 | |