Andy Bavier | c4379e2 | 2017-10-17 10:14:57 -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 | |
| 19 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 20 | |
| 21 | description: create VMMEVendor and VMMETenant |
| 22 | |
| 23 | imports: |
| 24 | - custom_types/xos.yaml |
| 25 | - custom_types/flavor.yaml |
| 26 | - custom_types/image.yaml |
| 27 | - custom_types/vmmeservice.yaml |
| 28 | - custom_types/vmmevendor.yaml |
| 29 | - custom_types/vmmetenant.yaml |
| 30 | |
| 31 | topology_template: |
| 32 | node_templates: |
| 33 | |
| 34 | # Created earlier, throws an error without name field |
| 35 | m1.small: |
| 36 | type: tosca.nodes.Flavor |
| 37 | properties: |
| 38 | name: m1.small |
| 39 | must-exist: true |
| 40 | |
| 41 | # Created earlier, throws an error without name field |
| 42 | trusty-server-multi-nic: |
| 43 | type: tosca.nodes.Image |
| 44 | properties: |
| 45 | name: trusty-server-multi-nic |
| 46 | must-exist: true |
| 47 | |
| 48 | # Created earlier, throws an error without name field |
| 49 | service#vmme: |
| 50 | type: tosca.nodes.VMMEService |
| 51 | properties: |
| 52 | name: vmme |
| 53 | must-exist: true |
| 54 | |
| 55 | intel_mme: |
| 56 | type: tosca.nodes.VMMEVendor |
| 57 | properties: |
| 58 | name: intel_mme |
| 59 | requirements: |
| 60 | - image: |
| 61 | node: trusty-server-multi-nic |
| 62 | relationship: tosca.relationships.BelongsToOne |
| 63 | - flavor: |
| 64 | node: m1.small |
| 65 | relationship: tosca.relationships.BelongsToOne |
| 66 | |
| 67 | vmme_tenant1: |
| 68 | type: tosca.nodes.VMMETenant |
| 69 | properties: |
| 70 | name: vmme_tenant1 |
| 71 | requirements: |
| 72 | - vmme_vendor: |
| 73 | node: intel_mme |
| 74 | relationship: tosca.relationships.BelongsToOne |
| 75 | - owner: |
| 76 | node: service#vmme |
| 77 | relationship: tosca.relationships.BelongsToOne |