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