aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/dynamicPorts/dependsOnFromPortToNested/in/DPA3_New_VNF_TSBGv_nested_AVPN_subport.yaml
blob: f95d86beb7594b667e53f14682cce0f0a228b244 (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
heat_template_version: 2013-05-23

description: >
  Nested template for AVPN port creation

parameters:
  nested_sbg_AVPN_vlan_tag_list:
    type: comma_delimited_list
    description: the CDL representing the vlan ID list
  nested_avpn_net_id:
    type: comma_delimited_list
    description: the CDL representing the networks to attach to the ports
  nested_avpn_subnet_id:
    type: comma_delimited_list
    description: comma delimited list of the UUIDs of the operator created IPv4 AVPN subnets
  nested_sbg_avpn_ip_0:
    type: string
    description: IPv4 IP address for AVPN networks. Same IP is used for all AVPNs
  nested_sbg_AVPN_counter:
    type: number
    description: current array_index
  nested_trunk_port_id:
    type: string
    description: string containint the trunk parrent port

resources:
    sub_port:
     type: OS::Neutron::Port
     properties:
      replacement_policy: AUTO
      network_id: { get_param: [nested_avpn_net_id, { get_param: nested_sbg_AVPN_counter}]}
      fixed_ips:
        - ip_address: { get_param: nested_sbg_avpn_ip_0}
          subnet_id: {get_param: [nested_avpn_subnet_id, {get_param: nested_sbg_AVPN_counter}]}
      value_specs:
        trunkport:type: 'subport'
        trunkport:vid: { get_param: [nested_sbg_AVPN_vlan_tag_list, { get_param: nested_sbg_AVPN_counter}]}
        trunkport:parent_id: { get_param: nested_trunk_port_id}