kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 1 | { |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 2 | "cid": "{{cid}}", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 3 | "flowType": "TCA Hi Lo", |
| 4 | "inputs": [], |
| 5 | "nodes": [ |
| 6 | { |
| 7 | "capabilities": [ |
| 8 | { |
| 9 | "name": "feature", |
| 10 | "type": { |
| 11 | "id": "template.yaml/tosca.capabilities.Node", |
| 12 | "name": "tosca.capabilities.Node" |
| 13 | } |
| 14 | } |
| 15 | ], |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 16 | "description": "/sdc/v1/catalog/resources/{{vf_id}}/toscaModel/", |
| 17 | "id": "{{vf_id}}", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 18 | "name": "tca-docker", |
| 19 | "ndata": { |
| 20 | "label": "tca-docker", |
| 21 | "name": "n.1559041944060.0", |
| 22 | "ports": [], |
| 23 | "px": 364, |
| 24 | "py": 437, |
| 25 | "radius": 30, |
| 26 | "x": 365, |
| 27 | "y": 438 |
| 28 | }, |
| 29 | "nid": "n.1559041944060.0", |
| 30 | "properties": [ |
| 31 | { |
| 32 | "default": 10000, |
| 33 | "name": "cpu_period", |
| 34 | "required": true, |
| 35 | "type": "integer" |
| 36 | }, |
| 37 | { |
| 38 | "default": 30000, |
| 39 | "name": "cpu_quota", |
| 40 | "required": true, |
| 41 | "type": "integer" |
| 42 | }, |
| 43 | { |
| 44 | "default": 256, |
| 45 | "name": "cpu_shares", |
| 46 | "required": true, |
| 47 | "type": "integer" |
| 48 | }, |
| 49 | { |
| 50 | "name": "image", |
| 51 | "required": true, |
| 52 | "type": "string" |
| 53 | }, |
| 54 | { |
| 55 | "assignment": { |
| 56 | "value": { |
| 57 | "get_property": [ |
| 58 | "SELF", |
| 59 | "composition", |
| 60 | "location_id" |
| 61 | ] |
| 62 | } |
| 63 | }, |
| 64 | "name": "location_id", |
| 65 | "required": true, |
| 66 | "type": "string", |
| 67 | "value": { |
| 68 | "get_property": [ |
| 69 | "SELF", |
| 70 | "composition", |
| 71 | "location_id" |
| 72 | ] |
| 73 | } |
| 74 | }, |
| 75 | { |
| 76 | "default": "500m", |
| 77 | "name": "mem_limit", |
| 78 | "required": true, |
| 79 | "type": "string" |
| 80 | }, |
| 81 | { |
| 82 | "default": "on-failure", |
| 83 | "name": "restart_policy.Name", |
| 84 | "required": true, |
| 85 | "type": "string" |
| 86 | }, |
| 87 | { |
| 88 | "default": 3, |
| 89 | "name": "restart_policy.max_retry_counts", |
| 90 | "required": true, |
| 91 | "type": "integer" |
| 92 | }, |
| 93 | { |
| 94 | "name": "service_component_type", |
| 95 | "required": true, |
| 96 | "type": "string" |
| 97 | } |
| 98 | ], |
| 99 | "requirements": [ |
| 100 | { |
| 101 | "capability": { |
| 102 | "id": "template.yaml/dcae.capabilities.dmmap.topic", |
| 103 | "name": "dcae.capabilities.dmmap.topic" |
| 104 | }, |
| 105 | "name": "stream_subscribe_0", |
| 106 | "node": "topic0", |
| 107 | "relationship": { |
| 108 | "type": "dcae.relationships.subscribe_to_events" |
| 109 | } |
| 110 | }, |
| 111 | { |
| 112 | "capability": { |
| 113 | "id": "template.yaml/dcae.capabilities.dmmap.topic", |
| 114 | "name": "dcae.capabilities.dmmap.topic" |
| 115 | }, |
| 116 | "name": "stream_publish_0", |
| 117 | "node": "topic1", |
| 118 | "relationship": { |
| 119 | "type": "dcae.relationships.publish_events" |
| 120 | } |
| 121 | }, |
| 122 | { |
| 123 | "capability": { |
| 124 | "id": "template.yaml/dcae.capabilities.dockerHost", |
| 125 | "name": "dcae.capabilities.dockerHost" |
| 126 | }, |
| 127 | "name": "host", |
| 128 | "relationship": { |
| 129 | "type": "dcae.relationships.component_contained_in" |
| 130 | } |
| 131 | }, |
| 132 | { |
| 133 | "capability": { |
| 134 | "id": "template.yaml/dcae.capabilities.composition.host", |
| 135 | "name": "dcae.capabilities.composition.host" |
| 136 | }, |
| 137 | "name": "composition" |
| 138 | }, |
| 139 | { |
| 140 | "capability": { |
| 141 | "id": "template.yaml/tosca.capabilities.Node", |
| 142 | "name": "tosca.capabilities.Node" |
| 143 | }, |
| 144 | "name": "dependency", |
| 145 | "node": "tosca.nodes.Root", |
| 146 | "occurrences": [ |
| 147 | 0, |
| 148 | "UNBOUNDED" |
| 149 | ], |
| 150 | "relationship": { |
| 151 | "type": "tosca.relationships.DependsOn" |
| 152 | } |
| 153 | } |
| 154 | ], |
| 155 | "type": { |
| 156 | "name": "tosca.dcae.nodes.dockerApp.tca-docker" |
| 157 | }, |
| 158 | "typeinfo": { |
| 159 | "capabilities": [ |
| 160 | { |
| 161 | "name": "feature", |
| 162 | "type": { |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 163 | "id": "{{vf_id}}/tosca.capabilities.Node", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 164 | "name": "tosca.capabilities.Node" |
| 165 | } |
| 166 | } |
| 167 | ], |
| 168 | "hierarchy": [ |
| 169 | { |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 170 | "id": "{{vf_id}}/tosca.dcae.nodes.dockerApp", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 171 | "name": "tosca.dcae.nodes.dockerApp" |
| 172 | }, |
| 173 | { |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 174 | "id": "{{vf_id}}/tosca.dcae.nodes.Root", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 175 | "name": "tosca.dcae.nodes.Root" |
| 176 | }, |
| 177 | { |
| 178 | "description": "The TOSCA Node Type all other TOSCA base Node Types derive from", |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 179 | "id": "{{vf_id}}/tosca.nodes.Root", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 180 | "name": "tosca.nodes.Root" |
| 181 | } |
| 182 | ], |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 183 | "id": "{{vf_id}}/tosca.dcae.nodes.dockerApp.tca-docker", |
| 184 | "itemId": "{{vf_id}}/tosca.dcae.nodes.dockerApp.tca-docker", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 185 | "name": "tosca.dcae.nodes.dockerApp.tca-docker", |
| 186 | "requirements": [ |
| 187 | { |
| 188 | "capability": { |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 189 | "id": "{{vf_id}}/dcae.capabilities.dmmap.topic", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 190 | "name": "dcae.capabilities.dmmap.topic" |
| 191 | }, |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 192 | "id": "{{vf_id}}/stream_subscribe_0", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 193 | "name": "stream_subscribe_0", |
| 194 | "node": { |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 195 | "id": "{{vf_id}}/dcae.capabilities.dmmap.topic", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 196 | "name": "dcae.capabilities.dmmap.topic" |
| 197 | }, |
| 198 | "relationship": { |
| 199 | "type": "dcae.relationships.subscribe_to_events" |
| 200 | } |
| 201 | }, |
| 202 | { |
| 203 | "capability": { |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 204 | "id": "{{vf_id}}/dcae.capabilities.dmmap.topic", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 205 | "name": "dcae.capabilities.dmmap.topic" |
| 206 | }, |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 207 | "id": "{{vf_id}}/stream_publish_0", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 208 | "name": "stream_publish_0", |
| 209 | "node": { |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 210 | "id": "{{vf_id}}/dcae.capabilities.dmmap.topic", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 211 | "name": "dcae.capabilities.dmmap.topic" |
| 212 | }, |
| 213 | "relationship": { |
| 214 | "type": "dcae.relationships.publish_events" |
| 215 | } |
| 216 | }, |
| 217 | { |
| 218 | "capability": { |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 219 | "id": "{{vf_id}}/dcae.capabilities.dockerHost", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 220 | "name": "dcae.capabilities.dockerHost" |
| 221 | }, |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 222 | "id": "{{vf_id}}/host", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 223 | "name": "host", |
| 224 | "node": { |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 225 | "id": "{{vf_id}}/dcae.capabilities.dockerHost", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 226 | "name": "dcae.capabilities.dockerHost" |
| 227 | }, |
| 228 | "relationship": { |
| 229 | "type": "dcae.relationships.component_contained_in" |
| 230 | } |
| 231 | }, |
| 232 | { |
| 233 | "capability": { |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 234 | "id": "{{vf_id}}/dcae.capabilities.composition.host", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 235 | "name": "dcae.capabilities.composition.host" |
| 236 | }, |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 237 | "id": "{{vf_id}}/composition", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 238 | "name": "composition", |
| 239 | "node": { |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 240 | "id": "{{vf_id}}/dcae.capabilities.composition.host", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 241 | "name": "dcae.capabilities.composition.host" |
| 242 | } |
| 243 | }, |
| 244 | { |
| 245 | "capability": { |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 246 | "id": "{{vf_id}}/tosca.capabilities.Node", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 247 | "name": "tosca.capabilities.Node" |
| 248 | }, |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 249 | "id": "{{vf_id}}/dependency", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 250 | "name": "dependency", |
| 251 | "node": { |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 252 | "id": "{{vf_id}}/tosca.capabilities.Node", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 253 | "name": "tosca.capabilities.Node" |
| 254 | }, |
| 255 | "occurrences": [ |
| 256 | 0, |
| 257 | "UNBOUNDED" |
| 258 | ], |
| 259 | "relationship": { |
| 260 | "type": "tosca.relationships.DependsOn" |
| 261 | } |
| 262 | } |
| 263 | ] |
| 264 | } |
| 265 | }, |
| 266 | { |
| 267 | "capabilities": [ |
| 268 | { |
| 269 | "name": "topic", |
| 270 | "properties": [ |
| 271 | { |
| 272 | "assignment": { |
| 273 | "value": { |
| 274 | "get_property": [ |
| 275 | "SELF", |
| 276 | "aaf_password" |
| 277 | ] |
| 278 | } |
| 279 | }, |
| 280 | "name": "aaf_password", |
| 281 | "type": "string" |
| 282 | }, |
| 283 | { |
| 284 | "assignment": { |
| 285 | "value": { |
| 286 | "get_property": [ |
| 287 | "SELF", |
| 288 | "aaf_username" |
| 289 | ] |
| 290 | } |
| 291 | }, |
| 292 | "name": "aaf_username", |
| 293 | "type": "string" |
| 294 | }, |
| 295 | { |
| 296 | "assignment": { |
| 297 | "value": { |
| 298 | "get_property": [ |
| 299 | "SELF", |
| 300 | "client_role" |
| 301 | ] |
| 302 | } |
| 303 | }, |
| 304 | "name": "client_role", |
| 305 | "type": "string" |
| 306 | }, |
| 307 | { |
| 308 | "assignment": { |
| 309 | "value": { |
| 310 | "get_property": [ |
| 311 | "SELF", |
| 312 | "location" |
| 313 | ] |
| 314 | } |
| 315 | }, |
| 316 | "name": "location", |
| 317 | "type": "string" |
| 318 | }, |
| 319 | { |
| 320 | "assignment": { |
| 321 | "value": { |
| 322 | "get_property": [ |
| 323 | "SELF", |
| 324 | "node_name" |
| 325 | ] |
| 326 | } |
| 327 | }, |
| 328 | "name": "node_name", |
| 329 | "type": "string" |
| 330 | }, |
| 331 | { |
| 332 | "assignment": { |
| 333 | "value": { |
| 334 | "get_property": [ |
| 335 | "SELF", |
| 336 | "topic_name" |
| 337 | ] |
| 338 | } |
| 339 | }, |
| 340 | "name": "topic_name", |
| 341 | "type": "string" |
| 342 | } |
| 343 | ], |
| 344 | "type": { |
| 345 | "id": "template.yaml/dcae.capabilities.dmmap.topic", |
| 346 | "name": "dcae.capabilities.dmmap.topic" |
| 347 | } |
| 348 | }, |
| 349 | { |
| 350 | "name": "feature", |
| 351 | "type": { |
| 352 | "id": "template.yaml/tosca.capabilities.Node", |
| 353 | "name": "tosca.capabilities.Node" |
| 354 | } |
| 355 | } |
| 356 | ], |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 357 | "description": "/sdc/v1/catalog/resources/{{vf_id}}/toscaModel/", |
| 358 | "id": "{{vf_id}}", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 359 | "name": "topic0", |
| 360 | "ndata": { |
| 361 | "label": "topic0", |
| 362 | "name": "n.1559041944077.1", |
| 363 | "ports": [], |
| 364 | "px": 414, |
| 365 | "py": 430.9243296300162, |
| 366 | "radius": 30, |
| 367 | "x": 415, |
| 368 | "y": 431.9243296300162 |
| 369 | }, |
| 370 | "nid": "n.1559041944077.1", |
| 371 | "properties": [ |
| 372 | { |
| 373 | "assignment": { |
| 374 | "value": { |
| 375 | "get_input": "topic0_aaf_password" |
| 376 | } |
| 377 | }, |
| 378 | "name": "aaf_password", |
| 379 | "type": "string", |
| 380 | "value": { |
| 381 | "get_input": "topic0_aaf_password" |
| 382 | } |
| 383 | }, |
| 384 | { |
| 385 | "assignment": { |
| 386 | "value": { |
| 387 | "get_input": "topic0_aaf_username" |
| 388 | } |
| 389 | }, |
| 390 | "name": "aaf_username", |
| 391 | "type": "string", |
| 392 | "value": { |
| 393 | "get_input": "topic0_aaf_username" |
| 394 | } |
| 395 | }, |
| 396 | { |
| 397 | "assignment": { |
| 398 | "value": { |
| 399 | "get_input": "topic0_client_role" |
| 400 | } |
| 401 | }, |
| 402 | "name": "client_role", |
| 403 | "type": "string", |
| 404 | "value": { |
| 405 | "get_input": "topic0_client_role" |
| 406 | } |
| 407 | }, |
| 408 | { |
| 409 | "assignment": { |
| 410 | "value": { |
| 411 | "get_property": [ |
| 412 | "SELF", |
| 413 | "composition", |
| 414 | "location_id" |
| 415 | ] |
| 416 | } |
| 417 | }, |
| 418 | "name": "location", |
| 419 | "type": "string", |
| 420 | "value": { |
| 421 | "get_property": [ |
| 422 | "SELF", |
| 423 | "composition", |
| 424 | "location_id" |
| 425 | ] |
| 426 | } |
| 427 | }, |
| 428 | { |
| 429 | "assignment": { |
| 430 | "value": "__GET_NODE_NAME__" |
| 431 | }, |
| 432 | "name": "node_name", |
| 433 | "type": "string", |
| 434 | "value": "__GET_NODE_NAME__" |
| 435 | }, |
| 436 | { |
| 437 | "assignment": { |
| 438 | "value": "" |
| 439 | }, |
| 440 | "name": "topic_name", |
| 441 | "type": "string" |
| 442 | } |
| 443 | ], |
| 444 | "requirements": [ |
| 445 | { |
| 446 | "capability": { |
| 447 | "id": "template.yaml/dcae.capabilities.composition.host", |
| 448 | "name": "dcae.capabilities.composition.host" |
| 449 | }, |
| 450 | "name": "composition" |
| 451 | }, |
| 452 | { |
| 453 | "capability": { |
| 454 | "id": "template.yaml/tosca.capabilities.Node", |
| 455 | "name": "tosca.capabilities.Node" |
| 456 | }, |
| 457 | "name": "dependency", |
| 458 | "node": "tosca.nodes.Root", |
| 459 | "occurrences": [ |
| 460 | 0, |
| 461 | "UNBOUNDED" |
| 462 | ], |
| 463 | "relationship": { |
| 464 | "type": "tosca.relationships.DependsOn" |
| 465 | } |
| 466 | } |
| 467 | ], |
| 468 | "type": { |
| 469 | "name": "tosca.dcae.nodes.dmaap.topic" |
| 470 | }, |
| 471 | "typeinfo": { |
| 472 | "capabilities": [ |
| 473 | { |
| 474 | "name": "topic", |
| 475 | "type": { |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 476 | "id": "{{vf_id}}/dcae.capabilities.dmmap.topic", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 477 | "name": "dcae.capabilities.dmmap.topic" |
| 478 | } |
| 479 | }, |
| 480 | { |
| 481 | "name": "feature", |
| 482 | "type": { |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 483 | "id": "{{vf_id}}/tosca.capabilities.Node", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 484 | "name": "tosca.capabilities.Node" |
| 485 | } |
| 486 | } |
| 487 | ], |
| 488 | "hierarchy": [ |
| 489 | { |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 490 | "id": "{{vf_id}}/tosca.dcae.nodes.Root", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 491 | "name": "tosca.dcae.nodes.Root" |
| 492 | }, |
| 493 | { |
| 494 | "description": "The TOSCA Node Type all other TOSCA base Node Types derive from", |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 495 | "id": "{{vf_id}}/tosca.nodes.Root", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 496 | "name": "tosca.nodes.Root" |
| 497 | } |
| 498 | ], |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 499 | "id": "{{vf_id}}/tosca.dcae.nodes.dmaap.topic", |
| 500 | "itemId": "{{vf_id}}/tosca.dcae.nodes.dmaap.topic", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 501 | "name": "tosca.dcae.nodes.dmaap.topic", |
| 502 | "requirements": [ |
| 503 | { |
| 504 | "capability": { |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 505 | "id": "{{vf_id}}/dcae.capabilities.composition.host", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 506 | "name": "dcae.capabilities.composition.host" |
| 507 | }, |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 508 | "id": "{{vf_id}}/composition", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 509 | "name": "composition", |
| 510 | "node": { |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 511 | "id": "{{vf_id}}/dcae.capabilities.composition.host", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 512 | "name": "dcae.capabilities.composition.host" |
| 513 | } |
| 514 | }, |
| 515 | { |
| 516 | "capability": { |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 517 | "id": "{{vf_id}}/tosca.capabilities.Node", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 518 | "name": "tosca.capabilities.Node" |
| 519 | }, |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 520 | "id": "{{vf_id}}/dependency", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 521 | "name": "dependency", |
| 522 | "node": { |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 523 | "id": "{{vf_id}}/tosca.capabilities.Node", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 524 | "name": "tosca.capabilities.Node" |
| 525 | }, |
| 526 | "occurrences": [ |
| 527 | 0, |
| 528 | "UNBOUNDED" |
| 529 | ], |
| 530 | "relationship": { |
| 531 | "type": "tosca.relationships.DependsOn" |
| 532 | } |
| 533 | } |
| 534 | ] |
| 535 | } |
| 536 | }, |
| 537 | { |
| 538 | "capabilities": [ |
| 539 | { |
| 540 | "name": "topic", |
| 541 | "properties": [ |
| 542 | { |
| 543 | "assignment": { |
| 544 | "value": { |
| 545 | "get_property": [ |
| 546 | "SELF", |
| 547 | "aaf_password" |
| 548 | ] |
| 549 | } |
| 550 | }, |
| 551 | "name": "aaf_password", |
| 552 | "type": "string" |
| 553 | }, |
| 554 | { |
| 555 | "assignment": { |
| 556 | "value": { |
| 557 | "get_property": [ |
| 558 | "SELF", |
| 559 | "aaf_username" |
| 560 | ] |
| 561 | } |
| 562 | }, |
| 563 | "name": "aaf_username", |
| 564 | "type": "string" |
| 565 | }, |
| 566 | { |
| 567 | "assignment": { |
| 568 | "value": { |
| 569 | "get_property": [ |
| 570 | "SELF", |
| 571 | "client_role" |
| 572 | ] |
| 573 | } |
| 574 | }, |
| 575 | "name": "client_role", |
| 576 | "type": "string" |
| 577 | }, |
| 578 | { |
| 579 | "assignment": { |
| 580 | "value": { |
| 581 | "get_property": [ |
| 582 | "SELF", |
| 583 | "location" |
| 584 | ] |
| 585 | } |
| 586 | }, |
| 587 | "name": "location", |
| 588 | "type": "string" |
| 589 | }, |
| 590 | { |
| 591 | "assignment": { |
| 592 | "value": { |
| 593 | "get_property": [ |
| 594 | "SELF", |
| 595 | "node_name" |
| 596 | ] |
| 597 | } |
| 598 | }, |
| 599 | "name": "node_name", |
| 600 | "type": "string" |
| 601 | }, |
| 602 | { |
| 603 | "assignment": { |
| 604 | "value": { |
| 605 | "get_property": [ |
| 606 | "SELF", |
| 607 | "topic_name" |
| 608 | ] |
| 609 | } |
| 610 | }, |
| 611 | "name": "topic_name", |
| 612 | "type": "string" |
| 613 | } |
| 614 | ], |
| 615 | "type": { |
| 616 | "id": "template.yaml/dcae.capabilities.dmmap.topic", |
| 617 | "name": "dcae.capabilities.dmmap.topic" |
| 618 | } |
| 619 | }, |
| 620 | { |
| 621 | "name": "feature", |
| 622 | "type": { |
| 623 | "id": "template.yaml/tosca.capabilities.Node", |
| 624 | "name": "tosca.capabilities.Node" |
| 625 | } |
| 626 | } |
| 627 | ], |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 628 | "description": "/sdc/v1/catalog/resources/{{vf_id}}/toscaModel/", |
| 629 | "id": "{{vf_id}}", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 630 | "name": "topic1", |
| 631 | "ndata": { |
| 632 | "label": "topic1", |
| 633 | "name": "n.1559041944083.2", |
| 634 | "ports": [], |
| 635 | "px": 464, |
| 636 | "py": 451.6297431929615, |
| 637 | "radius": 30, |
| 638 | "x": 465, |
| 639 | "y": 452.6297431929615 |
| 640 | }, |
| 641 | "nid": "n.1559041944083.2", |
| 642 | "properties": [ |
| 643 | { |
| 644 | "assignment": { |
| 645 | "value": { |
| 646 | "get_input": "topic1_aaf_password" |
| 647 | } |
| 648 | }, |
| 649 | "name": "aaf_password", |
| 650 | "type": "string", |
| 651 | "value": { |
| 652 | "get_input": "topic1_aaf_password" |
| 653 | } |
| 654 | }, |
| 655 | { |
| 656 | "assignment": { |
| 657 | "value": { |
| 658 | "get_input": "topic1_aaf_username" |
| 659 | } |
| 660 | }, |
| 661 | "name": "aaf_username", |
| 662 | "type": "string", |
| 663 | "value": { |
| 664 | "get_input": "topic1_aaf_username" |
| 665 | } |
| 666 | }, |
| 667 | { |
| 668 | "assignment": { |
| 669 | "value": { |
| 670 | "get_input": "topic1_client_role" |
| 671 | } |
| 672 | }, |
| 673 | "name": "client_role", |
| 674 | "type": "string", |
| 675 | "value": { |
| 676 | "get_input": "topic1_client_role" |
| 677 | } |
| 678 | }, |
| 679 | { |
| 680 | "assignment": { |
| 681 | "value": { |
| 682 | "get_property": [ |
| 683 | "SELF", |
| 684 | "composition", |
| 685 | "location_id" |
| 686 | ] |
| 687 | } |
| 688 | }, |
| 689 | "name": "location", |
| 690 | "type": "string", |
| 691 | "value": { |
| 692 | "get_property": [ |
| 693 | "SELF", |
| 694 | "composition", |
| 695 | "location_id" |
| 696 | ] |
| 697 | } |
| 698 | }, |
| 699 | { |
| 700 | "assignment": { |
| 701 | "value": "__GET_NODE_NAME__" |
| 702 | }, |
| 703 | "name": "node_name", |
| 704 | "type": "string", |
| 705 | "value": "__GET_NODE_NAME__" |
| 706 | }, |
| 707 | { |
| 708 | "assignment": { |
| 709 | "value": "" |
| 710 | }, |
| 711 | "name": "topic_name", |
| 712 | "type": "string" |
| 713 | } |
| 714 | ], |
| 715 | "requirements": [ |
| 716 | { |
| 717 | "capability": { |
| 718 | "id": "template.yaml/dcae.capabilities.composition.host", |
| 719 | "name": "dcae.capabilities.composition.host" |
| 720 | }, |
| 721 | "name": "composition" |
| 722 | }, |
| 723 | { |
| 724 | "capability": { |
| 725 | "id": "template.yaml/tosca.capabilities.Node", |
| 726 | "name": "tosca.capabilities.Node" |
| 727 | }, |
| 728 | "name": "dependency", |
| 729 | "node": "tosca.nodes.Root", |
| 730 | "occurrences": [ |
| 731 | 0, |
| 732 | "UNBOUNDED" |
| 733 | ], |
| 734 | "relationship": { |
| 735 | "type": "tosca.relationships.DependsOn" |
| 736 | } |
| 737 | } |
| 738 | ], |
| 739 | "type": { |
| 740 | "name": "tosca.dcae.nodes.dmaap.topic" |
| 741 | }, |
| 742 | "typeinfo": { |
| 743 | "capabilities": [ |
| 744 | { |
| 745 | "name": "topic", |
| 746 | "type": { |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 747 | "id": "{{vf_id}}/dcae.capabilities.dmmap.topic", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 748 | "name": "dcae.capabilities.dmmap.topic" |
| 749 | } |
| 750 | }, |
| 751 | { |
| 752 | "name": "feature", |
| 753 | "type": { |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 754 | "id": "{{vf_id}}/tosca.capabilities.Node", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 755 | "name": "tosca.capabilities.Node" |
| 756 | } |
| 757 | } |
| 758 | ], |
| 759 | "hierarchy": [ |
| 760 | { |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 761 | "id": "{{vf_id}}/tosca.dcae.nodes.Root", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 762 | "name": "tosca.dcae.nodes.Root" |
| 763 | }, |
| 764 | { |
| 765 | "description": "The TOSCA Node Type all other TOSCA base Node Types derive from", |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 766 | "id": "{{vf_id}}/tosca.nodes.Root", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 767 | "name": "tosca.nodes.Root" |
| 768 | } |
| 769 | ], |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 770 | "id": "{{vf_id}}/tosca.dcae.nodes.dmaap.topic", |
| 771 | "itemId": "{{vf_id}}/tosca.dcae.nodes.dmaap.topic", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 772 | "name": "tosca.dcae.nodes.dmaap.topic", |
| 773 | "requirements": [ |
| 774 | { |
| 775 | "capability": { |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 776 | "id": "{{vf_id}}/dcae.capabilities.composition.host", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 777 | "name": "dcae.capabilities.composition.host" |
| 778 | }, |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 779 | "id": "{{vf_id}}/composition", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 780 | "name": "composition", |
| 781 | "node": { |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 782 | "id": "{{vf_id}}/dcae.capabilities.composition.host", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 783 | "name": "dcae.capabilities.composition.host" |
| 784 | } |
| 785 | }, |
| 786 | { |
| 787 | "capability": { |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 788 | "id": "{{vf_id}}/tosca.capabilities.Node", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 789 | "name": "tosca.capabilities.Node" |
| 790 | }, |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 791 | "id": "{{vf_id}}/dependency", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 792 | "name": "dependency", |
| 793 | "node": { |
kaihlavi | 22bc923 | 2019-07-31 19:54:49 +0300 | [diff] [blame] | 794 | "id": "{{vf_id}}/tosca.capabilities.Node", |
kaihlavi | d1a1fb7 | 2019-06-13 16:11:48 +0300 | [diff] [blame] | 795 | "name": "tosca.capabilities.Node" |
| 796 | }, |
| 797 | "occurrences": [ |
| 798 | 0, |
| 799 | "UNBOUNDED" |
| 800 | ], |
| 801 | "relationship": { |
| 802 | "type": "tosca.relationships.DependsOn" |
| 803 | } |
| 804 | } |
| 805 | ] |
| 806 | } |
| 807 | } |
| 808 | ], |
| 809 | "outputs": [], |
| 810 | "relations": [ |
| 811 | { |
| 812 | "meta": { |
| 813 | "n1": "n.1559041944060.0", |
| 814 | "n2": "n.1559041944077.1", |
| 815 | "p1": "stream_subscribe_0", |
| 816 | "p2": "topic", |
| 817 | "relationship": [ |
| 818 | "tca-docker", |
| 819 | null, |
| 820 | "stream_subscribe_0" |
| 821 | ] |
| 822 | }, |
| 823 | "n1": "n.1559041944060.0", |
| 824 | "n2": "n.1559041944077.1", |
| 825 | "name1": "tca-docker", |
| 826 | "name2": "topic0", |
| 827 | "rid": "lnk.1559041944098.3" |
| 828 | }, |
| 829 | { |
| 830 | "meta": { |
| 831 | "n1": "n.1559041944060.0", |
| 832 | "n2": "n.1559041944083.2", |
| 833 | "p1": "stream_publish_0", |
| 834 | "p2": "topic", |
| 835 | "relationship": [ |
| 836 | "tca-docker", |
| 837 | null, |
| 838 | "stream_publish_0" |
| 839 | ] |
| 840 | }, |
| 841 | "n1": "n.1559041944060.0", |
| 842 | "n2": "n.1559041944083.2", |
| 843 | "name1": "tca-docker", |
| 844 | "name2": "topic1", |
| 845 | "rid": "lnk.1559041944104.4" |
| 846 | } |
| 847 | ], |
| 848 | "version": 0 |
| 849 | } |