From 280f8015d06af1f41a3ef12e8300801c7a5e0d54 Mon Sep 17 00:00:00 2001 From: AviZi Date: Fri, 9 Jun 2017 02:39:56 +0300 Subject: [SDC-29] Amdocs OnBoard 1707 initial commit. Change-Id: Ie4d12a3f574008b792899b368a0902a8b46b5370 Signed-off-by: AviZi --- .../perimeta_ha_sw_aServiceTemplate.yaml | 613 +++++++++++++++++++++ 1 file changed, 613 insertions(+) create mode 100644 openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/subInterfaceToInterfaceConnection/vTSBC_AIC/expectedoutputfiles/perimeta_ha_sw_aServiceTemplate.yaml (limited to 'openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/subInterfaceToInterfaceConnection/vTSBC_AIC/expectedoutputfiles/perimeta_ha_sw_aServiceTemplate.yaml') diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/subInterfaceToInterfaceConnection/vTSBC_AIC/expectedoutputfiles/perimeta_ha_sw_aServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/subInterfaceToInterfaceConnection/vTSBC_AIC/expectedoutputfiles/perimeta_ha_sw_aServiceTemplate.yaml new file mode 100644 index 0000000000..31ae5e5dec --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/subInterfaceToInterfaceConnection/vTSBC_AIC/expectedoutputfiles/perimeta_ha_sw_aServiceTemplate.yaml @@ -0,0 +1,613 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: perimeta_ha_sw_a +imports: +- CommonGlobalTypes: + file: CommonGlobalTypesServiceTemplate.yaml +- NovaServerGlobalTypes: + file: NovaServerGlobalTypesServiceTemplate.yaml +- NeutronPortGlobalTypes: + file: NeutronPortGlobalTypesServiceTemplate.yaml +- NeutronSecurityRulesGlobalTypes: + file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml +- NeutronNetGlobalTypes: + file: NeutronNetGlobalTypesServiceTemplate.yaml +- CinderVolumeGlobalTypes: + file: CinderVolumeGlobalTypesServiceTemplate.yaml +- ContrailVirtualNetworkGlobalType: + file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml +- ContrailNetworkRuleGlobalType: + file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml +- AbstractSubstituteGlobalTypes: + file: AbstractSubstituteGlobalTypesServiceTemplate.yaml +- ContrailV2VirtualMachineInterfaceGlobalType: + file: ContrailV2VirtualMachineInterfaceGlobalTypeServiceTemplate.yaml +- ContrailComputeGlobalTypes: + file: ContrailComputeGlobalTypesServiceTemplate.yaml +- ContrailPortGlobalTypes: + file: ContrailPortGlobalTypesServiceTemplate.yaml +- ContrailAbstractSubstituteGlobalTypes: + file: ContrailAbstractSubstituteGlobalTypesServiceTemplate.yaml +- ContrailV2VirtualNetworkGlobalType: + file: ContrailV2VirtualNetworkGlobalTypeServiceTemplate.yaml +- ContrailV2NetworkRuleGlobalType: + file: ContrailV2NetworkRuleGlobalTypeServiceTemplate.yaml +- ContrailV2VLANSubInterfaceGlobalType: + file: ContrailV2VLANSubInterfaceGlobalTypeServiceTemplate.yaml +- GlobalSubstitutionTypes: + file: GlobalSubstitutionTypesServiceTemplate.yaml +node_types: + org.openecomp.resource.vfc.nodes.heat.vm_a: + derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server +topology_template: + inputs: + vf_module_id: + hidden: false + immutable: false + type: string + description: Unique ID for this VF Module instance + untrusted_net_id: + hidden: false + immutable: false + type: string + description: Service network 2 network UUID + constraints: [ + ] + mgmt_net_plen: + hidden: false + immutable: false + type: string + description: Prefix length of management network + perimeta_config: + hidden: false + immutable: false + type: string + description: Orchestration template configuration for instance. + vm_a_names: + hidden: false + immutable: false + type: list + description: List of names of Perimeta VM A instances, indexed by perimeta_instance_index + entry_schema: + type: string + untrusted_b_ips: + hidden: false + immutable: false + type: list + description: List of fixed IP addresses to use as untrusted fixed IPs of B instances. + entry_schema: + type: string + ha_net_id: + hidden: false + immutable: false + type: string + description: HA network id + constraints: [ + ] + perimeta_param_server_group: + hidden: false + immutable: false + type: string + description: Server group to use for these VMs - ignored + untrusted_vlan_networks: + hidden: false + immutable: false + type: list + description: List of Contrail VLAN networks to use on the untrusted/access network. The order and number of these must match the VLAN ID list. + entry_schema: + type: string + mgmt_sec_groups: + hidden: false + immutable: false + type: list + description: List of security groups to add on management interfaces. + entry_schema: + type: string + perimeta_instance_index: + hidden: false + immutable: false + type: float + description: Index of instance among multiple instances. Use to retrieve correct parameter for this instance when passed all parameters for all instances. + untrusted_vlan_ids: + hidden: false + immutable: false + type: list + description: List of VLAN IDs to use on the untrusted/access network + entry_schema: + type: string + perimeta_keypair: + hidden: false + immutable: false + type: string + description: Keypair to use for accessing this Perimeta instance + constraints: [ + ] + mgmt_vips: + hidden: false + immutable: false + type: list + description: List of management virtual IP addresses for all instances. + entry_schema: + type: string + untrusted_vips: + hidden: false + immutable: false + type: list + description: List of service network 2 virtual IP addresses for all instances. + entry_schema: + type: string + vnf_id: + hidden: false + immutable: false + type: string + description: VNF ID of this deployment + availability_zone_0: + hidden: false + immutable: false + type: string + description: Availability zone for A instances. + availability_zone_1: + hidden: false + immutable: false + type: string + description: Availability zone for B instances. May be the same as A instance. + ha_a_ips: + hidden: false + immutable: false + type: list + description: List of fixed IP addresses to use as HA IPs of A instances. + entry_schema: + type: string + untrusted_v6_vips: + hidden: false + immutable: false + type: list + description: List of service network 2 alternate virtual IP addresses for all instances. + entry_schema: + type: string + ha_sec_groups: + hidden: false + immutable: false + type: list + description: List of security groups to add on HA interfaces. + entry_schema: + type: string + trusted_a_ips: + hidden: false + immutable: false + type: list + description: List of fixed IP addresses to use as trusted fixed IPs of A instances. + entry_schema: + type: string + untrusted_num_vlans: + hidden: false + immutable: false + type: float + description: Number of VLANs to connect to on the untrusted/access network + system_names: + hidden: false + immutable: false + type: list + description: List of system names of Perimeta instances. Name of a specific instance is indexed by perimeta_instance_index + entry_schema: + type: string + vm_b_names: + hidden: false + immutable: false + type: list + description: List of names of Perimeta VM A instances, indexed by perimeta_instance_index + entry_schema: + type: string + trusted_sec_groups: + hidden: false + immutable: false + type: list + description: List of security groups to add on trusted interfaces. + entry_schema: + type: string + trusted_vips: + hidden: false + immutable: false + type: list + description: List of service network 1 virtual IP addresses for all instances. + entry_schema: + type: string + trusted_net_id: + hidden: false + immutable: false + type: string + description: Service network 1 network UUID + constraints: [ + ] + ha_b_ips: + hidden: false + immutable: false + type: list + description: List of fixed IP addresses to use as HA IPs of B instances. + entry_schema: + type: string + untrusted_a_v6_ips: + hidden: false + immutable: false + type: list + description: List of fixed IP addresses to use as untrusted alternate fixed IPs of A instances. + entry_schema: + type: string + untrusted_b_v6_ips: + hidden: false + immutable: false + type: list + description: List of fixed IP addresses to use as untrusted alternate fixed IPs of B instances. + entry_schema: + type: string + mgmt_a_ips: + hidden: false + immutable: false + type: list + description: List of fixed IP addresses to use as management IPs of A instances. + entry_schema: + type: string + vm_role: + hidden: false + immutable: false + type: string + description: Role of these VMs + trusted_b_ips: + hidden: false + immutable: false + type: list + description: List of fixed IP addresses to use as trusted fixed IPs of B instances. + entry_schema: + type: string + perimeta_image_name: + hidden: false + immutable: false + type: string + description: Glance image for Perimeta instance + constraints: [ + ] + mgmt_net_default_gateway: + hidden: false + immutable: false + type: string + description: IP address of management default gateway + untrusted_a_ips: + hidden: false + immutable: false + type: list + description: List of fixed IP addresses to use as untrusted fixed IPs of A instances. + entry_schema: + type: string + untrusted_sec_groups: + hidden: false + immutable: false + type: list + description: List of security groups to add on untrusted interfaces. + entry_schema: + type: string + mgmt_net_id: + hidden: false + immutable: false + type: string + description: Management network id + constraints: [ + ] + perimeta_flavor_name: + hidden: false + immutable: false + type: string + description: Flavor to use for creating VM instances + constraints: [ + ] + ha_network_plen: + hidden: false + immutable: false + type: float + constraints: + - in_range: + - 0 + - 32 + mgmt_b_ips: + hidden: false + immutable: false + type: list + description: List of fixed IP addresses to use as management IPs of B instances. + entry_schema: + type: string + node_templates: + perimeta_a_untrusted_0_vlan_ports: + type: org.openecomp.resource.abstract.nodes.heat.vlan_subinterface_dual + directives: + - substitutable + properties: + vlan_ids: + get_input: untrusted_vlan_ids + service_template_filter: + substitute_service_template: vlan_subinterface_dualServiceTemplate.yaml + count: + get_input: untrusted_num_vlans + mandatory: false + parent_interface: perimeta_a_untrusted_0_port + virtual_ipv6_address: + get_input: + - untrusted_v6_vips + - get_input: perimeta_instance_index + virtual_ip_address: + get_input: + - untrusted_vips + - get_input: perimeta_instance_index + mac_address: + get_attribute: + - perimeta_a_untrusted_0_port + - mac_address + ipv6_address: + get_input: + - untrusted_a_v6_ips + - get_input: perimeta_instance_index + subinterface_name_prefix: + str_replace: + template: $VM_untrusted_port_vlan_ + params: + $VM: + get_input: + - vm_a_names + - get_input: perimeta_instance_index + subinterface_instance_index: + get_property: + - SELF + - service_template_filter + - index_value + ip_address: + get_input: + - untrusted_a_ips + - get_input: perimeta_instance_index + vlan_networks: + get_input: untrusted_vlan_networks + requirements: + - binding_contrail_vmi_subinterface: + capability: tosca.capabilities.network.Bindable + node: perimeta_a_untrusted_0_port + relationship: tosca.relationships.network.BindsTo + perimeta_a_server_0: + type: org.openecomp.resource.vfc.nodes.heat.vm_a + properties: + flavor: + get_input: perimeta_flavor_name + key_name: + get_input: perimeta_keypair + availability_zone: + get_input: availability_zone_0 + image: + get_input: perimeta_image_name + metadata: + vf_module_id: + get_input: vf_module_id + vm_role: + str_replace: + template: $ROLE_a + params: + $ROLE: + get_input: vm_role + vnf_id: + get_input: vnf_id + config_drive: true + personality: + /opt/MetaSwitch/init/custom.ini: + get_artifact: + - SELF + - custom + user_data_format: RAW + name: + get_input: + - vm_a_names + - get_input: perimeta_instance_index + scheduler_hints: + group: + get_input: perimeta_param_server_group + artifacts: + custom: + type: tosca.artifacts.Deployment + file: ../Artifacts/custom.ini + perimeta_a_mgmt_0_port: + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + security_groups: + get_input: mgmt_sec_groups + fixed_ips: + - ip_address: + get_input: + - mgmt_a_ips + - get_input: perimeta_instance_index + allowed_address_pairs: + - ip_address: + get_input: + - mgmt_vips + - get_input: perimeta_instance_index + name: + str_replace: + template: $VM_mgmt_port + params: + $VM: + get_input: + - vm_a_names + - get_input: perimeta_instance_index + network: + get_input: mgmt_net_id + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: perimeta_a_server_0 + relationship: tosca.relationships.network.BindsTo + perimeta_a_ha_0_port: + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + security_groups: + get_input: ha_sec_groups + fixed_ips: + - ip_address: + get_input: + - ha_a_ips + - get_input: perimeta_instance_index + name: + str_replace: + template: $VM_ha_port + params: + $VM: + get_input: + - vm_a_names + - get_input: perimeta_instance_index + network: + get_input: ha_net_id + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: perimeta_a_server_0 + relationship: tosca.relationships.network.BindsTo + perimeta_a_trusted_0_port: + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + security_groups: + get_input: trusted_sec_groups + fixed_ips: + - ip_address: + get_input: + - trusted_a_ips + - get_input: perimeta_instance_index + allowed_address_pairs: + - ip_address: + get_input: + - trusted_vips + - get_input: perimeta_instance_index + name: + str_replace: + template: $VM_trusted_port + params: + $VM: + get_input: + - vm_a_names + - get_input: perimeta_instance_index + network: + get_input: trusted_net_id + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: perimeta_a_server_0 + relationship: tosca.relationships.network.BindsTo + perimeta_a_untrusted_0_port: + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + security_groups: + get_input: untrusted_sec_groups + fixed_ips: + - ip_address: + get_input: + - untrusted_a_ips + - get_input: perimeta_instance_index + - ip_address: + get_input: + - untrusted_a_v6_ips + - get_input: perimeta_instance_index + allowed_address_pairs: + - ip_address: + get_input: + - untrusted_vips + - get_input: perimeta_instance_index + - ip_address: + get_input: + - untrusted_v6_vips + - get_input: perimeta_instance_index + name: + str_replace: + template: $VM_untrusted_port + params: + $VM: + get_input: + - vm_a_names + - get_input: perimeta_instance_index + network: + get_input: untrusted_net_id + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: perimeta_a_server_0 + relationship: tosca.relationships.network.BindsTo + groups: + perimeta_ha_sw_a_group: + type: org.openecomp.groups.heat.HeatStack + properties: + heat_file: ../Artifacts/perimeta_ha_sw_a.yaml + description: | + HOT template to instantiate a Perimeta 1+1 HA instance with 4vNICs as part of a nested template + members: + - perimeta_a_untrusted_0_vlan_ports + - perimeta_a_server_0 + - perimeta_a_mgmt_0_port + - perimeta_a_ha_0_port + - perimeta_a_trusted_0_port + - perimeta_a_untrusted_0_port + outputs: + server_group_used: + description: Server group used for these VMs + value: + get_input: perimeta_param_server_group + substitution_mappings: + node_type: org.openecomp.resource.abstract.nodes.heat.perimeta_ha_sw_a + capabilities: + scalable_perimeta_a_server_0: + - perimeta_a_server_0 + - scalable + attachment_perimeta_a_mgmt_0_port: + - perimeta_a_mgmt_0_port + - attachment + binding_perimeta_a_server_0: + - perimeta_a_server_0 + - binding + host_perimeta_a_server_0: + - perimeta_a_server_0 + - host + attachment_perimeta_a_trusted_0_port: + - perimeta_a_trusted_0_port + - attachment + attachment_perimeta_a_untrusted_0_port: + - perimeta_a_untrusted_0_port + - attachment + attachment_perimeta_a_ha_0_port: + - perimeta_a_ha_0_port + - attachment + binding_perimeta_a_mgmt_0_port: + - perimeta_a_mgmt_0_port + - binding + binding_perimeta_a_trusted_0_port: + - perimeta_a_trusted_0_port + - binding + binding_perimeta_a_untrusted_0_port: + - perimeta_a_untrusted_0_port + - binding + endpoint_perimeta_a_server_0: + - perimeta_a_server_0 + - endpoint + binding_perimeta_a_ha_0_port: + - perimeta_a_ha_0_port + - binding + os_perimeta_a_server_0: + - perimeta_a_server_0 + - os + requirements: + link_perimeta_a_trusted_0_port: + - perimeta_a_trusted_0_port + - link + link_perimeta_a_mgmt_0_port: + - perimeta_a_mgmt_0_port + - link + link_contrail_vmi_subinterface_perimeta_a_untrusted_0_vlan_ports: + - perimeta_a_untrusted_0_vlan_ports + - link_contrail_vmi_subinterface + link_perimeta_a_untrusted_0_port: + - perimeta_a_untrusted_0_port + - link + link_perimeta_a_ha_0_port: + - perimeta_a_ha_0_port + - link + local_storage_perimeta_a_server_0: + - perimeta_a_server_0 + - local_storage \ No newline at end of file -- cgit 1.2.3-korg