aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/subInterfaceToInterfaceConnection/nestedMultiLevels/inputfiles/main.yml
blob: cc5d856d07bf2c2df77082a1d7845627fe4bbaed (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
heat_template_version: 2013-05-23

description: >
  Version 2.0 02-09-2016 (Authors: Paul Phillips, pnet2854 PROD)

parameters:
  jsa_net_name:
    type: string
  jsa_name:
    type: string
    description: network name of jsa log network
  contrail_net_name:
    type: string
    description: network name of jsa log network
  security_group_name:
    type: comma_delimited_list
    description: CMAUI1, CMAUI2 server names
  cmaui_names:
    type: comma_delimited_list
    description: CMAUI1, CMAUI2 server names
  cmaui_image:
    type: string
    description: Image for CMAUI server
  availability_zone_0:
    type: string
    label: availabilityzone name
    description: availabilityzone name
  cmaui_flavor:
    type: string
    description: Flavor for CMAUI server
  cmaui_oam_ips:
    type: string
  oam_sec_group_name:
    type: string
  lb_st_interface_type_oam:
    type: string
  template_PortTuple_LB1:
    type: string

resources:
  test_net1:
    type: OS::Neutron::Net
    properties:
      name: {get_param: jsa_net_name}
      shared: True

  test_contrailV2_net2:
    type: OS::ContrailV2::VirtualNetwork
    properties:
      name: { get_param: contrail_net_name }

  server_cmaui_nova:
    type: OS::Nova::Server
    properties:
      name: { get_param: [cmaui_names, 0]}
      image: { get_param: cmaui_image }
      availability_zone: { get_param: availability_zone_0 }
      flavor: { get_param: cmaui_flavor }
      networks:
      - port: { get_resource: template_VMInt_OAM_lb_1 }
      - port: { get_resource: cmaui_port_2 }

  template_VMInt_OAM_lb_1:
    type: OS::ContrailV2::VirtualMachineInterface
    properties:
      virtual_machine_interface_properties:
        {
          virtual_machine_interface_properties_service_interface_type: { get_param: lb_st_interface_type_oam },
        }
      virtual_network_refs: [{ get_resource: test_net1 }]
      port_tuple_refs: [{ get_param: template_PortTuple_LB1 }]
      security_group_refs: [{ get_param: oam_sec_group_name}]

  cmaui_port_2:
    type: OS::Neutron::Port
    properties:
      network: { get_resource: test_net1 }
      fixed_ips: [{"ip_address": {get_param: [cmaui_oam_ips, 0]}}]
      security_groups: [{get_param: security_group_name}]
      replacement_policy: AUTO

  test_nested1Level:
    type: nested1.yml
    properties:
      net1: { get_resource: test_net1}
      net2: { get_attr: [ test_contrailV2_net2, fq_name ] }
      port1: { get_resource: template_VMInt_OAM_lb_1}
      port2: { get_resource: cmaui_port_2}

  test_resourceGroup:
    type: OS::Heat::ResourceGroup
    properties:
      count: 9
      resource_def:
        type: nested3.yml
        properties:
          net1: { list_join: [':', { get_attr: [ test_contrailV2_net2, fq_name ] } ] }
          port1: { get_resource: cmaui_port_2 }
          indx: "%index%"

  test_nestedInvalidConnection:
    type: nested1.yml
    properties:
      net1: { get_resource: server_cmaui_nova }
      port1: { get_resource: server_cmaui_nova }