Andy Bavier | 0c564b3 | 2017-10-12 13:04:11 -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 | # compile this with "m4 internetemulator.m4 > internetemulator.yaml" |
| 17 | |
| 18 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 19 | |
| 20 | node_types: |
| 21 | tosca.nodes.InternetEmulatorService: |
| 22 | derived_from: tosca.nodes.Root |
| 23 | description: > |
| 24 | Internet Emulator |
| 25 | capabilities: |
| 26 | scalable: |
| 27 | type: tosca.capabilities.Scalable |
| 28 | service: |
| 29 | type: tosca.capabilities.xos.Service |
| 30 | properties: |
| 31 | no-delete: |
| 32 | type: boolean |
| 33 | default: false |
| 34 | description: Do not allow Tosca to delete this object |
| 35 | no-create: |
| 36 | type: boolean |
| 37 | default: false |
| 38 | description: Do not allow Tosca to create this object |
| 39 | no-update: |
| 40 | type: boolean |
| 41 | default: false |
| 42 | description: Do not allow Tosca to update this object |
| 43 | replaces: |
| 44 | type: string |
| 45 | required: false |
| 46 | descrption: Replaces/renames this object |
| 47 | kind: |
| 48 | type: string |
| 49 | default: generic |
| 50 | description: Type of service. |
| 51 | view_url: |
| 52 | type: string |
| 53 | required: false |
| 54 | description: URL to follow when icon is clicked in the Service Directory. |
| 55 | icon_url: |
| 56 | type: string |
| 57 | required: false |
| 58 | description: ICON to display in the Service Directory. |
| 59 | enabled: |
| 60 | type: boolean |
| 61 | default: true |
| 62 | published: |
| 63 | type: boolean |
| 64 | default: true |
| 65 | description: If True then display this Service in the Service Directory. |
| 66 | public_key: |
| 67 | type: string |
| 68 | required: false |
| 69 | description: Public key to install into Instances to allows Services to SSH into them. |
| 70 | private_key_fn: |
| 71 | type: string |
| 72 | required: false |
| 73 | description: Location of private key file |
| 74 | versionNumber: |
| 75 | type: string |
| 76 | required: false |
| 77 | description: Version number of Service. |
| 78 | |
| 79 | tosca.nodes.InternetEmulatorServiceInstance: |
| 80 | derived_from: tosca.nodes.Root |
| 81 | description: > |
| 82 | A ServiceInstance of the Internet Emulator |
| 83 | properties: |
| 84 | kind: |
| 85 | type: string |
| 86 | default: generic |
| 87 | description: Kind of tenant |
| 88 | service_specific_id: |
| 89 | type: string |
| 90 | required: false |
| 91 | description: Service specific ID opaque to XOS but meaningful to service |