summaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/unifiedComposition/inputoutputparamtype/in/MainServiceTemplate.yaml
blob: 4e939ca9d8604b9fa7226c44b38c8185e06264ce (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
@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 */
.highlight .mi { color: #ae81ff } /* Literal.Number.Integer */
.highlight .mo { color: #ae81ff } /* Literal.Number.Oct */
.highlight .sa { color: #e6db74 } /* Literal.String
tosca_definitions_version: tosca_simple_yaml_1_0_0
metadata:
  template_name: Main
imports:
- openecomp_heat_index:
    file: openecomp-heat/_index.yml
node_types:
  org.openecomp.resource.vfc.nodes.heat.FSB1:
    derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
topology_template:
  inputs:
    vipr_atm_name_0:
      label: vipr_atm_name_0
      hidden: false
      immutable: false
      type: string
      description: vipr_atm_name_0
    network_name:
      label: network_name
      hidden: false
      immutable: false
      type: string
      description: network_name
    port_name:
      label: port_name
      hidden: false
      immutable: false
      type: string
      description: port_name
    fsb_zone:
      label: fsb_zone
      hidden: false
      immutable: false
      type: string
      description: fsb_zone
    fsb1-flavor:
      label: fsb1-flavor
      hidden: false
      immutable: false
      type: string
      description: fsb1-flavor
    fsb1-Internal1-mac:
      label: fsb1-flavor
      hidden: false
      immutable: false
      type: string
      description: fsb1-flavor

  node_templates:
    VMI1:
      type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
      properties:
        name:
          str_replace:
            template: VM_NAME_PORT_3
            params:
              VM_NAME:
                get_input: vipr_atm_name_0
        virtual_network_refs:
        - get_input: network_name
        virtual_machine_interface_properties:
          service_interface_type: left
        port_tuple_refs:
        - get_input: port_name
    FSB1:
      type: org.openecomp.resource.vfc.nodes.heat.FSB1
      properties:
        flavor:
          get_input: fsb1-flavor
        availability_zone:
          get_input: fsb_zone
        name:
          get_attribute:
          - VMI1
          - name
    FSB1_Port1:
      type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
      properties:
        mac_address:
          get_input: fsb1-Internal1-mac
        network: Internal1-net
      requirements:
      - binding:
          capability: tosca.capabilities.network.Bindable
          node: FSB1
          relationship: tosca.relationships.network.BindsTo

    cmaui_volume_test_compute_properties:
      type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
      properties:
        availability_zone:  {get_attribute: [FSB1, availability_zone ] }
        backup_id:  {get_attribute: [FSB1, admin_pass ] }
        description:  {get_attribute: [FSB1, flavor ] }
        image:  {get_attribute: [FSB1, config_drive ] }
        metadata:  {get_attribute: [FSB1, metadata ] }
        multiattach:  {get_attribute: [FSB1, flavor_update_policy ] }
        name:  {get_attribute: [FSB1, image ] }
        read_only:  {get_attribute: [FSB1, image_update_policy ] }
        scheduler_hints:  {get_attribute: [FSB1, key_name ] }
        size:  {get_attribute: [FSB1, diskConfig ] }
        snapshot_id:  {get_attribute: [FSB1, name ] }
        source_volid:  {get_attribute: [FSB1, personality ] }
        volume_id:  {get_attribute: [FSB1, reservation_id ] }
        volume_type:  {get_attribute: [FSB1, scheduler_hints ] }
        delete_on_termination:  {get_attribute: [FSB1, security_groups ] }
        volume_size:  {get_attribute: [FSB1, software_config_transport ] }
        device_type:  {get_attribute: [FSB1, user_data_format ] }
        disk_bus:  {get_attribute: [FSB1, user_data_update_policy ] }
        swap_size:  {get_attribute: [FSB1, accessIPv4 ] }
        image_id:  {get_attribute: [FSB1, accessIPv6 ] }
        attachments:  {get_attribute: [FSB1, addresses ] }
        encrypted:  {get_attribute: [FSB1, console_urls ] }
        created_at:  {get_attribute: [FSB1, instance_name ] }
        display_description:  {get_attribute: [FSB1, show ] }

    cmaui_volume_test_neutron_port_properties:
      type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
      properties:
        availability_zone:  {get_attribute: [FSB1_Port1, ip_address ] }
        backup_id:  {get_attribute: [FSB1_Port1, network ] }
        #description:  {get_attribute: [FSB1_Port1, subnet ] }
        image:  {get_attribute: [FSB1_Port1, admin_state_up ] }
        metadata:  {get_attribute: [FSB1_Port1, allowed_address_pairs ] }
        multiattach:  {get_attribute: [FSB1_Port1, "binding:vnic_type" ] }
        name:  {get_attribute: [FSB1_Port1, device_id ] }
        read_only:  {get_attribute: [FSB1_Port1, device_owner ] }
        scheduler_hints:  {get_attribute: [FSB1_Port1, fixed_ips ] }
        #size:  {get_attribute: [FSB1_Port1, mac_address ] }
        snapshot_id:  {get_attribute: [FSB1_Port1, name ] }
        source_volid:  {get_attribute: [FSB1_Port1, port_security_enabled ] }
        volume_id:  {get_attribute: [FSB1_Port1, qos_policy ] }
        volume_type:  {get_attribute: [FSB1_Port1, security_groups ] }
        delete_on_termination:  {get_attribute: [FSB1_Port1, value_specs ] }
        volume_size:  {get_attribute: [FSB1_Port1, replacement_policy ] }
        device_type:  {get_attribute: [FSB1_Port1, show ] }
        disk_bus:  {get_attribute: [FSB1_Port1, subnets ] }
        swap_size:  {get_attribute: [FSB1_Port1, tenant_id ] }

    cmaui_volume_test_contrailv2_VMI_properties:
      type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
      properties:
        availability_zone:  {get_attribute: [VMI1, virtual_machine_interface_mac_addresses ] }
        #backup_id:  {get_attribute: [VMI1, mac_address ] }
        description:  {get_attribute: [VMI1, virtual_network_refs ] }
        image:  {get_attribute: [VMI1, port_tuple_refs ] }
        metadata:  {get_attribute: [VMI1, security_group_refs ] }
        multiattach:  {get_attribute: [VMI1, virtual_machine_interface_properties ] }
        name:  {get_attribute: [VMI1, name ] }
        #read_only:  {get_attribute: [VMI1, service_interface_type ] }
        #scheduler_hints:  {get_attribute: [VMI1, sub_interface_vlan_tag ] }
        size:  {get_attribute: [VMI1, virtual_machine_interface_allowed_address_pairs ] }
        #snapshot_id:  {get_attribute: [VMI1, allowed_address_pair ] }
        #source_volid:  {get_attribute: [VMI1, port_security_enabled ] }
        #volume_id:  {get_attribute: [VMI1, address_mode ] }
        #volume_type:  {get_attribute: [VMI1, mac ] }
        #delete_on_termination:  {get_attribute: [VMI1, ip ] }
        #volume_size:  {get_attribute: [VMI1, ip_prefix ] }
        #device_type:  {get_attribute: [VMI1, ip_prefix_len ] }
        #disk_bus:  {get_attribute: [VMI1, virtual_machine_interface_refs ] }
        #swap_size:  {get_attribute: [VMI1, virtual_machine_interface_properties_service_interface_type ] }
        created_at:  {get_attribute: [VMI1, fq_name ] }
        display_description:  {get_attribute: [VMI1, show ] }

  groups:
    ep-jsa_net_group:
      type: org.openecomp.groups.heat.HeatStack
      properties:
        heat_file: ../Artifacts/ep-jsa_net.yaml
        description: |
          Version 2.0 02-09-2016 (Authors: Paul Phillips,  pp2854 PROD)
      members:
      - VMI1
      - FSB1
      - FSB1_Port1
      - cmaui_volume_test_compute_properties
      - cmaui_volume_test_neutron_port_properties
      - cmaui_volume_test_contrailv2_VMI_properties

  outputs:
    simpleOutput1:
       value: {get_attribute: [ FSB1, accessIPv4 ] }
    simpleOutput2:
       value: {get_attribute: [ FSB1, addresses, key1 ] }
    complexOutput1:
      value: {get_attribute: [ FSB1, addresses, {get_attribute: [ FSB2_Internal2,tenant_id ] } ]}
    complexOutput2:
      description:  cgi fw01 left interface Mac-Address
      value: { get_attribute: [FSB1_Port1, device_owner, get_input: [CMAUI_volume_type,{get_attribute: [FSB1,user_data_format ] }], 0, "OS-EXT-IPS-MAC:mac_addr"] }
    complexOutput3:
      description:  cgi fw01 left interface Mac-Address
      value: { get_input: [a, addresses, get_input: [CMAUI_volume_type, {get_attribute: [FSB1,accessIPv6 ] }], 0, "OS-EXT-IPS-MAC:mac_addr"] }