[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / VMInterfaceToNettworkConnection / shared / expectedoutputfiles / nested1ServiceTemplate.yaml
index a10ccc2..c36c942 100644 (file)
@@ -2,34 +2,10 @@ tosca_definitions_version: tosca_simple_yaml_1_0_0
 metadata:
   template_name: nested1
 imports:
-  ContrailComputeGlobalTypes:
-    file: ContrailComputeGlobalTypesServiceTemplate.yaml
-  CinderVolumeGlobalTypes:
-    file: CinderVolumeGlobalTypesServiceTemplate.yaml
-  ContrailVirtualNetworkGlobalType:
-    file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml
-  AbstractSubstituteGlobalTypes:
-    file: AbstractSubstituteGlobalTypesServiceTemplate.yaml
-  ContrailPortGlobalTypes:
-    file: ContrailPortGlobalTypesServiceTemplate.yaml
-  GlobalSubstitutionTypes:
+- openecomp_heat_index:
+    file: openecomp-heat/_index.yml
+- GlobalSubstitutionTypes:
     file: GlobalSubstitutionTypesServiceTemplate.yaml
-  NeutronPortGlobalTypes:
-    file: NeutronPortGlobalTypesServiceTemplate.yaml
-  NeutronNetGlobalTypes:
-    file: NeutronNetGlobalTypesServiceTemplate.yaml
-  CommonGlobalTypes:
-    file: CommonGlobalTypesServiceTemplate.yaml
-  ContrailAbstractSubstituteGlobalTypes:
-    file: ContrailAbstractSubstituteGlobalTypesServiceTemplate.yaml
-  ContrailNetworkRuleGlobalType:
-    file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml
-  NeutronSecurityRulesGlobalTypes:
-    file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml
-  NovaServerGlobalTypes:
-    file: NovaServerGlobalTypesServiceTemplate.yaml
-  ContrailV2VirtualMachineInterfaceGlobalType:
-    file: ContrailV2VirtualMachineInterfaceGlobalTypeServiceTemplate.yaml
 node_types:
   org.openecomp.resource.vfc.nodes.heat.abc:
     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
@@ -120,7 +96,7 @@ topology_template:
         virtual_network_refs:
         - get_input: shared_network_id1
         virtual_machine_interface_properties:
-          virtual_machine_interface_properties_service_interface_type:
+          service_interface_type:
             get_input: lb_st_interface_type_oam
         port_tuple_refs:
         - get_input: template_PortTuple_LB1
@@ -137,7 +113,7 @@ topology_template:
         virtual_network_refs:
         - get_input: p2
         virtual_machine_interface_properties:
-          virtual_machine_interface_properties_service_interface_type:
+          service_interface_type:
             get_input: lb_st_interface_type_oam
         port_tuple_refs:
         - get_input: template_PortTuple_LB1
@@ -155,7 +131,7 @@ topology_template:
         - get_input: p2
         - get_input: shared_network_id1
         virtual_machine_interface_properties:
-          virtual_machine_interface_properties_service_interface_type:
+          service_interface_type:
             get_input: lb_st_interface_type_oam
         port_tuple_refs:
         - get_input: template_PortTuple_LB1
@@ -195,6 +171,12 @@ topology_template:
       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
       properties:
         replacement_policy: AUTO
+        ip_requirements:
+        - ip_version: 4
+          ip_count_required:
+            is_required: true
+          floating_ip_count_required:
+            is_required: false
         security_groups:
         - get_input: security_group_name
         fixed_ips:
@@ -202,6 +184,9 @@ topology_template:
             get_input:
             - abc_oam_ips
             - 0
+        mac_requirements:
+          mac_count_required:
+            is_required: false
         network:
           get_input: p2
       requirements:
@@ -210,7 +195,7 @@ topology_template:
           node: server_abc
           relationship: tosca.relationships.network.BindsTo
   groups:
-    nested1:
+    nested1_group:
       type: org.openecomp.groups.heat.HeatStack
       properties:
         heat_file: ../Artifacts/nested1.yml
@@ -225,43 +210,388 @@ topology_template:
   substitution_mappings:
     node_type: org.openecomp.resource.abstract.nodes.heat.nested1
     capabilities:
-      scalable_server_abc:
+      cpu.delta_server_cmaui:
+      - server_cmaui
+      - cpu.delta
+      disk.device.write.requests.rate_server_cmaui:
+      - server_cmaui
+      - disk.device.write.requests.rate
+      disk.write.bytes.rate_server_abc:
+      - server_abc
+      - disk.write.bytes.rate
+      disk.device.allocation_server_cmaui:
+      - server_cmaui
+      - disk.device.allocation
+      memory.resident_server_abc:
       - server_abc
+      - memory.resident
+      scalable_server_cmaui:
+      - server_cmaui
       - scalable
+      disk.read.bytes.rate_server_cmaui:
+      - server_cmaui
+      - disk.read.bytes.rate
+      os_server_abc:
+      - server_abc
+      - os
+      cpu_server_abc:
+      - server_abc
+      - cpu
+      network.outgoing.packets.rate_abc_port_1:
+      - abc_port_1
+      - network.outgoing.packets.rate
+      disk.device.usage_server_abc:
+      - server_abc
+      - disk.device.usage
       host_server_cmaui:
       - server_cmaui
       - host
-      os_server_cmaui:
+      cpu_util_server_cmaui:
       - server_cmaui
-      - os
-      binding_server_abc:
+      - cpu_util
+      binding_abc_port_1:
+      - abc_port_1
+      - binding
+      disk.device.write.requests_server_abc:
       - server_abc
+      - disk.device.write.requests
+      binding_template_VMInt_OAM_lb_3:
+      - template_VMInt_OAM_lb_3
       - binding
-      endpoint_server_cmaui:
+      disk.device.write.requests_server_cmaui:
       - server_cmaui
-      - endpoint
+      - disk.device.write.requests
+      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
+      network.incoming.bytes_template_VMInt_OAM_lb_1:
+      - template_VMInt_OAM_lb_1
+      - network.incoming.bytes
+      feature_abc_port_1:
+      - abc_port_1
+      - feature
+      disk.write.requests_server_abc:
+      - server_abc
+      - disk.write.requests
+      instance_server_cmaui:
+      - server_cmaui
+      - instance
+      disk.device.read.bytes_server_cmaui:
+      - server_cmaui
+      - disk.device.read.bytes
+      network.outgoing.packets.rate_template_VMInt_OAM_lb_2:
+      - template_VMInt_OAM_lb_2
+      - network.outgoing.packets.rate
+      network.outgoing.packets.rate_template_VMInt_OAM_lb_1:
+      - template_VMInt_OAM_lb_1
+      - network.outgoing.packets.rate
+      disk.root.size_server_cmaui:
+      - server_cmaui
+      - disk.root.size
+      disk.capacity_server_abc:
+      - server_abc
+      - disk.capacity
+      disk.device.write.bytes_server_abc:
+      - server_abc
+      - disk.device.write.bytes
+      os_server_cmaui:
+      - server_cmaui
+      - os
+      disk.device.write.bytes.rate_server_cmaui:
+      - server_cmaui
+      - disk.device.write.bytes.rate
+      network.outpoing.packets_template_VMInt_OAM_lb_1:
+      - template_VMInt_OAM_lb_1
+      - network.outpoing.packets
+      disk.device.read.bytes.rate_server_abc:
+      - server_abc
+      - disk.device.read.bytes.rate
+      network.outpoing.packets_template_VMInt_OAM_lb_3:
+      - template_VMInt_OAM_lb_3
+      - network.outpoing.packets
+      disk.iops_server_abc:
+      - server_abc
+      - disk.iops
+      network.outpoing.packets_template_VMInt_OAM_lb_2:
+      - template_VMInt_OAM_lb_2
+      - network.outpoing.packets
       attachment_abc_port_1:
       - abc_port_1
       - attachment
+      disk.read.bytes_server_abc:
+      - server_abc
+      - disk.read.bytes
+      network.incoming.packets_template_VMInt_OAM_lb_1:
+      - template_VMInt_OAM_lb_1
+      - network.incoming.packets
+      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.outpoing.packets_abc_port_1:
+      - abc_port_1
+      - network.outpoing.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
+      endpoint_server_abc:
+      - server_abc
+      - endpoint
+      disk.write.requests.rate_server_abc:
+      - server_abc
+      - disk.write.requests.rate
+      feature_server_cmaui:
+      - server_cmaui
+      - feature
+      network.outgoing.bytes.rate_template_VMInt_OAM_lb_3:
+      - template_VMInt_OAM_lb_3
+      - 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.incoming.bytes.rate_template_VMInt_OAM_lb_3:
+      - template_VMInt_OAM_lb_3
+      - network.incoming.bytes.rate
+      instance_server_abc:
+      - server_abc
+      - instance
+      network.incoming.packets.rate_abc_port_1:
+      - abc_port_1
+      - network.incoming.packets.rate
+      memory.usage_server_cmaui:
+      - server_cmaui
+      - memory.usage
+      disk.device.write.bytes.rate_server_abc:
+      - server_abc
+      - disk.device.write.bytes.rate
+      disk.ephemeral.size_server_cmaui:
+      - server_cmaui
+      - disk.ephemeral.size
+      disk.iops_server_cmaui:
+      - server_cmaui
+      - disk.iops
+      disk.device.iops_server_cmaui:
+      - server_cmaui
+      - disk.device.iops
+      disk.read.bytes_server_cmaui:
+      - server_cmaui
+      - disk.read.bytes
+      disk.allocation_server_abc:
+      - server_abc
+      - disk.allocation
+      disk.device.iops_server_abc:
+      - server_abc
+      - disk.device.iops
+      cpu_server_cmaui:
+      - server_cmaui
+      - cpu
+      disk.write.bytes.rate_server_cmaui:
+      - server_cmaui
+      - disk.write.bytes.rate
+      disk.device.read.bytes.rate_server_cmaui:
+      - server_cmaui
+      - disk.device.read.bytes.rate
+      network.incoming.packets_abc_port_1:
+      - abc_port_1
+      - network.incoming.packets
+      network.outgoing.bytes.rate_template_VMInt_OAM_lb_1:
+      - template_VMInt_OAM_lb_1
+      - network.outgoing.bytes.rate
+      disk.device.latency_server_cmaui:
+      - server_cmaui
+      - disk.device.latency
+      disk.read.requests_server_cmaui:
+      - server_cmaui
+      - disk.read.requests
+      network.outgoing.bytes.rate_template_VMInt_OAM_lb_2:
+      - template_VMInt_OAM_lb_2
+      - network.outgoing.bytes.rate
+      disk.device.capacity_server_cmaui:
+      - server_cmaui
+      - disk.device.capacity
+      disk.usage_server_cmaui:
+      - server_cmaui
+      - disk.usage
+      disk.device.usage_server_cmaui:
+      - server_cmaui
+      - disk.device.usage
+      disk.root.size_server_abc:
+      - server_abc
+      - disk.root.size
+      disk.capacity_server_cmaui:
+      - server_cmaui
+      - disk.capacity
+      disk.write.requests.rate_server_cmaui:
+      - server_cmaui
+      - disk.write.requests.rate
+      network.incoming.packets.rate_template_VMInt_OAM_lb_3:
+      - template_VMInt_OAM_lb_3
+      - network.incoming.packets.rate
+      disk.device.latency_server_abc:
+      - server_abc
+      - disk.device.latency
+      network.incoming.packets.rate_template_VMInt_OAM_lb_2:
+      - template_VMInt_OAM_lb_2
+      - network.incoming.packets.rate
+      network.incoming.packets.rate_template_VMInt_OAM_lb_1:
+      - template_VMInt_OAM_lb_1
+      - network.incoming.packets.rate
+      disk.device.read.requests_server_cmaui:
+      - server_cmaui
+      - disk.device.read.requests
+      feature_template_VMInt_OAM_lb_2:
+      - template_VMInt_OAM_lb_2
+      - feature
+      feature_template_VMInt_OAM_lb_3:
+      - template_VMInt_OAM_lb_3
+      - feature
+      memory_server_abc:
+      - server_abc
+      - memory
+      feature_template_VMInt_OAM_lb_1:
+      - template_VMInt_OAM_lb_1
+      - feature
+      memory_server_cmaui:
+      - server_cmaui
+      - memory
+      disk.device.read.bytes_server_abc:
+      - server_abc
+      - disk.device.read.bytes
       binding_server_cmaui:
       - server_cmaui
       - binding
-      endpoint_server_abc:
+      memory.usage_server_abc:
       - server_abc
-      - endpoint
-      scalable_server_cmaui:
+      - memory.usage
+      disk.read.requests_server_abc:
+      - server_abc
+      - disk.read.requests
+      disk.device.read.requests.rate_server_cmaui:
       - server_cmaui
+      - disk.device.read.requests.rate
+      disk.usage_server_abc:
+      - server_abc
+      - disk.usage
+      scalable_server_abc:
+      - server_abc
       - scalable
+      disk.write.bytes_server_cmaui:
+      - server_cmaui
+      - disk.write.bytes
+      disk.write.bytes_server_abc:
+      - server_abc
+      - disk.write.bytes
+      disk.read.bytes.rate_server_abc:
+      - server_abc
+      - disk.read.bytes.rate
+      disk.device.read.requests.rate_server_abc:
+      - server_abc
+      - disk.device.read.requests.rate
+      network.outgoing.packets.rate_template_VMInt_OAM_lb_3:
+      - template_VMInt_OAM_lb_3
+      - network.outgoing.packets.rate
+      network.outgoing.bytes_abc_port_1:
+      - abc_port_1
+      - network.outgoing.bytes
+      network.incoming.bytes.rate_abc_port_1:
+      - abc_port_1
+      - network.incoming.bytes.rate
+      disk.ephemeral.size_server_abc:
+      - server_abc
+      - disk.ephemeral.size
+      cpu_util_server_abc:
+      - server_abc
+      - cpu_util
+      binding_server_abc:
+      - server_abc
+      - binding
+      disk.device.capacity_server_abc:
+      - server_abc
+      - disk.device.capacity
+      network.outgoing.bytes.rate_abc_port_1:
+      - abc_port_1
+      - network.outgoing.bytes.rate
+      network.incoming.bytes_abc_port_1:
+      - abc_port_1
+      - network.incoming.bytes
+      memory.resident_server_cmaui:
+      - server_cmaui
+      - memory.resident
+      disk.device.allocation_server_abc:
+      - server_abc
+      - disk.device.allocation
+      disk.latency_server_cmaui:
+      - server_cmaui
+      - disk.latency
+      vcpus_server_cmaui:
+      - server_cmaui
+      - vcpus
+      disk.device.write.bytes_server_cmaui:
+      - server_cmaui
+      - disk.device.write.bytes
+      binding_template_VMInt_OAM_lb_2:
+      - template_VMInt_OAM_lb_2
+      - binding
+      binding_template_VMInt_OAM_lb_1:
+      - template_VMInt_OAM_lb_1
+      - binding
+      disk.allocation_server_cmaui:
+      - server_cmaui
+      - disk.allocation
+      disk.write.requests_server_cmaui:
+      - server_cmaui
+      - disk.write.requests
+      disk.device.write.requests.rate_server_abc:
+      - server_abc
+      - disk.device.write.requests.rate
+      disk.device.read.requests_server_abc:
+      - server_abc
+      - disk.device.read.requests
       host_server_abc:
       - server_abc
       - host
-      os_server_abc:
+      endpoint_server_cmaui:
+      - server_cmaui
+      - endpoint
+      cpu.delta_server_abc:
       - server_abc
-      - os
+      - cpu.delta
+      disk.latency_server_abc:
+      - server_abc
+      - disk.latency
+      feature_server_abc:
+      - server_abc
+      - feature
+      vcpus_server_abc:
+      - server_abc
+      - vcpus
     requirements:
+      dependency_abc_port_1:
+      - abc_port_1
+      - dependency
       link_template_VMInt_OAM_lb_1:
       - template_VMInt_OAM_lb_1
       - link
+      dependency_server_abc:
+      - server_abc
+      - dependency
+      dependency_server_cmaui:
+      - server_cmaui
+      - dependency
       local_storage_server_cmaui:
       - server_cmaui
       - local_storage
@@ -271,6 +601,15 @@ topology_template:
       link_template_VMInt_OAM_lb_2:
       - template_VMInt_OAM_lb_2
       - link
+      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
       link_abc_port_1:
       - abc_port_1
       - link