blob: b2ca43f0042a57770aac6e181412b0f92c69810f [file] [log] [blame]
Andy Bavier15f87562017-10-17 10:14:57 -07001
2{#
3Copyright 2017-present Open Networking Foundation
4
5Licensed under the Apache License, Version 2.0 (the "License");
6you may not use this file except in compliance with the License.
7You may obtain a copy of the License at
8
9http://www.apache.org/licenses/LICENSE-2.0
10
11Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS,
13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14See the License for the specific language governing permissions and
15limitations under the License.
16#}
17
18
19tosca_definitions_version: tosca_simple_yaml_1_0
20
21description: create VMMEVendor and VMMETenant
22
23imports:
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
31topology_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