|
| 1 | +{{!-- Template: TTopologyTemplate.hbs |
| 2 | + Notes: cleaned stray fence markers and added null-safe partial invocation guards. |
| 3 | +--}} |
| 4 | + |
1 | 5 | {{#unless (noStereotypeApplications this "Metadata")}}metadata:{{/unless}} |
2 | | -{{#each ownedAttribute}}{{#extension}}{{#eq name "Metadata"}} |
3 | | - {{../name}}: "{{../value}}" |
4 | | -{{/eq}}{{/extension}}{{/each}} |
| 6 | +{{#each ownedAttribute}} |
| 7 | + {{#extension}}{{#eq name "Metadata"}} |
| 8 | + {{../name}}: "{{../value}}" |
| 9 | + {{/eq}}{{/extension}} |
| 10 | +{{/each}} |
5 | 11 | {{imports this}} |
| 12 | + |
6 | 13 | topology_template: |
| 14 | + |
7 | 15 | {{#unless (noStereotypeApplications this "InputParametersType")}} |
8 | 16 | inputs: |
9 | | -{{#ownedElement}}{{#extension}}{{#eq name "InputParametersType"}}{{#ownedAttribute}}{{#extension}}{{#eq name "TParameter"}} |
10 | | - {{> (lookup this.name) ../this}} |
11 | | -{{/eq}}{{/extension}}{{/ownedAttribute}}{{/eq}}{{/extension}}{{/ownedElement}} |
| 17 | + {{#ownedElement}}{{#extension}}{{#eq name "InputParametersType"}} |
| 18 | + {{#ownedAttribute}}{{#with this as |parameter|}}{{#extension}}{{#eq name "TParameter"}} |
| 19 | + {{> TParameter parameter}} |
| 20 | + {{/eq}}{{/extension}}{{/with}}{{/ownedAttribute}} |
| 21 | + {{/eq}}{{/extension}}{{/ownedElement}} |
12 | 22 | {{/unless}} |
| 23 | + |
13 | 24 | {{#unless (noStereotypeApplications this "TNodeTemplate")}} |
14 | 25 | node_templates: |
15 | | -{{#ownedElement}}{{#extension}}{{#eq name "TNodeTemplate"}} |
16 | | - {{> (lookup this.name) ../this}} |
17 | | -{{/eq}}{{/extension}}{{/ownedElement}} |
| 26 | + {{#ownedElement}}{{#with this as |nodeTemplate|}}{{#extension}}{{#eq name "TNodeTemplate"}} |
| 27 | + {{> TNodeTemplate nodeTemplate}} |
| 28 | + {{/eq}}{{/extension}}{{/with}}{{/ownedElement}} |
18 | 29 | {{/unless}} |
| 30 | + |
19 | 31 | {{#unless (noStereotypeApplications this "TGroup")}} |
20 | | - groups: |
21 | | -{{#ownedElement}}{{#extension}}{{#eq name "TGroup"}} |
22 | | - {{> (lookup this.name) ../this}} |
23 | | -{{/eq}}{{/extension}}{{/ownedElement}} |
| 32 | + groups: |
| 33 | + {{#ownedElement}}{{#with this as |group|}}{{#extension}}{{#eq name "TGroup"}} |
| 34 | + {{> TGroup group}} |
| 35 | + {{/eq}}{{/extension}}{{/with}}{{/ownedElement}} |
24 | 36 | {{/unless}} |
| 37 | + |
25 | 38 | {{#unless (noStereotypeApplications this "TRelationshipTemplateEnd")}} |
26 | 39 | relationship_templates: |
27 | | -{{#ownedElement}}{{#targetingEnd}}{{#association}}{{#extension}}{{#eq name "TRelationshipTemplate"}} |
| 40 | + {{#ownedElement}}{{#targetingEnd}}{{#association}}{{#extension}}{{#eq name "TRelationshipTemplate"}} |
28 | 41 | {{../name}}: |
29 | 42 | type: {{getProperty ../this "type"}} |
30 | | -{{/eq}}{{/extension}}{{/association}}{{/targetingEnd}}{{/ownedElement}} |
| 43 | + {{/eq}}{{/extension}}{{/association}}{{/targetingEnd}}{{/ownedElement}} |
31 | 44 | {{/unless}} |
| 45 | + |
32 | 46 | {{#unless (noStereotypeApplications this "PoliciesType")}} |
33 | 47 | policies: |
34 | | -{{#ownedElement}}{{#extension}}{{#eq name "PoliciesType"}}{{#ownedElement}}{{#extension}}{{#eq name "TPolicy"}} |
35 | | - {{> (lookup this.name) ../this}} |
36 | | -{{/eq}}{{/extension}}{{/ownedElement}}{{/eq}}{{/extension}}{{/ownedElement}} |
| 48 | + {{#ownedElement}}{{#extension}}{{#eq name "PoliciesType"}} |
| 49 | + {{#ownedElement}}{{#with this as |policy|}}{{#extension}}{{#eq name "TPolicy"}} |
| 50 | + {{> TPolicy policy}} |
| 51 | + {{/eq}}{{/extension}}{{/with}}{{/ownedElement}} |
| 52 | + {{/eq}}{{/extension}}{{/ownedElement}} |
37 | 53 | {{/unless}} |
0 commit comments