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