diff options
author | ojasdubey <ojas.dubey@amdocs.com> | 2018-02-22 14:32:06 +0530 |
---|---|---|
committer | Avi Gaffa <avi.gaffa@amdocs.com> | 2018-02-28 09:56:30 +0000 |
commit | 51e051e86f9f5d10c9439e9e5e57d1e9ee8f8e06 (patch) | |
tree | 957583dc6b93667d7024c7258716d6c6b96776c2 /openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/contrailv2Vlan/listInterface | |
parent | bc169d4b132891052cc8c642e18e642afd04464f (diff) |
VLAN tagging - Pattern 1A, 1C1
1. Implementation for supporting VLAN
tagging in Pattern 1A and 1C1 heats
2. Updated code for switch case refactor with
command design pattern
3. Added unit tests and bug fixes
Change-Id: I54938ffd6673f865b4506a890ec8e7b9c54597b1
Issue-ID: SDC-1036
Signed-off-by: ojasdubey <ojas.dubey@amdocs.com>
Diffstat (limited to 'openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/contrailv2Vlan/listInterface')
4 files changed, 709 insertions, 567 deletions
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/contrailv2Vlan/listInterface/expectedoutputfiles/MainServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/contrailv2Vlan/listInterface/expectedoutputfiles/MainServiceTemplate.yaml index 84c2ef46a0..7e2521ccc7 100644 --- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/contrailv2Vlan/listInterface/expectedoutputfiles/MainServiceTemplate.yaml +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/contrailv2Vlan/listInterface/expectedoutputfiles/MainServiceTemplate.yaml @@ -1,567 +1,45 @@ -tosca_definitions_version: tosca_simple_yaml_1_0_0 -metadata: - template_name: Main -imports: -- openecomp_heat_index: - file: openecomp-heat/_index.yml -topology_template: - inputs: - template_PortTuple_LB1: - hidden: false - immutable: false - annotations: - source: - type: org.openecomp.annotations.Source - properties: - vf_module_label: - - hot_template - source_type: HEAT - param_name: template_PortTuple_LB1 - type: string - description: dummy - lb_st_interface_type_oam: - hidden: false - immutable: false - annotations: - source: - type: org.openecomp.annotations.Source - properties: - vf_module_label: - - hot_template - source_type: HEAT - param_name: lb_st_interface_type_oam - type: string - description: dummy - oam_sec_group_name: - hidden: false - immutable: false - annotations: - source: - type: org.openecomp.annotations.Source - properties: - vf_module_label: - - hot_template - source_type: HEAT - param_name: oam_sec_group_name - type: string - description: dummy - virtual_ip_address: - hidden: false - immutable: false - annotations: - source: - type: org.openecomp.annotations.Source - properties: - vf_module_label: - - hot_template - source_type: HEAT - param_name: virtual_ip_address - type: string - nems_traffic_name: - hidden: false - immutable: false - annotations: - source: - type: org.openecomp.annotations.Source - properties: - vf_module_label: - - hot_template - source_type: HEAT - param_name: nems_traffic_name - type: string - description: dummy - jsa_net_name: - hidden: false - immutable: false - annotations: - source: - type: org.openecomp.annotations.Source - properties: - vf_module_label: - - hot_template - source_type: HEAT - param_name: jsa_net_name - type: string - description: dummy - vlan_ids: - hidden: false - immutable: false - annotations: - source: - type: org.openecomp.annotations.Source - properties: - vf_module_label: - - hot_template - source_type: HEAT - param_name: vlan_ids - type: string - virtual_ipv6_address: - hidden: false - immutable: false - annotations: - source: - type: org.openecomp.annotations.Source - properties: - vf_module_label: - - hot_template - source_type: HEAT - param_name: virtual_ipv6_address - type: string - lb_st_vlan_type_oam: - hidden: false - immutable: false - annotations: - source: - type: org.openecomp.annotations.Source - properties: - vf_module_label: - - hot_template - source_type: HEAT - param_name: lb_st_vlan_type_oam - type: string - description: dummy - mac_address: - hidden: false - immutable: false - annotations: - source: - type: org.openecomp.annotations.Source - properties: - vf_module_label: - - hot_template - source_type: HEAT - param_name: mac_address - type: string - network_ipam_refs_data_ipam_subnets_addr_from_start_true: - hidden: false - immutable: false - annotations: - source: - type: org.openecomp.annotations.Source - properties: - vf_module_label: - - hot_template - source_type: HEAT - param_name: network_ipam_refs_data_ipam_subnets_addr_from_start_true - type: string - description: dummy - subinterface_name_prefix: - hidden: false - immutable: false - annotations: - source: - type: org.openecomp.annotations.Source - properties: - vf_module_label: - - hot_template - source_type: HEAT - param_name: subinterface_name_prefix - type: string - subinterface_instance_index: - hidden: false - immutable: false - annotations: - source: - type: org.openecomp.annotations.Source - properties: - vf_module_label: - - hot_template - source_type: HEAT - param_name: subinterface_instance_index - type: float - network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2: - hidden: false - immutable: false - annotations: - source: - type: org.openecomp.annotations.Source - properties: - vf_module_label: - - hot_template - source_type: HEAT - param_name: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2 - type: string - description: dummy - network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2: - hidden: false - immutable: false - annotations: - source: - type: org.openecomp.annotations.Source - properties: - vf_module_label: - - hot_template - source_type: HEAT - param_name: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2 - type: string - description: dummy - node_templates: - jsa_net3: - type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork - properties: - network_ipam_refs_data: - - network_ipam_refs_data_ipam_subnets: - - network_ipam_refs_data_ipam_subnets_subnet: - network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len: - get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2 - network_ipam_refs_data_ipam_subnets_subnet_ip_prefix: - get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2 - network_ipam_refs_data_ipam_subnets_addr_from_start: - get_input: network_ipam_refs_data_ipam_subnets_addr_from_start_true - network_name: aaa - jsa_net2: - type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork - properties: - network_ipam_refs_data: - - network_ipam_refs_data_ipam_subnets: - - network_ipam_refs_data_ipam_subnets_subnet: - network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len: - get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2 - network_ipam_refs_data_ipam_subnets_subnet_ip_prefix: - get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2 - network_ipam_refs_data_ipam_subnets_addr_from_start: - get_input: network_ipam_refs_data_ipam_subnets_addr_from_start_true - network_name: aaa - jsa_net5: - type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork - properties: - network_ipam_refs_data: - - network_ipam_refs_data_ipam_subnets: - - network_ipam_refs_data_ipam_subnets_subnet: - network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len: - get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2 - network_ipam_refs_data_ipam_subnets_subnet_ip_prefix: - get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2 - network_ipam_refs_data_ipam_subnets_addr_from_start: - get_input: network_ipam_refs_data_ipam_subnets_addr_from_start_true - network_name: aaa - jsa_net4: - type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork - properties: - network_name: - get_input: nems_traffic_name - jsa_net1: - type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork - properties: - network_ipam_refs_data: - - network_ipam_refs_data_ipam_subnets: - - network_ipam_refs_data_ipam_subnets_subnet: - network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len: - get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2 - network_ipam_refs_data_ipam_subnets_subnet_ip_prefix: - get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2 - network_ipam_refs_data_ipam_subnets_addr_from_start: - get_input: network_ipam_refs_data_ipam_subnets_addr_from_start_true - network_name: aaa - template_VMInt_OAM_lb_5: - type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface - properties: - security_group_refs: - - get_input: oam_sec_group_name - virtual_network_refs: [ - ] - virtual_machine_interface_properties: - service_interface_type: - get_input: lb_st_interface_type_oam - port_tuple_refs: - - get_input: template_PortTuple_LB1 - template_VMInt_OAM_lb_6: - type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface - properties: - security_group_refs: - - get_input: oam_sec_group_name - virtual_network_refs: - get_attribute: - - jsa_net3 - - fq_name - virtual_machine_interface_properties: - service_interface_type: - get_input: lb_st_interface_type_oam - port_tuple_refs: - - get_input: template_PortTuple_LB1 - template_VMInt_OAM_lb_7: - type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface - properties: - security_group_refs: - - get_input: oam_sec_group_name - virtual_machine_interface_properties: - service_interface_type: - get_input: lb_st_interface_type_oam - port_tuple_refs: - - get_input: template_PortTuple_LB1 - template_VMInt_OAM_lb_1: - type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface - properties: - security_group_refs: - - get_input: oam_sec_group_name - virtual_network_refs: - - jsa_net1 - - jsa_net5 - virtual_machine_interface_properties: - service_interface_type: - get_input: lb_st_interface_type_oam - port_tuple_refs: - - get_input: template_PortTuple_LB1 - requirements: - - link: - capability: tosca.capabilities.network.Linkable - node: jsa_net1 - relationship: tosca.relationships.network.LinksTo - template_VMInt_OAM_lb_2: - type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface - properties: - security_group_refs: - - get_input: oam_sec_group_name - virtual_network_refs: - - list_join: - - ':' - - get_attribute: - - jsa_net2 - - fq_name - - list_join: - - ':' - - get_attribute: - - jsa_net5 - - fq_name - virtual_machine_interface_properties: - service_interface_type: - get_input: lb_st_interface_type_oam - port_tuple_refs: - - get_input: template_PortTuple_LB1 - requirements: - - link: - capability: tosca.capabilities.network.Linkable - node: jsa_net2 - relationship: tosca.relationships.network.LinksTo - template_VMInt_OAM_lb_3: - type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface - properties: - security_group_refs: - - get_input: oam_sec_group_name - virtual_network_refs: - - get_attribute: - - jsa_net3 - - fq_name - - get_attribute: - - jsa_net5 - - fq_name - virtual_machine_interface_properties: - service_interface_type: - get_input: lb_st_interface_type_oam - port_tuple_refs: - - get_input: template_PortTuple_LB1 - requirements: - - link: - capability: tosca.capabilities.network.Linkable - node: jsa_net3 - relationship: tosca.relationships.network.LinksTo - template_VMInt_OAM_lb_4: - type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface - properties: - security_group_refs: - - get_input: oam_sec_group_name - virtual_network_refs: - - get_attribute: - - jsa_net4 - - fq_name - virtual_machine_interface_properties: - service_interface_type: - get_input: lb_st_interface_type_oam - port_tuple_refs: - - get_input: template_PortTuple_LB1 - template_Vlan_3: - type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface - properties: - virtual_machine_interface_refs: - - get_attribute: - - template_VMInt_OAM_lb_3 - - fq_name - - get_attribute: - - template_VMInt_OAM_lb_1 - - fq_name - name: - str_replace: - template: $NAME$VLAN - params: - $NAME: - get_input: subinterface_name_prefix - $VLAN: - get_input: - - vlan_ids - - get_input: subinterface_instance_index - virtual_network_refs: - - get_attribute: - - jsa_net3 - - fq_name - - get_attribute: - - jsa_net5 - - fq_name - virtual_machine_interface_properties: - sub_interface_vlan_tag: - get_input: lb_st_vlan_type_oam - virtual_machine_interface_allowed_address_pairs: - allowed_address_pair: - - address_mode: active-standby - ip: - ip_prefix: - get_input: virtual_ip_address - ip_prefix_len: 32 - mac: - get_input: mac_address - - address_mode: active-standby - ip: - ip_prefix: - get_input: virtual_ipv6_address - ip_prefix_len: 128 - mac: - get_input: mac_address - virtual_machine_interface_mac_addresses: - mac_address: - - get_input: mac_address - requirements: - - link: - capability: tosca.capabilities.network.Linkable - node: jsa_net3 - relationship: tosca.relationships.network.LinksTo - - binding: - capability: tosca.capabilities.network.Bindable - node: template_VMInt_OAM_lb_3 - relationship: tosca.relationships.network.BindsTo - template_Vlan_2: - type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface - properties: - virtual_machine_interface_refs: - - list_join: - - ':' - - get_attribute: - - template_VMInt_OAM_lb_1 - - fq_name - - list_join: - - ':' - - get_attribute: - - template_VMInt_OAM_lb_2 - - fq_name - name: - str_replace: - template: $NAME$VLAN - params: - $NAME: - get_input: subinterface_name_prefix - $VLAN: - get_input: - - vlan_ids - - get_input: subinterface_instance_index - virtual_network_refs: - - list_join: - - ':' - - get_attribute: - - jsa_net2 - - fq_name - - list_join: - - ':' - - get_attribute: - - jsa_net5 - - fq_name - virtual_machine_interface_properties: - sub_interface_vlan_tag: - get_input: lb_st_vlan_type_oam - virtual_machine_interface_allowed_address_pairs: - allowed_address_pair: - - address_mode: active-standby - ip: - ip_prefix: - get_input: virtual_ip_address - ip_prefix_len: 32 - mac: - get_input: mac_address - - address_mode: active-standby - ip: - ip_prefix: - get_input: virtual_ipv6_address - ip_prefix_len: 128 - mac: - get_input: mac_address - virtual_machine_interface_mac_addresses: - mac_address: - - get_input: mac_address - requirements: - - link: - capability: tosca.capabilities.network.Linkable - node: jsa_net2 - relationship: tosca.relationships.network.LinksTo - - binding: - capability: tosca.capabilities.network.Bindable - node: template_VMInt_OAM_lb_1 - relationship: tosca.relationships.network.BindsTo - template_Vlan_1: - type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface - properties: - virtual_machine_interface_refs: - - template_VMInt_OAM_lb_1 - - template_VMInt_OAM_lb_2 - name: - str_replace: - template: $NAME$VLAN - params: - $NAME: - get_input: subinterface_name_prefix - $VLAN: - get_input: - - vlan_ids - - get_input: subinterface_instance_index - virtual_network_refs: - - jsa_net1 - - jsa_net5 - virtual_machine_interface_properties: - sub_interface_vlan_tag: - get_input: lb_st_vlan_type_oam - virtual_machine_interface_allowed_address_pairs: - allowed_address_pair: - - address_mode: active-standby - ip: - ip_prefix: - get_input: virtual_ip_address - ip_prefix_len: 32 - mac: - get_input: mac_address - - address_mode: active-standby - ip: - ip_prefix: - get_input: virtual_ipv6_address - ip_prefix_len: 128 - mac: - get_input: mac_address - virtual_machine_interface_mac_addresses: - mac_address: - - get_input: mac_address - requirements: - - link: - capability: tosca.capabilities.network.Linkable - node: jsa_net1 - relationship: tosca.relationships.network.LinksTo - - binding: - capability: tosca.capabilities.network.Bindable - node: template_VMInt_OAM_lb_1 - relationship: tosca.relationships.network.BindsTo - groups: - hot_template_group: - type: org.openecomp.groups.heat.HeatStack - properties: - heat_file: ../Artifacts/hot_template.yml - description: cmaui server template for vMMSC - members: - - jsa_net3 - - jsa_net2 - - jsa_net5 - - jsa_net4 - - jsa_net1 - - template_VMInt_OAM_lb_5 - - template_VMInt_OAM_lb_6 - - template_VMInt_OAM_lb_7 - - template_VMInt_OAM_lb_1 - - template_VMInt_OAM_lb_2 - - template_VMInt_OAM_lb_3 - - template_VMInt_OAM_lb_4 - - template_Vlan_3 - - template_Vlan_2 - - template_Vlan_1 +tosca_definitions_version: tosca_simple_yaml_1_0_0
+metadata:
+ template_name: Main
+imports:
+- openecomp_heat_index:
+ file: openecomp-heat/_index.yml
+- GlobalSubstitutionTypes:
+ file: GlobalSubstitutionTypesServiceTemplate.yaml
+topology_template:
+ inputs:
+ lb_st_interface_type_oam:
+ hidden: false
+ immutable: false
+ annotations:
+ source:
+ type: org.openecomp.annotations.Source
+ properties:
+ vf_module_label:
+ - base_hot_template
+ source_type: HEAT
+ param_name: lb_st_interface_type_oam
+ type: string
+ description: dummy
+ node_templates:
+ template_VMInt_INT1_VLC:
+ type: org.openecomp.resource.abstract.nodes.heat.hot_template
+ directives:
+ - substitutable
+ properties:
+ service_template_filter:
+ substitute_service_template: hot_templateServiceTemplate.yaml
+ count: 3
+ mandatory: true
+ virtual_machine_interface_properties:
+ virtual_machine_interface_properties_service_interface_type:
+ get_input: lb_st_interface_type_oam
+ groups:
+ base_hot_template_group:
+ type: org.openecomp.groups.heat.HeatStack
+ properties:
+ heat_file: ../Artifacts/base_hot_template.yml
+ description: |
+ Module HOT template to create vmme 2 vlc
+ members:
+ - template_VMInt_INT1_VLC
\ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/contrailv2Vlan/listInterface/expectedoutputfiles/hot_templateServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/contrailv2Vlan/listInterface/expectedoutputfiles/hot_templateServiceTemplate.yaml new file mode 100644 index 0000000000..4ee2b20210 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/contrailv2Vlan/listInterface/expectedoutputfiles/hot_templateServiceTemplate.yaml @@ -0,0 +1,636 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0
+metadata:
+ template_name: hot_template
+imports:
+- openecomp_heat_index:
+ file: openecomp-heat/_index.yml
+- GlobalSubstitutionTypes:
+ file: GlobalSubstitutionTypesServiceTemplate.yaml
+topology_template:
+ inputs:
+ template_PortTuple_LB1:
+ hidden: false
+ immutable: false
+ type: string
+ description: dummy
+ lb_st_interface_type_oam:
+ hidden: false
+ immutable: false
+ type: string
+ description: dummy
+ oam_sec_group_name:
+ hidden: false
+ immutable: false
+ type: string
+ description: dummy
+ virtual_ip_address:
+ hidden: false
+ immutable: false
+ type: string
+ nems_traffic_name:
+ hidden: false
+ immutable: false
+ type: string
+ description: dummy
+ jsa_net_name:
+ hidden: false
+ immutable: false
+ type: string
+ description: dummy
+ vlan_ids:
+ hidden: false
+ immutable: false
+ type: string
+ virtual_ipv6_address:
+ hidden: false
+ immutable: false
+ type: string
+ lb_st_vlan_type_oam:
+ hidden: false
+ immutable: false
+ type: string
+ description: dummy
+ mac_address:
+ hidden: false
+ immutable: false
+ type: string
+ network_ipam_refs_data_ipam_subnets_addr_from_start_true:
+ hidden: false
+ immutable: false
+ type: string
+ description: dummy
+ subinterface_name_prefix:
+ hidden: false
+ immutable: false
+ type: string
+ subinterface_instance_index:
+ hidden: false
+ immutable: false
+ type: float
+ network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2:
+ hidden: false
+ immutable: false
+ type: string
+ description: dummy
+ network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2:
+ hidden: false
+ immutable: false
+ type: string
+ description: dummy
+ node_templates:
+ jsa_net3:
+ type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
+ properties:
+ network_ipam_refs_data:
+ - network_ipam_refs_data_ipam_subnets:
+ - network_ipam_refs_data_ipam_subnets_subnet:
+ network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
+ get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
+ network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
+ get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
+ network_ipam_refs_data_ipam_subnets_addr_from_start:
+ get_input: network_ipam_refs_data_ipam_subnets_addr_from_start_true
+ network_name: aaa
+ template_VMInt_OAM_lb_5:
+ type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
+ properties:
+ security_group_refs:
+ - get_input: oam_sec_group_name
+ virtual_network_refs: [
+ ]
+ virtual_machine_interface_properties:
+ service_interface_type:
+ get_input: lb_st_interface_type_oam
+ port_tuple_refs:
+ - get_input: template_PortTuple_LB1
+ jsa_net2:
+ type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
+ properties:
+ network_ipam_refs_data:
+ - network_ipam_refs_data_ipam_subnets:
+ - network_ipam_refs_data_ipam_subnets_subnet:
+ network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
+ get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
+ network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
+ get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
+ network_ipam_refs_data_ipam_subnets_addr_from_start:
+ get_input: network_ipam_refs_data_ipam_subnets_addr_from_start_true
+ network_name: aaa
+ template_VMInt_OAM_lb_6:
+ type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
+ properties:
+ security_group_refs:
+ - get_input: oam_sec_group_name
+ virtual_network_refs:
+ get_attribute:
+ - jsa_net3
+ - fq_name
+ virtual_machine_interface_properties:
+ service_interface_type:
+ get_input: lb_st_interface_type_oam
+ port_tuple_refs:
+ - get_input: template_PortTuple_LB1
+ template_VMInt_OAM_lb_7:
+ type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
+ properties:
+ security_group_refs:
+ - get_input: oam_sec_group_name
+ virtual_machine_interface_properties:
+ service_interface_type:
+ get_input: lb_st_interface_type_oam
+ port_tuple_refs:
+ - get_input: template_PortTuple_LB1
+ jsa_net5:
+ type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
+ properties:
+ network_ipam_refs_data:
+ - network_ipam_refs_data_ipam_subnets:
+ - network_ipam_refs_data_ipam_subnets_subnet:
+ network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
+ get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
+ network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
+ get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
+ network_ipam_refs_data_ipam_subnets_addr_from_start:
+ get_input: network_ipam_refs_data_ipam_subnets_addr_from_start_true
+ network_name: aaa
+ jsa_net4:
+ type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork
+ properties:
+ network_name:
+ get_input: nems_traffic_name
+ template_VMInt_OAM_lb_1:
+ type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
+ properties:
+ security_group_refs:
+ - get_input: oam_sec_group_name
+ virtual_network_refs:
+ - jsa_net1
+ - jsa_net5
+ virtual_machine_interface_properties:
+ service_interface_type:
+ get_input: lb_st_interface_type_oam
+ port_tuple_refs:
+ - get_input: template_PortTuple_LB1
+ requirements:
+ - link:
+ capability: tosca.capabilities.network.Linkable
+ node: jsa_net1
+ relationship: tosca.relationships.network.LinksTo
+ template_VMInt_OAM_lb_2:
+ type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
+ properties:
+ security_group_refs:
+ - get_input: oam_sec_group_name
+ virtual_network_refs:
+ - list_join:
+ - ':'
+ - get_attribute:
+ - jsa_net2
+ - fq_name
+ - list_join:
+ - ':'
+ - get_attribute:
+ - jsa_net5
+ - fq_name
+ virtual_machine_interface_properties:
+ service_interface_type:
+ get_input: lb_st_interface_type_oam
+ port_tuple_refs:
+ - get_input: template_PortTuple_LB1
+ requirements:
+ - link:
+ capability: tosca.capabilities.network.Linkable
+ node: jsa_net2
+ relationship: tosca.relationships.network.LinksTo
+ jsa_net1:
+ type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
+ properties:
+ network_ipam_refs_data:
+ - network_ipam_refs_data_ipam_subnets:
+ - network_ipam_refs_data_ipam_subnets_subnet:
+ network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
+ get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
+ network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
+ get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
+ network_ipam_refs_data_ipam_subnets_addr_from_start:
+ get_input: network_ipam_refs_data_ipam_subnets_addr_from_start_true
+ network_name: aaa
+ template_VMInt_OAM_lb_3:
+ type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
+ properties:
+ security_group_refs:
+ - get_input: oam_sec_group_name
+ virtual_network_refs:
+ - get_attribute:
+ - jsa_net3
+ - fq_name
+ - get_attribute:
+ - jsa_net5
+ - fq_name
+ virtual_machine_interface_properties:
+ service_interface_type:
+ get_input: lb_st_interface_type_oam
+ port_tuple_refs:
+ - get_input: template_PortTuple_LB1
+ requirements:
+ - link:
+ capability: tosca.capabilities.network.Linkable
+ node: jsa_net3
+ relationship: tosca.relationships.network.LinksTo
+ template_VMInt_OAM_lb_4:
+ type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
+ properties:
+ security_group_refs:
+ - get_input: oam_sec_group_name
+ virtual_network_refs:
+ - get_attribute:
+ - jsa_net4
+ - fq_name
+ virtual_machine_interface_properties:
+ service_interface_type:
+ get_input: lb_st_interface_type_oam
+ port_tuple_refs:
+ - get_input: template_PortTuple_LB1
+ groups:
+ hot_template_group:
+ type: org.openecomp.groups.heat.HeatStack
+ properties:
+ heat_file: ../Artifacts/hot_template.yml
+ description: cmaui server template for vMMSC
+ members:
+ - jsa_net3
+ - template_VMInt_OAM_lb_5
+ - jsa_net2
+ - template_VMInt_OAM_lb_6
+ - template_VMInt_OAM_lb_7
+ - jsa_net5
+ - jsa_net4
+ - template_VMInt_OAM_lb_1
+ - template_VMInt_OAM_lb_2
+ - jsa_net1
+ - template_VMInt_OAM_lb_3
+ - template_VMInt_OAM_lb_4
+ substitution_mappings:
+ node_type: org.openecomp.resource.abstract.nodes.heat.hot_template
+ capabilities:
+ feature_jsa_net5:
+ - jsa_net5
+ - feature
+ binding_template_VMInt_OAM_lb_6:
+ - template_VMInt_OAM_lb_6
+ - binding
+ feature_jsa_net1:
+ - jsa_net1
+ - feature
+ binding_template_VMInt_OAM_lb_5:
+ - template_VMInt_OAM_lb_5
+ - binding
+ feature_jsa_net2:
+ - jsa_net2
+ - feature
+ feature_jsa_net3:
+ - jsa_net3
+ - feature
+ binding_template_VMInt_OAM_lb_4:
+ - template_VMInt_OAM_lb_4
+ - binding
+ feature_jsa_net4:
+ - jsa_net4
+ - feature
+ binding_template_VMInt_OAM_lb_3:
+ - template_VMInt_OAM_lb_3
+ - binding
+ network.incoming.bytes_template_VMInt_OAM_lb_4:
+ - template_VMInt_OAM_lb_4
+ - network.incoming.bytes
+ network.incoming.bytes_template_VMInt_OAM_lb_3:
+ - template_VMInt_OAM_lb_3
+ - network.incoming.bytes
+ network.incoming.bytes_template_VMInt_OAM_lb_2:
+ - template_VMInt_OAM_lb_2
+ - network.incoming.bytes
+ binding_template_VMInt_OAM_lb_7:
+ - template_VMInt_OAM_lb_7
+ - binding
+ network.incoming.bytes_template_VMInt_OAM_lb_1:
+ - template_VMInt_OAM_lb_1
+ - network.incoming.bytes
+ network.incoming.bytes_template_VMInt_OAM_lb_7:
+ - template_VMInt_OAM_lb_7
+ - network.incoming.bytes
+ network.incoming.bytes_template_VMInt_OAM_lb_6:
+ - template_VMInt_OAM_lb_6
+ - network.incoming.bytes
+ network.incoming.bytes_template_VMInt_OAM_lb_5:
+ - template_VMInt_OAM_lb_5
+ - network.incoming.bytes
+ attachment_jsa_net3:
+ - jsa_net3
+ - attachment
+ attachment_jsa_net2:
+ - jsa_net2
+ - attachment
+ attachment_jsa_net5:
+ - jsa_net5
+ - attachment
+ network.outgoing.packets.rate_template_VMInt_OAM_lb_2:
+ - template_VMInt_OAM_lb_2
+ - network.outgoing.packets.rate
+ attachment_jsa_net4:
+ - jsa_net4
+ - attachment
+ network.outgoing.packets.rate_template_VMInt_OAM_lb_1:
+ - template_VMInt_OAM_lb_1
+ - network.outgoing.packets.rate
+ attachment_jsa_net1:
+ - jsa_net1
+ - attachment
+ network.outpoing.packets_template_VMInt_OAM_lb_1:
+ - template_VMInt_OAM_lb_1
+ - network.outpoing.packets
+ network.outpoing.packets_template_VMInt_OAM_lb_3:
+ - template_VMInt_OAM_lb_3
+ - network.outpoing.packets
+ network.outpoing.packets_template_VMInt_OAM_lb_2:
+ - template_VMInt_OAM_lb_2
+ - network.outpoing.packets
+ network.outpoing.packets_template_VMInt_OAM_lb_5:
+ - template_VMInt_OAM_lb_5
+ - network.outpoing.packets
+ network.outpoing.packets_template_VMInt_OAM_lb_4:
+ - template_VMInt_OAM_lb_4
+ - network.outpoing.packets
+ network.outgoing.bytes_template_VMInt_OAM_lb_5:
+ - template_VMInt_OAM_lb_5
+ - network.outgoing.bytes
+ network.incoming.packets_template_VMInt_OAM_lb_1:
+ - template_VMInt_OAM_lb_1
+ - network.incoming.packets
+ network.outgoing.bytes_template_VMInt_OAM_lb_6:
+ - template_VMInt_OAM_lb_6
+ - network.outgoing.bytes
+ network.incoming.packets_template_VMInt_OAM_lb_2:
+ - template_VMInt_OAM_lb_2
+ - network.incoming.packets
+ network.outgoing.bytes_template_VMInt_OAM_lb_3:
+ - template_VMInt_OAM_lb_3
+ - network.outgoing.bytes
+ network.incoming.packets_template_VMInt_OAM_lb_3:
+ - template_VMInt_OAM_lb_3
+ - network.incoming.packets
+ network.outgoing.bytes_template_VMInt_OAM_lb_4:
+ - template_VMInt_OAM_lb_4
+ - network.outgoing.bytes
+ network.incoming.packets_template_VMInt_OAM_lb_4:
+ - template_VMInt_OAM_lb_4
+ - network.incoming.packets
+ network.outgoing.bytes_template_VMInt_OAM_lb_1:
+ - template_VMInt_OAM_lb_1
+ - network.outgoing.bytes
+ network.outgoing.bytes_template_VMInt_OAM_lb_2:
+ - template_VMInt_OAM_lb_2
+ - network.outgoing.bytes
+ network.outpoing.packets_template_VMInt_OAM_lb_7:
+ - template_VMInt_OAM_lb_7
+ - network.outpoing.packets
+ network.outpoing.packets_template_VMInt_OAM_lb_6:
+ - template_VMInt_OAM_lb_6
+ - network.outpoing.packets
+ network.outgoing.bytes_template_VMInt_OAM_lb_7:
+ - template_VMInt_OAM_lb_7
+ - network.outgoing.bytes
+ network.outgoing.bytes.rate_template_VMInt_OAM_lb_5:
+ - template_VMInt_OAM_lb_5
+ - network.outgoing.bytes.rate
+ network.outgoing.bytes.rate_template_VMInt_OAM_lb_6:
+ - template_VMInt_OAM_lb_6
+ - network.outgoing.bytes.rate
+ network.outgoing.bytes.rate_template_VMInt_OAM_lb_3:
+ - template_VMInt_OAM_lb_3
+ - network.outgoing.bytes.rate
+ network.outgoing.bytes.rate_template_VMInt_OAM_lb_4:
+ - template_VMInt_OAM_lb_4
+ - network.outgoing.bytes.rate
+ network.incoming.bytes.rate_template_VMInt_OAM_lb_1:
+ - template_VMInt_OAM_lb_1
+ - network.incoming.bytes.rate
+ network.incoming.bytes.rate_template_VMInt_OAM_lb_2:
+ - template_VMInt_OAM_lb_2
+ - network.incoming.bytes.rate
+ network.outgoing.bytes.rate_template_VMInt_OAM_lb_7:
+ - template_VMInt_OAM_lb_7
+ - network.outgoing.bytes.rate
+ network.incoming.bytes.rate_template_VMInt_OAM_lb_3:
+ - template_VMInt_OAM_lb_3
+ - network.incoming.bytes.rate
+ network.incoming.bytes.rate_template_VMInt_OAM_lb_4:
+ - template_VMInt_OAM_lb_4
+ - network.incoming.bytes.rate
+ network.incoming.bytes.rate_template_VMInt_OAM_lb_5:
+ - template_VMInt_OAM_lb_5
+ - network.incoming.bytes.rate
+ network.incoming.bytes.rate_template_VMInt_OAM_lb_6:
+ - template_VMInt_OAM_lb_6
+ - network.incoming.bytes.rate
+ network.incoming.bytes.rate_template_VMInt_OAM_lb_7:
+ - template_VMInt_OAM_lb_7
+ - network.incoming.bytes.rate
+ network.incoming.packets_template_VMInt_OAM_lb_5:
+ - template_VMInt_OAM_lb_5
+ - network.incoming.packets
+ network.incoming.packets_template_VMInt_OAM_lb_6:
+ - template_VMInt_OAM_lb_6
+ - network.incoming.packets
+ network.incoming.packets_template_VMInt_OAM_lb_7:
+ - template_VMInt_OAM_lb_7
+ - network.incoming.packets
+ forwarder_template_VMInt_OAM_lb_7:
+ - template_VMInt_OAM_lb_7
+ - forwarder
+ forwarder_template_VMInt_OAM_lb_6:
+ - template_VMInt_OAM_lb_6
+ - forwarder
+ forwarder_template_VMInt_OAM_lb_1:
+ - template_VMInt_OAM_lb_1
+ - forwarder
+ link_jsa_net5:
+ - jsa_net5
+ - link
+ forwarder_template_VMInt_OAM_lb_5:
+ - template_VMInt_OAM_lb_5
+ - forwarder
+ link_jsa_net2:
+ - jsa_net2
+ - link
+ network.outgoing.bytes.rate_template_VMInt_OAM_lb_1:
+ - template_VMInt_OAM_lb_1
+ - network.outgoing.bytes.rate
+ network.outgoing.bytes.rate_template_VMInt_OAM_lb_2:
+ - template_VMInt_OAM_lb_2
+ - network.outgoing.bytes.rate
+ link_jsa_net1:
+ - jsa_net1
+ - link
+ forwarder_template_VMInt_OAM_lb_4:
+ - template_VMInt_OAM_lb_4
+ - forwarder
+ link_jsa_net4:
+ - jsa_net4
+ - link
+ forwarder_template_VMInt_OAM_lb_3:
+ - template_VMInt_OAM_lb_3
+ - forwarder
+ link_jsa_net3:
+ - jsa_net3
+ - link
+ forwarder_template_VMInt_OAM_lb_2:
+ - template_VMInt_OAM_lb_2
+ - forwarder
+ end_point_jsa_net5:
+ - jsa_net5
+ - end_point
+ network.incoming.packets.rate_template_VMInt_OAM_lb_4:
+ - template_VMInt_OAM_lb_4
+ - network.incoming.packets.rate
+ network.incoming.packets.rate_template_VMInt_OAM_lb_3:
+ - template_VMInt_OAM_lb_3
+ - network.incoming.packets.rate
+ end_point_jsa_net3:
+ - jsa_net3
+ - end_point
+ network.incoming.packets.rate_template_VMInt_OAM_lb_2:
+ - template_VMInt_OAM_lb_2
+ - network.incoming.packets.rate
+ end_point_jsa_net4:
+ - jsa_net4
+ - end_point
+ network.incoming.packets.rate_template_VMInt_OAM_lb_1:
+ - template_VMInt_OAM_lb_1
+ - network.incoming.packets.rate
+ network.incoming.packets.rate_template_VMInt_OAM_lb_7:
+ - template_VMInt_OAM_lb_7
+ - network.incoming.packets.rate
+ network.incoming.packets.rate_template_VMInt_OAM_lb_6:
+ - template_VMInt_OAM_lb_6
+ - network.incoming.packets.rate
+ feature_template_VMInt_OAM_lb_6:
+ - template_VMInt_OAM_lb_6
+ - feature
+ network.incoming.packets.rate_template_VMInt_OAM_lb_5:
+ - template_VMInt_OAM_lb_5
+ - network.incoming.packets.rate
+ feature_template_VMInt_OAM_lb_7:
+ - template_VMInt_OAM_lb_7
+ - feature
+ feature_template_VMInt_OAM_lb_4:
+ - template_VMInt_OAM_lb_4
+ - feature
+ feature_template_VMInt_OAM_lb_5:
+ - template_VMInt_OAM_lb_5
+ - feature
+ feature_template_VMInt_OAM_lb_2:
+ - template_VMInt_OAM_lb_2
+ - feature
+ feature_template_VMInt_OAM_lb_3:
+ - template_VMInt_OAM_lb_3
+ - feature
+ feature_template_VMInt_OAM_lb_1:
+ - template_VMInt_OAM_lb_1
+ - feature
+ end_point_jsa_net1:
+ - jsa_net1
+ - end_point
+ end_point_jsa_net2:
+ - jsa_net2
+ - end_point
+ network.outgoing.packets.rate_template_VMInt_OAM_lb_7:
+ - template_VMInt_OAM_lb_7
+ - network.outgoing.packets.rate
+ network.outgoing.packets.rate_template_VMInt_OAM_lb_4:
+ - template_VMInt_OAM_lb_4
+ - network.outgoing.packets.rate
+ network.outgoing.packets.rate_template_VMInt_OAM_lb_3:
+ - template_VMInt_OAM_lb_3
+ - network.outgoing.packets.rate
+ network.outgoing.packets.rate_template_VMInt_OAM_lb_6:
+ - template_VMInt_OAM_lb_6
+ - network.outgoing.packets.rate
+ network.outgoing.packets.rate_template_VMInt_OAM_lb_5:
+ - template_VMInt_OAM_lb_5
+ - network.outgoing.packets.rate
+ binding_template_VMInt_OAM_lb_2:
+ - template_VMInt_OAM_lb_2
+ - binding
+ binding_template_VMInt_OAM_lb_1:
+ - template_VMInt_OAM_lb_1
+ - binding
+ requirements:
+ dependency_jsa_net3:
+ - jsa_net3
+ - dependency
+ dependency_template_VMInt_OAM_lb_5:
+ - template_VMInt_OAM_lb_5
+ - dependency
+ binding_template_VMInt_OAM_lb_2:
+ - template_VMInt_OAM_lb_2
+ - binding
+ dependency_jsa_net2:
+ - jsa_net2
+ - dependency
+ dependency_template_VMInt_OAM_lb_6:
+ - template_VMInt_OAM_lb_6
+ - dependency
+ binding_template_VMInt_OAM_lb_1:
+ - template_VMInt_OAM_lb_1
+ - binding
+ dependency_template_VMInt_OAM_lb_7:
+ - template_VMInt_OAM_lb_7
+ - dependency
+ dependency_jsa_net5:
+ - jsa_net5
+ - dependency
+ dependency_jsa_net4:
+ - jsa_net4
+ - dependency
+ dependency_template_VMInt_OAM_lb_1:
+ - template_VMInt_OAM_lb_1
+ - dependency
+ dependency_template_VMInt_OAM_lb_2:
+ - template_VMInt_OAM_lb_2
+ - dependency
+ dependency_template_VMInt_OAM_lb_3:
+ - template_VMInt_OAM_lb_3
+ - dependency
+ dependency_template_VMInt_OAM_lb_4:
+ - template_VMInt_OAM_lb_4
+ - dependency
+ link_template_VMInt_OAM_lb_5:
+ - template_VMInt_OAM_lb_5
+ - link
+ link_template_VMInt_OAM_lb_4:
+ - template_VMInt_OAM_lb_4
+ - link
+ binding_template_VMInt_OAM_lb_6:
+ - template_VMInt_OAM_lb_6
+ - binding
+ link_template_VMInt_OAM_lb_7:
+ - template_VMInt_OAM_lb_7
+ - link
+ binding_template_VMInt_OAM_lb_5:
+ - template_VMInt_OAM_lb_5
+ - binding
+ link_template_VMInt_OAM_lb_6:
+ - template_VMInt_OAM_lb_6
+ - link
+ dependency_jsa_net1:
+ - jsa_net1
+ - dependency
+ binding_template_VMInt_OAM_lb_4:
+ - template_VMInt_OAM_lb_4
+ - binding
+ binding_template_VMInt_OAM_lb_3:
+ - template_VMInt_OAM_lb_3
+ - binding
+ binding_template_VMInt_OAM_lb_7:
+ - template_VMInt_OAM_lb_7
+ - binding
\ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/contrailv2Vlan/listInterface/inputfiles/MANIFEST.json b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/contrailv2Vlan/listInterface/inputfiles/MANIFEST.json index 70cdc7d237..7b19bb8bdc 100644 --- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/contrailv2Vlan/listInterface/inputfiles/MANIFEST.json +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/contrailv2Vlan/listInterface/inputfiles/MANIFEST.json @@ -4,6 +4,11 @@ "version": "2013-05-23", "data": [ { + "isBase": true, + "file": "base_hot_template.yml", + "type": "HEAT" + }, + { "file": "hot_template.yml", "type": "HEAT" } diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/contrailv2Vlan/listInterface/inputfiles/base_hot_template.yml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/contrailv2Vlan/listInterface/inputfiles/base_hot_template.yml new file mode 100644 index 0000000000..afe369c6f3 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/contrailv2Vlan/listInterface/inputfiles/base_hot_template.yml @@ -0,0 +1,23 @@ +heat_template_version: 2015-04-30 + +description: > + Module HOT template to create vmme 2 vlc + +parameters: + lb_st_interface_type_oam: + description: dummy + type: string + +resources: + template_VMInt_INT1_VLC: + type: OS::Heat::ResourceGroup + properties: + count: 3 + resource_def: + type: hot_template.yml + properties: + virtual_machine_interface_properties: + { + virtual_machine_interface_properties_service_interface_type: { get_param: lb_st_interface_type_oam }, + } + |