aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/subinterface/vlantagging/pattern1c1/regularNestedSubInterface/out/nestedServiceTemplate.yaml
blob: 893a3affe925629ed3b243b0f55a79badc78b28e (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
tosca_definitions_version: tosca_simple_yaml_1_0_0
metadata:
  template_name: nested
imports:
- openecomp_heat_index:
    file: openecomp-heat/_index.yml
- GlobalSubstitutionTypes:
    file: GlobalSubstitutionTypesServiceTemplate.yaml
topology_template:
  inputs:
    aap_untrusted_ip_prefix:
      hidden: false
      immutable: false
      type: string
      description: ip prefix for primary vDBE VM on the VAN untrusted network
    aap_sec_untrusted_ip_prefix:
      hidden: false
      immutable: false
      type: string
      description: ip prefix for secondary vDBE VM aap on the VAN untrusted network
    ip_v6_address:
      hidden: false
      immutable: false
      type: string
      description: IPv6 address associated with subinterfaces
    counter:
      hidden: false
      immutable: false
      type: float
      description: Index of instance among multiple instances.  Use to retrieve correct parameter for this instance when passed all parameters for all instances.
    subinterfaces_name_prefix:
      hidden: false
      immutable: false
      type: string
      description: Combined with subinterface_instance_index, this is used as the name of the subinterface resource
    ip_address:
      hidden: false
      immutable: false
      type: string
      description: IPv4 address associated with subinterfaces
    aap_address_mode:
      hidden: false
      immutable: false
      type: string
      description: Address mode for the vDBE cluster IP
    aap_untrusted_v6_ip_prefix:
      hidden: false
      immutable: false
      type: string
      description: ipv6 prefix for the primary vDBE VM on the VAN untrusted network
    parent_interface:
      hidden: false
      immutable: false
      type: string
      description: Parent Contrail interface
    vn_network_list:
      hidden: false
      immutable: false
      type: string
      description: List of Contrail VLAN networks to use for the subinterfaces.   The order and number of these must match the VLAN ID list
    optional_property_1:
      hidden: false
      immutable: false
      type: string
      description: Optional property
    optional_property_2:
      hidden: false
      immutable: false
      type: string
      description: Optional property
    mac_address:
      hidden: false
      immutable: false
      type: string
      description: HW MAC address to use for subinterface
    vlan_tag_list:
      hidden: false
      immutable: false
      type: list
      description: List of VLAN IDs to use for subinterfaces
      entry_schema:
        type: string
    aap_sec_untrusted_ip_prefix_len:
      hidden: false
      immutable: false
      type: string
      description: ip prefix length for the secondary DBE VM aap on the VAN untrusted network
    vmac_address:
      hidden: false
      immutable: false
      type: string
      description: virtual MAC address to use for subinterface
    aap_untrusted_v6_ip_prefix_len:
      hidden: false
      immutable: false
      type: string
      description: ipv6 prefix length for the primary vDBE VM on the VAN untrusted network
    aap_untrusted_ip_prefix_len:
      hidden: false
      immutable: false
      type: string
      description: ip prefix length for the primary vDBE VM on the VAN untrusted network
  node_templates:
    vdbe_untr_x_vlan1-Network-Role_vmi_subport:
      type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
      properties:
        virtual_machine_interface_refs:
        - get_input: parent_interface
        name:
          str_replace:
            template: $NAME_$INDEX
            params:
              $NAME:
                get_input: subinterfaces_name_prefix
              $INDEX:
                get_input:
                - vlan_tag_list
                - get_input: counter
        virtual_network_refs:
        - get_input: vn_network_list
        virtual_machine_interface_properties:
          sub_interface_vlan_tag:
            get_input:
            - vlan_tag_list
            - get_input: counter
        virtual_machine_interface_allowed_address_pairs:
          allowed_address_pair:
          - address_mode:
              get_input: aap_address_mode
            ip:
              ip_prefix:
                get_input: aap_untrusted_ip_prefix
              ip_prefix_len:
                get_input: aap_untrusted_ip_prefix_len
            mac:
              get_input: vmac_address
          - address_mode:
              get_input: aap_address_mode
            ip:
              ip_prefix:
                get_input: aap_sec_untrusted_ip_prefix
              ip_prefix_len:
                get_input: aap_sec_untrusted_ip_prefix_len
            mac:
              get_input: mac_address
          - address_mode:
              get_input: aap_address_mode
            ip:
              ip_prefix:
                get_input: aap_untrusted_v6_ip_prefix
              ip_prefix_len:
                get_input: aap_untrusted_v6_ip_prefix_len
            mac:
              get_input: vmac_address
        virtual_machine_interface_mac_addresses:
          mac_address:
          - get_input: mac_address
  groups:
    nested_group:
      type: org.openecomp.groups.heat.HeatStack
      properties:
        heat_file: ../Artifacts/nested.yml
        description: cmaui server template for vMMSC
      members:
      - vdbe_untr_x_vlan1-Network-Role_vmi_subport
  substitution_mappings:
    node_type: org.openecomp.resource.abstract.nodes.heat.subinterface.nested
    capabilities:
      feature_vdbe_untr_x_vlan1-Network-Role_vmi_subport:
      - vdbe_untr_x_vlan1-Network-Role_vmi_subport
      - feature
    requirements:
      link_vdbe_untr_x_vlan1-Network-Role_vmi_subport:
      - vdbe_untr_x_vlan1-Network-Role_vmi_subport
      - link
      binding_vdbe_untr_x_vlan1-Network-Role_vmi_subport:
      - vdbe_untr_x_vlan1-Network-Role_vmi_subport
      - binding
      dependency_vdbe_untr_x_vlan1-Network-Role_vmi_subport:
      - vdbe_untr_x_vlan1-Network-Role_vmi_subport
      - dependency