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