aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/contrailv2VMinterface/oneNet/inputfiles/hot_template.yml
blob: 7863cb5f9a9eca5905c98a0cf2c89ad87b96b465 (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
heat_template_version: 2013-05-23

description: cmaui server template for vMMSC

parameters:
  network_ipam_refs_data_ipam_subnets_addr_from_start_true:
    description: dummy
    type: string
  network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2:
    description: dummy
    type: string
  network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2:
    description: dummy
    type: string
  lb_st_interface_type_oam:
    description: dummy
    type: string
  template_PortTuple_LB1:
    description: dummy
    type: string
  oam_sec_group_name:
    description: dummy
    type: string
  jsa_net_name:
    description: dummy
    type: string
  nems_traffic_name:
    description: dummy
    type: string
  interface_param:
    description: dummy
    type: string

resources:
  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: jsa_net1 }]
      port_tuple_refs: [{ get_param: template_PortTuple_LB1 }]
      security_group_refs: [{ get_param: oam_sec_group_name}]
      virtual_machine_interface_refs: [{ get_param: interface_param }]

  jsa_net1:
     properties:
       name: aaa
       network_ipam_refs_data:
         -
           network_ipam_refs_data_ipam_subnets:
             -
               network_ipam_refs_data_ipam_subnets_addr_from_start:
                 get_param: network_ipam_refs_data_ipam_subnets_addr_from_start_true
               network_ipam_refs_data_ipam_subnets_subnet:
                 network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
                   get_param: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
                 network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
                   get_param: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
     type: "OS::ContrailV2::VirtualNetwork"

  template_VMInt_OAM_lb_2:
    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: [ { list_join: [':', { get_attr: [ jsa_net2, fq_name ] } ] }]
      port_tuple_refs: [{ get_param: template_PortTuple_LB1 }]
      security_group_refs: [{ get_param: oam_sec_group_name}]

  jsa_net2:
     properties:
       name: aaa
       network_ipam_refs_data:
         -
           network_ipam_refs_data_ipam_subnets:
             -
               network_ipam_refs_data_ipam_subnets_addr_from_start:
                 get_param: network_ipam_refs_data_ipam_subnets_addr_from_start_true
               network_ipam_refs_data_ipam_subnets_subnet:
                 network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
                   get_param: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
                 network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
                   get_param: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
     type: "OS::ContrailV2::VirtualNetwork"

  template_VMInt_OAM_lb_3:
    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_attr: [ jsa_net3, fq_name ] } ]
      port_tuple_refs: [{ get_param: template_PortTuple_LB1 }]
      security_group_refs: [{ get_param: oam_sec_group_name}]

  jsa_net3:
     properties:
       name: aaa
       network_ipam_refs_data:
         -
           network_ipam_refs_data_ipam_subnets:
             -
               network_ipam_refs_data_ipam_subnets_addr_from_start:
                 get_param: network_ipam_refs_data_ipam_subnets_addr_from_start_true
               network_ipam_refs_data_ipam_subnets_subnet:
                 network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
                   get_param: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
                 network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
                   get_param: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
     type: "OS::ContrailV2::VirtualNetwork"

  template_VMInt_OAM_lb_4:
     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_attr: [ jsa_net4, fq_name ] } ] # should not connect to contrail network
       port_tuple_refs: [{ get_param: template_PortTuple_LB1 }]
       security_group_refs: [{ get_param: oam_sec_group_name}]

  jsa_net4:
      type: OS::Contrail::VirtualNetwork
      properties:
        name: {get_param: nems_traffic_name}