Matteo Scandolo | 5eb20bb | 2017-08-08 13:05:26 -0700 | [diff] [blame] | 1 | |
| 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 Campanella | 45536f7 | 2017-02-23 15:20:06 +0100 | [diff] [blame] | 17 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 18 | |
| 19 | # compile this with "m4 vee.m4 > vee.yaml" |
| 20 | |
| 21 | # include macros |
Scott Baker | f07b41a | 2017-10-13 14:24:43 -0700 | [diff] [blame] | 22 | |
Andrea Campanella | 45536f7 | 2017-02-23 15:20:06 +0100 | [diff] [blame] | 23 | # 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 | |
| 40 | node_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 Campanella | 45536f7 | 2017-02-23 15:20:06 +0100 | [diff] [blame] | 99 | |
Scott Baker | f07b41a | 2017-10-13 14:24:43 -0700 | [diff] [blame] | 100 | tosca.nodes.VEEServiceInstance: |
| 101 | derived_from: tosca.nodes.Root |
| 102 | description: > |
Scott Baker | b263645 | 2017-10-17 17:05:53 -0700 | [diff] [blame^] | 103 | A VEE Service Instance. |
Scott Baker | f07b41a | 2017-10-13 14:24:43 -0700 | [diff] [blame] | 104 | 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 |