summaryrefslogtreecommitdiffstats
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: b771be1c0afe644547195059e34f3b6d8016486c (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

@media only all and (prefers-color-scheme: dark) {
.highlight .hll { background-color: #49483e }
.highlight .c { color: #75715e } /* Comment */
.highlight .err { color: #960050; background-color: #1e0010 } /* Error */
.highlight .k { color: #66d9ef } /* Keyword */
.highlight .l { color: #ae81ff } /* Literal */
.highlight .n { color: #f8f8f2 } /* Name */
.highlight .o { color: #f92672 } /* Operator */
.highlight .p { color: #f8f8f2 } /* Punctuation */
.highlight .ch { color: #75715e } /* Comment.Hashbang */
.highlight .cm { color: #75715e } /* Comment.Multiline */
.highlight .cp { color: #75715e } /* Comment.Preproc */
.highlight .cpf { color: #75715e } /* Comment.PreprocFile */
.highlight .c1 { color: #75715e } /* Comment.Single */
.highlight .cs { color: #75715e } /* Comment.Special */
.highlight .gd { color: #f92672 } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gi { color: #a6e22e } /* Generic.Inserted */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #75715e } /* Generic.Subheading */
.highlight .kc { color: #66d9ef } /* Keyword.Constant */
.highlight .kd { color: #66d9ef } /* Keyword.Declaration */
.highlight .kn { color: #f92672 } /* Keyword.Namespace */
.highlight .kp { color: #66d9ef } /* Keyword.Pseudo */
.highlight .kr { color: #66d9ef } /* Keyword.Reserved */
.highlight .kt { color: #66d9ef } /* Keyword.Type */
.highlight .ld { color: #e6db74 } /* Literal.Date */
.highlight .m { color: #ae81ff } /* Literal.Number */
.highlight .s { color: #e6db74 } /* Literal.String */
.highlight .na { color: #a6e22e } /* Name.Attribute */
.highlight .nb { color: #f8f8f2 } /* Name.Builtin */
.highlight .nc { color: #a6e22e } /* Name.Class */
.highlight .no { color: #66d9ef } /* Name.Constant */
.highlight .nd { color: #a6e22e } /* Name.Decorator */
.highlight .ni { color: #f8f8f2 } /* Name.Entity */
.highlight .ne { color: #a6e22e } /* Name.Exception */
.highlight .nf { color: #a6e22e } /* Name.Function */
.highlight .nl { color: #f8f8f2 } /* Name.Label */
.highlight .nn { color: #f8f8f2 } /* Name.Namespace */
.highlight .nx { color: #a6e22e } /* Name.Other */
.highlight .py { color: #f8f8f2 } /* Name.Property */
.highlight .nt { color: #f92672 } /* Name.Tag */
.highlight .nv { color: #f8f8f2 } /* Name.Variable */
.highlight .ow { color: #f92672 } /* Operator.Word */
.highlight .w { color: #f8f8f2 } /* Text.Whitespace */
.highlight .mb { color: #ae81ff } /* Literal.Number.Bin */
.highlight .mf { color: #ae81ff } /* Literal.Number.Float */
.highlight .mh { color: #ae81ff } /* Literal.Number.Hex *
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

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}]

  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}