Matteo Scandolo | fcf842e | 2017-08-08 13:05:25 -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 | |
Matteo Scandolo | 770c49f | 2016-09-23 15:07:38 -0700 | [diff] [blame] | 17 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 18 | |
| 19 | # compile this with "m4 metronet.m4 > metronet.yaml" |
| 20 | |
| 21 | # include macros |
| 22 | include(macros.m4) |
| 23 | |
| 24 | node_types: |
Andrea Campanella | e92c909 | 2017-03-17 10:44:37 +0100 | [diff] [blame] | 25 | |
| 26 | tosca.nodes.VNodGlobalService: |
| 27 | description: > |
| 28 | CORD: The MetroNet Service. |
| 29 | derived_from: tosca.nodes.Root |
| 30 | capabilities: |
| 31 | xos_base_service_caps |
| 32 | properties: |
| 33 | xos_base_props |
| 34 | xos_base_service_props |
| 35 | |
| 36 | tosca.nodes.MetroNetworkSystem: |
Matteo Scandolo | 770c49f | 2016-09-23 15:07:38 -0700 | [diff] [blame] | 37 | derived_from: tosca.nodes.Root |
| 38 | description: > |
| 39 | CORD: The Metro Network Service. |
| 40 | capabilities: |
| 41 | xos_base_service_caps |
| 42 | properties: |
| 43 | xos_base_props |
Andrea Campanella | e92c909 | 2017-03-17 10:44:37 +0100 | [diff] [blame] | 44 | xos_base_service_props |
Matteo Scandolo | 9563aeb | 2016-09-28 16:07:58 -0700 | [diff] [blame] | 45 | administrativeState: |
| 46 | type: string |
| 47 | required: true |
| 48 | restUrl: |
| 49 | type: string |
| 50 | required: false |
| 51 | |
Matteo Scandolo | ddce4ec | 2016-09-26 13:11:03 -0700 | [diff] [blame] | 52 | |
Andrea Campanella | e92c909 | 2017-03-17 10:44:37 +0100 | [diff] [blame] | 53 | tosca.nodes.MetroNetworkDevice: |
Matteo Scandolo | ddce4ec | 2016-09-26 13:11:03 -0700 | [diff] [blame] | 54 | derived_from: tosca.nodes.Root |
| 55 | description: > |
| 56 | CORD: The Metro Network Device. |
| 57 | properties: |
| 58 | xos_base_props |
| 59 | restCtrlUrl: |
| 60 | type: string |
| 61 | required: true |
| 62 | username: |
| 63 | type: string |
| 64 | required: true |
| 65 | password: |
| 66 | type: string |
| 67 | required: true |
| 68 | administrativeState: |
| 69 | type: string |
| 70 | required: true |
| 71 | authType: |
| 72 | type: string |
| 73 | required: false |
Matteo Scandolo | 9563aeb | 2016-09-28 16:07:58 -0700 | [diff] [blame] | 74 | id: |
| 75 | type: string |
| 76 | required: true |
Andrea Campanella | e92c909 | 2017-03-17 10:44:37 +0100 | [diff] [blame] | 77 | |
| 78 | tosca.nodes.EcordBandwidthProfile: |
| 79 | derived_from: tosca.nodes.Root |
| 80 | description: > |
| 81 | CORD: The ecord bandwith profile. |
| 82 | capabilities: |
Andrea Campanella | e92c909 | 2017-03-17 10:44:37 +0100 | [diff] [blame] | 83 | properties: |
| 84 | xos_base_props |
| 85 | bwpcfgcbs: |
| 86 | type: integer |
| 87 | required: false |
| 88 | bwpcfgebs: |
| 89 | type: integer |
| 90 | required: false |
| 91 | bwpcfgcir: |
| 92 | type: integer |
| 93 | required: false |
| 94 | bwpcfgeir: |
| 95 | type: integer |
| 96 | required: false |
| 97 | name: |
| 98 | type: string |
| 99 | required: true |
| 100 | |
Andrea Campanella | 1123755 | 2017-03-21 17:21:20 +0100 | [diff] [blame] | 101 | tosca.nodes.EcordUserNetworkInterface: |
| 102 | derived_from: tosca.nodes.Root |
| 103 | description: > |
| 104 | CORD: The ecord user netowrk interface |
| 105 | capabilities: |
| 106 | properties: |
| 107 | xos_base_props |
| 108 | enabled: |
| 109 | type: boolean |
| 110 | required: false |
| 111 | capacity: |
| 112 | type: integer |
| 113 | required: false |
| 114 | bw_used: |
| 115 | type: integer |
| 116 | required: false |
| 117 | vlanIds: |
| 118 | type: string |
| 119 | required: false |
| 120 | name: |
| 121 | type: string |
| 122 | required: true |
| 123 | location: |
| 124 | type: string |
| 125 | required: false |
| 126 | latlng: |
| 127 | type: string |
| 128 | required: false |
| 129 | |
Andrea Campanella | e92c909 | 2017-03-17 10:44:37 +0100 | [diff] [blame] | 130 | tosca.relationships.UsesBandwidthProfile: |
| 131 | derived_from: tosca.relationships.Root |
| 132 | valid_target_types: [ tosca.capabilities.xos.EcordBandwidthProfile ] |