blob: 1a5765a9bf6f0bd4211e76179fa0cd10e82f787e [file] [log] [blame]
Pingping Linece8a742017-10-03 16:39:23 -07001# Copyright 2017-present Open Networking Foundation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15tosca_definitions_version: tosca_simple_yaml_1_0
16
17# compile this with "m4 vmme.m4 > vmme.yaml"
18
19# include macros
20# Note: Tosca derived_from isn't working the way I think it should, it's not
21# inheriting from the parent template. Until we get that figured out, use
22# m4 macros do our inheritance
23
24
25# Service
26
27
28# Subscriber
29
30
31
32
33# end m4 macros
34
35
36
37node_types:
38 tosca.nodes.VMMEService:
39 derived_from: tosca.nodes.Root
40 description: >
41 VMME Service
42 capabilities:
43 scalable:
44 type: tosca.capabilities.Scalable
45 service:
46 type: tosca.capabilities.xos.Service
47 properties:
48 no-delete:
49 type: boolean
50 default: false
51 description: Do not allow Tosca to delete this object
52 no-create:
53 type: boolean
54 default: false
55 description: Do not allow Tosca to create this object
56 no-update:
57 type: boolean
58 default: false
59 description: Do not allow Tosca to update this object
60 replaces:
61 type: string
62 required: false
63 descrption: Replaces/renames this object
64 kind:
65 type: string
66 default: generic
67 description: Type of service.
68 view_url:
69 type: string
70 required: false
71 description: URL to follow when icon is clicked in the Service Directory.
72 icon_url:
73 type: string
74 required: false
75 description: ICON to display in the Service Directory.
76 enabled:
77 type: boolean
78 default: true
79 published:
80 type: boolean
81 default: true
82 description: If True then display this Service in the Service Directory.
83 public_key:
84 type: string
85 required: false
86 description: Public key to install into Instances to allows Services to SSH into them.
87 private_key_fn:
88 type: string
89 required: false
90 description: Location of private key file
91 versionNumber:
92 type: string
93 required: false
94 description: Version number of Service.
95
96 tosca.nodes.VMMETenant:
97 derived_from: tosca.nodes.Root
98 description: >
99 VMME Tenant
100 properties:
101 kind:
102 type: string
103 default: generic
104 description: Kind of tenant
105 service_specific_id:
106 type: string
107 required: false
108 description: Service specific ID opaque to XOS but meaningful to service
109
110 tosca.nodes.VMMEVendor:
111 derived_from: tosca.nodes.Root
112 description: >
113 VMME Vendor
114 properties:
115 no-delete:
116 type: boolean
117 default: false
118 description: Do not allow Tosca to delete this object
119 no-create:
120 type: boolean
121 default: false
122 description: Do not allow Tosca to create this object
123 no-update:
124 type: boolean
125 default: false
126 description: Do not allow Tosca to update this object
127 replaces:
128 type: string
129 required: false
130 descrption: Replaces/renames this object
131 name:
132 type: string
133 required: true
134
135 tosca.relationships.VendorOfTenant:
136 derived_from: tosca.relationships.Root
137 valid_target_types: [ tosca.capabilities.xos.VMMETenant ]
138