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: |
Andrea Campanella | e92c909 | 2017-03-17 10:44:37 +0100 | [diff] [blame] | 24 | |
| 25 | tosca.nodes.VNodGlobalService: |
| 26 | description: > |
| 27 | CORD: The MetroNet Service. |
| 28 | derived_from: tosca.nodes.Root |
| 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 |
| 51 | kind: |
| 52 | type: string |
| 53 | default: generic |
| 54 | description: Type of service. |
| 55 | view_url: |
| 56 | type: string |
| 57 | required: false |
| 58 | description: URL to follow when icon is clicked in the Service Directory. |
| 59 | icon_url: |
| 60 | type: string |
| 61 | required: false |
| 62 | description: ICON to display in the Service Directory. |
| 63 | enabled: |
| 64 | type: boolean |
| 65 | default: true |
| 66 | published: |
| 67 | type: boolean |
| 68 | default: true |
| 69 | description: If True then display this Service in the Service Directory. |
| 70 | public_key: |
| 71 | type: string |
| 72 | required: false |
| 73 | description: Public key to install into Instances to allows Services to SSH into them. |
| 74 | private_key_fn: |
| 75 | type: string |
| 76 | required: false |
| 77 | description: Location of private key file |
| 78 | versionNumber: |
| 79 | type: string |
| 80 | required: false |
| 81 | description: Version number of Service. |
| 82 | |
| 83 | tosca.nodes.MetroNetworkSystem: |
Matteo Scandolo | 770c49f | 2016-09-23 15:07:38 -0700 | [diff] [blame] | 84 | derived_from: tosca.nodes.Root |
| 85 | description: > |
| 86 | CORD: The Metro Network Service. |
| 87 | capabilities: |
| 88 | scalable: |
| 89 | type: tosca.capabilities.Scalable |
| 90 | service: |
| 91 | type: tosca.capabilities.xos.Service |
| 92 | properties: |
| 93 | no-delete: |
| 94 | type: boolean |
| 95 | default: false |
| 96 | description: Do not allow Tosca to delete this object |
| 97 | no-create: |
| 98 | type: boolean |
| 99 | default: false |
| 100 | description: Do not allow Tosca to create this object |
| 101 | no-update: |
| 102 | type: boolean |
| 103 | default: false |
| 104 | description: Do not allow Tosca to update this object |
| 105 | replaces: |
| 106 | type: string |
| 107 | required: false |
| 108 | descrption: Replaces/renames this object |
Andrea Campanella | e92c909 | 2017-03-17 10:44:37 +0100 | [diff] [blame] | 109 | kind: |
| 110 | type: string |
| 111 | default: generic |
| 112 | description: Type of service. |
| 113 | view_url: |
| 114 | type: string |
| 115 | required: false |
| 116 | description: URL to follow when icon is clicked in the Service Directory. |
| 117 | icon_url: |
| 118 | type: string |
| 119 | required: false |
| 120 | description: ICON to display in the Service Directory. |
| 121 | enabled: |
| 122 | type: boolean |
| 123 | default: true |
| 124 | published: |
| 125 | type: boolean |
| 126 | default: true |
| 127 | description: If True then display this Service in the Service Directory. |
| 128 | public_key: |
| 129 | type: string |
| 130 | required: false |
| 131 | description: Public key to install into Instances to allows Services to SSH into them. |
| 132 | private_key_fn: |
| 133 | type: string |
| 134 | required: false |
| 135 | description: Location of private key file |
| 136 | versionNumber: |
| 137 | type: string |
| 138 | required: false |
| 139 | description: Version number of Service. |
Matteo Scandolo | 9563aeb | 2016-09-28 16:07:58 -0700 | [diff] [blame] | 140 | administrativeState: |
Matteo Scandolo | 770c49f | 2016-09-23 15:07:38 -0700 | [diff] [blame] | 141 | type: string |
Matteo Scandolo | 9563aeb | 2016-09-28 16:07:58 -0700 | [diff] [blame] | 142 | required: true |
| 143 | restUrl: |
Matteo Scandolo | 770c49f | 2016-09-23 15:07:38 -0700 | [diff] [blame] | 144 | type: string |
| 145 | required: false |
Matteo Scandolo | 9563aeb | 2016-09-28 16:07:58 -0700 | [diff] [blame] | 146 | |
Matteo Scandolo | ddce4ec | 2016-09-26 13:11:03 -0700 | [diff] [blame] | 147 | |
Andrea Campanella | e92c909 | 2017-03-17 10:44:37 +0100 | [diff] [blame] | 148 | tosca.nodes.MetroNetworkDevice: |
Matteo Scandolo | ddce4ec | 2016-09-26 13:11:03 -0700 | [diff] [blame] | 149 | derived_from: tosca.nodes.Root |
| 150 | description: > |
| 151 | CORD: The Metro Network Device. |
| 152 | properties: |
| 153 | no-delete: |
| 154 | type: boolean |
| 155 | default: false |
| 156 | description: Do not allow Tosca to delete this object |
| 157 | no-create: |
| 158 | type: boolean |
| 159 | default: false |
| 160 | description: Do not allow Tosca to create this object |
| 161 | no-update: |
| 162 | type: boolean |
| 163 | default: false |
| 164 | description: Do not allow Tosca to update this object |
| 165 | replaces: |
| 166 | type: string |
| 167 | required: false |
| 168 | descrption: Replaces/renames this object |
| 169 | restCtrlUrl: |
| 170 | type: string |
| 171 | required: true |
| 172 | username: |
| 173 | type: string |
| 174 | required: true |
| 175 | password: |
| 176 | type: string |
| 177 | required: true |
| 178 | administrativeState: |
| 179 | type: string |
| 180 | required: true |
| 181 | authType: |
| 182 | type: string |
| 183 | required: false |
Matteo Scandolo | 9563aeb | 2016-09-28 16:07:58 -0700 | [diff] [blame] | 184 | id: |
| 185 | type: string |
| 186 | required: true |
Andrea Campanella | e92c909 | 2017-03-17 10:44:37 +0100 | [diff] [blame] | 187 | |
| 188 | tosca.nodes.EcordBandwidthProfile: |
| 189 | derived_from: tosca.nodes.Root |
| 190 | description: > |
| 191 | CORD: The ecord bandwith profile. |
| 192 | capabilities: |
Andrea Campanella | e92c909 | 2017-03-17 10:44:37 +0100 | [diff] [blame] | 193 | properties: |
| 194 | no-delete: |
| 195 | type: boolean |
| 196 | default: false |
| 197 | description: Do not allow Tosca to delete this object |
| 198 | no-create: |
| 199 | type: boolean |
| 200 | default: false |
| 201 | description: Do not allow Tosca to create this object |
| 202 | no-update: |
| 203 | type: boolean |
| 204 | default: false |
| 205 | description: Do not allow Tosca to update this object |
| 206 | replaces: |
| 207 | type: string |
| 208 | required: false |
| 209 | descrption: Replaces/renames this object |
| 210 | bwpcfgcbs: |
| 211 | type: integer |
| 212 | required: false |
| 213 | bwpcfgebs: |
| 214 | type: integer |
| 215 | required: false |
| 216 | bwpcfgcir: |
| 217 | type: integer |
| 218 | required: false |
| 219 | bwpcfgeir: |
| 220 | type: integer |
| 221 | required: false |
| 222 | name: |
| 223 | type: string |
| 224 | required: true |
| 225 | |
Andrea Campanella | 1123755 | 2017-03-21 17:21:20 +0100 | [diff] [blame^] | 226 | tosca.nodes.EcordUserNetworkInterface: |
| 227 | derived_from: tosca.nodes.Root |
| 228 | description: > |
| 229 | CORD: The ecord user netowrk interface |
| 230 | capabilities: |
| 231 | properties: |
| 232 | no-delete: |
| 233 | type: boolean |
| 234 | default: false |
| 235 | description: Do not allow Tosca to delete this object |
| 236 | no-create: |
| 237 | type: boolean |
| 238 | default: false |
| 239 | description: Do not allow Tosca to create this object |
| 240 | no-update: |
| 241 | type: boolean |
| 242 | default: false |
| 243 | description: Do not allow Tosca to update this object |
| 244 | replaces: |
| 245 | type: string |
| 246 | required: false |
| 247 | descrption: Replaces/renames this object |
| 248 | enabled: |
| 249 | type: boolean |
| 250 | required: false |
| 251 | capacity: |
| 252 | type: integer |
| 253 | required: false |
| 254 | bw_used: |
| 255 | type: integer |
| 256 | required: false |
| 257 | vlanIds: |
| 258 | type: string |
| 259 | required: false |
| 260 | name: |
| 261 | type: string |
| 262 | required: true |
| 263 | location: |
| 264 | type: string |
| 265 | required: false |
| 266 | latlng: |
| 267 | type: string |
| 268 | required: false |
| 269 | |
Andrea Campanella | e92c909 | 2017-03-17 10:44:37 +0100 | [diff] [blame] | 270 | tosca.relationships.UsesBandwidthProfile: |
| 271 | derived_from: tosca.relationships.Root |
| 272 | valid_target_types: [ tosca.capabilities.xos.EcordBandwidthProfile ] |