aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/contrailv2VMinterface/macAddressStaticValue
diff options
context:
space:
mode:
authorojasdubey <ojas.dubey@amdocs.com>2018-02-22 14:32:06 +0530
committerAvi Gaffa <avi.gaffa@amdocs.com>2018-02-28 09:56:30 +0000
commit51e051e86f9f5d10c9439e9e5e57d1e9ee8f8e06 (patch)
tree957583dc6b93667d7024c7258716d6c6b96776c2 /openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/contrailv2VMinterface/macAddressStaticValue
parentbc169d4b132891052cc8c642e18e642afd04464f (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/contrailv2VMinterface/macAddressStaticValue')
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/contrailv2VMinterface/macAddressStaticValue/expectedoutputfiles/vmme_vlcServiceTemplate.yaml (renamed from openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/contrailv2VMinterface/macAddressStaticValue/expectedoutputfiles/MainServiceTemplate.yaml)114
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/contrailv2VMinterface/macAddressStaticValue/inputfiles/MANIFEST.json5
-rw-r--r--openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/contrailv2VMinterface/macAddressStaticValue/inputfiles/base_vmme_vlc.yml51
3 files changed, 105 insertions, 65 deletions
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/contrailv2VMinterface/macAddressStaticValue/expectedoutputfiles/MainServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/contrailv2VMinterface/macAddressStaticValue/expectedoutputfiles/vmme_vlcServiceTemplate.yaml
index 8aeffd48c3..7d30878434 100644
--- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/contrailv2VMinterface/macAddressStaticValue/expectedoutputfiles/MainServiceTemplate.yaml
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/contrailv2VMinterface/macAddressStaticValue/expectedoutputfiles/vmme_vlcServiceTemplate.yaml
@@ -1,113 +1,51 @@
tosca_definitions_version: tosca_simple_yaml_1_0_0
metadata:
- template_name: Main
+ template_name: vmme_vlc
imports:
- openecomp_heat_index:
file: openecomp-heat/_index.yml
+- GlobalSubstitutionTypes:
+ file: GlobalSubstitutionTypesServiceTemplate.yaml
topology_template:
inputs:
vlc1_Internal2_mac:
hidden: false
immutable: false
- annotations:
- source:
- type: org.openecomp.annotations.Source
- properties:
- vf_module_label:
- - vmme_vlc
- source_type: HEAT
- param_name: vlc1_Internal2_mac
type: string
description: static mac address assigned to vlc1_Internal2
internal_net_id_1:
hidden: false
immutable: false
- annotations:
- source:
- type: org.openecomp.annotations.Source
- properties:
- vf_module_label:
- - vmme_vlc
- source_type: HEAT
- param_name: internal_net_id_1
type: string
description: UUID of Internal2_net
internal_net_id_0:
hidden: false
immutable: false
- annotations:
- source:
- type: org.openecomp.annotations.Source
- properties:
- vf_module_label:
- - vmme_vlc
- source_type: HEAT
- param_name: internal_net_id_0
type: string
description: UUID of Internal1_net
security_group_int2_id:
hidden: false
immutable: false
- annotations:
- source:
- type: org.openecomp.annotations.Source
- properties:
- vf_module_label:
- - vmme_vlc
- source_type: HEAT
- param_name: security_group_int2_id
type: string
description: Security Group UUID for output
security_group_int1_id:
hidden: false
immutable: false
- annotations:
- source:
- type: org.openecomp.annotations.Source
- properties:
- vf_module_label:
- - vmme_vlc
- source_type: HEAT
- param_name: security_group_int1_id
type: string
description: Security Group UUID for output
vlc1_Internal1_mac:
hidden: false
immutable: false
- annotations:
- source:
- type: org.openecomp.annotations.Source
- properties:
- vf_module_label:
- - vmme_vlc
- source_type: HEAT
- param_name: vlc1_Internal1_mac
type: string
description: static mac address assigned to vlc1_Internal1
vlc_st_interface_type_int1:
hidden: false
immutable: false
- annotations:
- source:
- type: org.openecomp.annotations.Source
- properties:
- vf_module_label:
- - vmme_vlc
- source_type: HEAT
- param_name: vlc_st_interface_type_int1
type: string
description: service_interface_type for the ServiceTemplate
vlc_st_interface_type_int2:
hidden: false
immutable: false
- annotations:
- source:
- type: org.openecomp.annotations.Source
- properties:
- vf_module_label:
- - vmme_vlc
- source_type: HEAT
- param_name: vlc_st_interface_type_int2
type: string
description: service_interface_type for the ServiceTemplate
node_templates:
@@ -133,3 +71,49 @@ topology_template:
Module HOT template to create vmme 2 vlc
members:
- template_VMInt_INT1_VLC_1
+ substitution_mappings:
+ node_type: org.openecomp.resource.abstract.nodes.heat.vmme_vlc
+ capabilities:
+ network.outgoing.packets.rate_template_VMInt_INT1_VLC_1:
+ - template_VMInt_INT1_VLC_1
+ - network.outgoing.packets.rate
+ network.outpoing.packets_template_VMInt_INT1_VLC_1:
+ - template_VMInt_INT1_VLC_1
+ - network.outpoing.packets
+ network.incoming.packets_template_VMInt_INT1_VLC_1:
+ - template_VMInt_INT1_VLC_1
+ - network.incoming.packets
+ feature_template_VMInt_INT1_VLC_1:
+ - template_VMInt_INT1_VLC_1
+ - feature
+ network.incoming.packets.rate_template_VMInt_INT1_VLC_1:
+ - template_VMInt_INT1_VLC_1
+ - network.incoming.packets.rate
+ network.outgoing.bytes_template_VMInt_INT1_VLC_1:
+ - template_VMInt_INT1_VLC_1
+ - network.outgoing.bytes
+ network.incoming.bytes_template_VMInt_INT1_VLC_1:
+ - template_VMInt_INT1_VLC_1
+ - network.incoming.bytes
+ network.outgoing.bytes.rate_template_VMInt_INT1_VLC_1:
+ - template_VMInt_INT1_VLC_1
+ - network.outgoing.bytes.rate
+ forwarder_template_VMInt_INT1_VLC_1:
+ - template_VMInt_INT1_VLC_1
+ - forwarder
+ binding_template_VMInt_INT1_VLC_1:
+ - template_VMInt_INT1_VLC_1
+ - binding
+ network.incoming.bytes.rate_template_VMInt_INT1_VLC_1:
+ - template_VMInt_INT1_VLC_1
+ - network.incoming.bytes.rate
+ requirements:
+ dependency_template_VMInt_INT1_VLC_1:
+ - template_VMInt_INT1_VLC_1
+ - dependency
+ link_template_VMInt_INT1_VLC_1:
+ - template_VMInt_INT1_VLC_1
+ - link
+ binding_template_VMInt_INT1_VLC_1:
+ - template_VMInt_INT1_VLC_1
+ - binding
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/contrailv2VMinterface/macAddressStaticValue/inputfiles/MANIFEST.json b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/contrailv2VMinterface/macAddressStaticValue/inputfiles/MANIFEST.json
index 93bb84803b..3122249504 100644
--- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/contrailv2VMinterface/macAddressStaticValue/inputfiles/MANIFEST.json
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/contrailv2VMinterface/macAddressStaticValue/inputfiles/MANIFEST.json
@@ -4,6 +4,11 @@
"version": "0.1",
"data": [
{
+ "isBase": true,
+ "file": "base_vmme_vlc.yml",
+ "type": "HEAT"
+ },
+ {
"isBase": false,
"file": "vmme_vlc.yml",
"type": "HEAT"
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/contrailv2VMinterface/macAddressStaticValue/inputfiles/base_vmme_vlc.yml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/contrailv2VMinterface/macAddressStaticValue/inputfiles/base_vmme_vlc.yml
new file mode 100644
index 0000000000..79bc9b1aee
--- /dev/null
+++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/contrailv2VMinterface/macAddressStaticValue/inputfiles/base_vmme_vlc.yml
@@ -0,0 +1,51 @@
+heat_template_version: 2015-04-30
+
+description: >
+ Module HOT template to create vmme 2 vlc
+
+parameters:
+ vlc1_Internal1_mac:
+ type: string
+ description: static mac address assigned to vlc1_Internal1
+ vlc1_Internal2_mac:
+ type: string
+ description: static mac address assigned to vlc1_Internal2
+ vlc_st_interface_type_int1:
+ type: string
+ description: service_interface_type for the ServiceTemplate
+ vlc_st_interface_type_int2:
+ type: string
+ description: service_interface_type for the ServiceTemplate
+ internal_net_id_0:
+ type: string
+ description: UUID of Internal1_net
+ internal_net_id_1:
+ type: string
+ description: UUID of Internal2_net
+ security_group_int1_id:
+ type: string
+ description: Security Group UUID for output
+ security_group_int2_id:
+ type: string
+ description: Security Group UUID for output
+
+resources:
+
+ template_VMInt_INT1_VLC:
+ type: OS::Heat::ResourceGroup
+ properties:
+ count: 3
+ resource_def:
+ type: vmme_vlc.yml
+ properties:
+ virtual_machine_interface_properties:
+ {
+ virtual_machine_interface_properties_service_interface_type: { get_param: vlc_st_interface_type_int1 }
+ }
+ virtual_network_refs: [{ get_param: internal_net_id_0}]
+ virtual_machine_interface_mac_addresses:
+ {
+ virtual_machine_interface_mac_addresses_mac_address: [{ get_param: vlc1_Internal1_mac }, "abc"]
+ }
+ security_group_refs: [{get_param: security_group_int1_id}]
+