Matteo Scandolo | 770c49f | 2016-09-23 15:07:38 -0700 | [diff] [blame] | 1 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 2 | |
| 3 | # compile this with "m4 metronet.m4 > metronet.yaml" |
| 4 | |
| 5 | # include macros |
| 6 | # Note: Tosca derived_from isn't working the way I think it should, it's not |
| 7 | # inheriting from the parent template. Until we get that figured out, use |
| 8 | # m4 macros do our inheritance |
| 9 | |
| 10 | |
| 11 | # Service |
| 12 | |
| 13 | |
| 14 | # Subscriber |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | # end m4 macros |
| 20 | |
| 21 | |
| 22 | |
| 23 | node_types: |
| 24 | |
Matteo Scandolo | 9563aeb | 2016-09-28 16:07:58 -0700 | [diff] [blame] | 25 | tosca.nodes.MetroNetworkSystem: |
Matteo Scandolo | 770c49f | 2016-09-23 15:07:38 -0700 | [diff] [blame] | 26 | derived_from: tosca.nodes.Root |
| 27 | description: > |
| 28 | CORD: The Metro Network Service. |
| 29 | capabilities: |
| 30 | scalable: |
| 31 | type: tosca.capabilities.Scalable |
| 32 | service: |
| 33 | type: tosca.capabilities.xos.Service |
| 34 | properties: |
| 35 | no-delete: |
| 36 | type: boolean |
| 37 | default: false |
| 38 | description: Do not allow Tosca to delete this object |
| 39 | no-create: |
| 40 | type: boolean |
| 41 | default: false |
| 42 | description: Do not allow Tosca to create this object |
| 43 | no-update: |
| 44 | type: boolean |
| 45 | default: false |
| 46 | description: Do not allow Tosca to update this object |
| 47 | replaces: |
| 48 | type: string |
| 49 | required: false |
| 50 | descrption: Replaces/renames this object |
Matteo Scandolo | 9563aeb | 2016-09-28 16:07:58 -0700 | [diff] [blame] | 51 | administrativeState: |
Matteo Scandolo | 770c49f | 2016-09-23 15:07:38 -0700 | [diff] [blame] | 52 | type: string |
Matteo Scandolo | 9563aeb | 2016-09-28 16:07:58 -0700 | [diff] [blame] | 53 | required: true |
| 54 | restUrl: |
Matteo Scandolo | 770c49f | 2016-09-23 15:07:38 -0700 | [diff] [blame] | 55 | type: string |
| 56 | required: false |
Matteo Scandolo | 9563aeb | 2016-09-28 16:07:58 -0700 | [diff] [blame] | 57 | |
Matteo Scandolo | ddce4ec | 2016-09-26 13:11:03 -0700 | [diff] [blame] | 58 | |
| 59 | tosca.nodes.MetroNetworkDevice: |
| 60 | derived_from: tosca.nodes.Root |
| 61 | description: > |
| 62 | CORD: The Metro Network Device. |
| 63 | properties: |
| 64 | no-delete: |
| 65 | type: boolean |
| 66 | default: false |
| 67 | description: Do not allow Tosca to delete this object |
| 68 | no-create: |
| 69 | type: boolean |
| 70 | default: false |
| 71 | description: Do not allow Tosca to create this object |
| 72 | no-update: |
| 73 | type: boolean |
| 74 | default: false |
| 75 | description: Do not allow Tosca to update this object |
| 76 | replaces: |
| 77 | type: string |
| 78 | required: false |
| 79 | descrption: Replaces/renames this object |
| 80 | restCtrlUrl: |
| 81 | type: string |
| 82 | required: true |
| 83 | username: |
| 84 | type: string |
| 85 | required: true |
| 86 | password: |
| 87 | type: string |
| 88 | required: true |
| 89 | administrativeState: |
| 90 | type: string |
| 91 | required: true |
| 92 | authType: |
| 93 | type: string |
| 94 | required: false |
Matteo Scandolo | 9563aeb | 2016-09-28 16:07:58 -0700 | [diff] [blame] | 95 | id: |
| 96 | type: string |
| 97 | required: true |