blob: 63d52945b90ae2fd3ad8c24ab79e252b935bbc40 [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.
99 backend_network_label:
100 type: string
101 required: false
102 description: Label that matches network used to connect HPC and BBS services.
103 dns_servers:
104 type: string
105 required: false
106 node_label:
107 type: string
108 required: false
109
Scott Bakerf07b41a2017-10-13 14:24:43 -0700110 tosca.nodes.VEEServiceInstance:
111 derived_from: tosca.nodes.Root
112 description: >
113 A VEE Tenant.
114 properties:
115 kind:
116 type: string
117 default: generic
118 description: Kind of tenant
119 service_specific_id:
120 type: string
121 required: false
122 description: Service specific ID opaque to XOS but meaningful to service
123 s_tag:
124 type: integer
125 required: false
126 c_tag:
127 type: integer
128 required: false