aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/consolidation/translatedfiles/computeportconsolidation/one_flavor_name_diff/MainServiceTemplate.yaml
blob: d006cc9771d174a9a136b390f10aacba361aea00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
tosca_definitions_version: tosca_simple_yaml_1_0_0
metadata:
  template_name: Main
imports:
- CommonGlobalTypes:
    file: CommonGlobalTypesServiceTemplate.yaml
- NovaServerGlobalTypes:
    file: NovaServerGlobalTypesServiceTemplate.yaml
- NeutronPortGlobalTypes:
    file: NeutronPortGlobalTypesServiceTemplate.yaml
- NeutronSecurityRulesGlobalTypes:
    file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml
- NeutronNetGlobalTypes:
    file: NeutronNetGlobalTypesServiceTemplate.yaml
- CinderVolumeGlobalTypes:
    file: CinderVolumeGlobalTypesServiceTemplate.yaml
- ContrailVirtualNetworkGlobalType:
    file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml
- ContrailNetworkRuleGlobalType:
    file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml
- AbstractSubstituteGlobalTypes:
    file: AbstractSubstituteGlobalTypesServiceTemplate.yaml
- ContrailV2VirtualMachineInterfaceGlobalType:
    file: ContrailV2VirtualMachineInterfaceGlobalTypeServiceTemplate.yaml
- ContrailComputeGlobalTypes:
    file: ContrailComputeGlobalTypesServiceTemplate.yaml
- ContrailPortGlobalTypes:
    file: ContrailPortGlobalTypesServiceTemplate.yaml
- ContrailAbstractSubstituteGlobalTypes:
    file: ContrailAbstractSubstituteGlobalTypesServiceTemplate.yaml
- ContrailV2VirtualNetworkGlobalType:
    file: ContrailV2VirtualNetworkGlobalTypeServiceTemplate.yaml
- ContrailV2NetworkRuleGlobalType:
    file: ContrailV2NetworkRuleGlobalTypeServiceTemplate.yaml
- ContrailV2VLANSubInterfaceGlobalType:
    file: ContrailV2VLANSubInterfaceGlobalTypeServiceTemplate.yaml
node_types:
  org.openecomp.resource.vfc.nodes.heat.ps_server:
    derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
topology_template:
  inputs:
    availabilityzone_name:
      label: availabilityzone name
      hidden: false
      immutable: false
      type: string
      description: availabilityzone name
      default: nova
    repl_net_ips:
      label: repl network ips
      hidden: false
      immutable: false
      type: list
      description: ips of repl network
      default:
      - 107.239.33.57
      - 107.239.33.58
      entry_schema:
        type: string
    oam_net_name:
      label: oam network name
      hidden: false
      immutable: false
      type: string
      description: name of the oam network
      default: oam_protected_net_0
    oam_net_ips:
      label: internet network ips
      hidden: false
      immutable: false
      type: list
      description: ip of the OAM network
      default:
      - 107.250.172.213
      - 107.250.172.214
      - 107.250.172.215
      - 107.250.172.216
      - 107.250.172.217
      entry_schema:
        type: string
      default: 169.254.1.4
    ps_server_names:
      label: PS server names
      hidden: false
      immutable: false
      type: list
      description: name of the PS instance
      default:
      - ZRDM1MOGX01MPS001
      - ZRDM1MOGX01MPS002
      - ZRDM1MOGX01MPS003
      - ZRDM1MOGX01MPS004
      entry_schema:
        type: string
    csb_net_ips:
      hidden: false
      immutable: false
      type: list
      description: mog_csb_net IP addresses
      default:
      - 172.26.0.10
      - 172.26.0.11
      - 172.26.0.12
      - 172.26.0.13
      - 172.26.0.14
      - 172.26.0.15
      - 172.26.0.16
      - 172.26.0.17
      - 172.26.0.18
      - 172.26.0.19
      - 172.26.0.20
      entry_schema:
        type: string
    ps_flavor_name:
      label: PS flavor name
      hidden: false
      immutable: false
      type: string
      description: flavor name of PS instance
      default: m3.xlarge
    ps_image_name:
      label: PS image name
      hidden: false
      immutable: false
      type: string
      description: PS image name
      default: MOG_BASE_8.0
    repl_net_name:
      label: Replication network name
      hidden: false
      immutable: false
      type: string
      description: name of the replication network
      default: cor_direct_net_0
  node_templates:
    cm01_port_1:
      type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
      properties:
        fixed_ips:
        - ip_address:
            get_input:
            - oam_net_ips
            - 4
        allowed_address_pairs:
          get_input:
          - interface_list
          - 2
          - allowed_address_pairs
        mac_address:
          get_input: ncb1_internal1_mac_address

    sm01_port_1:
      type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
      properties:
        fixed_ips:
        - ip_address:
            get_input:
            - oam_net_ips
            - 4
        allowed_address_pairs:
          get_input:
          - interface_list
          - 2
          - allowed_address_pairs
        mac_address:
          get_input: ncb1_internal1_mac_address

    server_ps01:
      type: org.openecomp.resource.vfc.nodes.heat.ps_server
      properties:
        flavor:
          get_input: ps_flavor_name
        image:
          get_input: ps_image_name

    server_ps02:
      type: org.openecomp.resource.vfc.nodes.heat.ps_server
      properties:
        flavor:
          get_input: ps_flavor_name
        image:
          get_input: ps_image_name

    server_ps03:
      type: org.openecomp.resource.vfc.nodes.heat.ps_server
      properties:
        flavor:
          get_input: diff_flavor_name
        image:
          get_input: ps_image_name