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 | |
Andrea Campanella | bd56e78 | 2017-02-23 15:43:21 +0100 | [diff] [blame] | 19 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 20 | |
| 21 | imports: |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame^] | 22 | - custom_types/veeservice.yaml |
| 23 | - custom_types/vegservice.yaml |
| 24 | - custom_types/networktemplate.yaml |
| 25 | - custom_types/servicedependency.yaml |
Andrea Campanella | bd56e78 | 2017-02-23 15:43:21 +0100 | [diff] [blame] | 26 | |
| 27 | description: vee services, generated by platform-install |
| 28 | |
| 29 | topology_template: |
| 30 | node_templates: |
| 31 | |
Andrea Campanella | bd56e78 | 2017-02-23 15:43:21 +0100 | [diff] [blame] | 32 | service#veg: |
| 33 | type: tosca.nodes.VEGService |
| 34 | requirements: |
| 35 | properties: |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame^] | 36 | name: veg |
| 37 | must-exist: true |
Andrea Campanella | bd56e78 | 2017-02-23 15:43:21 +0100 | [diff] [blame] | 38 | |
Andrea Campanella | bd56e78 | 2017-02-23 15:43:21 +0100 | [diff] [blame] | 39 | service#vee: |
| 40 | type: tosca.nodes.VEEService |
Andrea Campanella | bd56e78 | 2017-02-23 15:43:21 +0100 | [diff] [blame] | 41 | properties: |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame^] | 42 | name: vee |
| 43 | |
| 44 | veg_vee: |
| 45 | type: tosca.nodes.ServiceDependency |
| 46 | properties: |
| 47 | connect_method: None |
| 48 | requirements: |
| 49 | - subscriber_service: |
| 50 | node: service#veg |
| 51 | relationship: tosca.relationships.BelongsToOne |
| 52 | - provider_service: |
| 53 | node: service#vee |
| 54 | relationship: tosca.relationships.BelongsToOne |
Andrea Campanella | bd56e78 | 2017-02-23 15:43:21 +0100 | [diff] [blame] | 55 | |
| 56 | template#vee: |
| 57 | type: tosca.nodes.NetworkTemplate |
| 58 | properties: |
Matteo Scandolo | 1ed76b8 | 2017-12-05 13:58:22 -0800 | [diff] [blame^] | 59 | name: vee |
Andrea Campanella | bd56e78 | 2017-02-23 15:43:21 +0100 | [diff] [blame] | 60 | visibility: private |
| 61 | translation: none |
| 62 | vtn_kind: vee |
| 63 | |