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