diff options
Diffstat (limited to 'openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl/src/test/resources/mock/toscaGlobalServiceTemplates/openecomp')
6 files changed, 1185 insertions, 0 deletions
diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl/src/test/resources/mock/toscaGlobalServiceTemplates/openecomp/_index.yml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl/src/test/resources/mock/toscaGlobalServiceTemplates/openecomp/_index.yml new file mode 100644 index 0000000000..897fff2714 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl/src/test/resources/mock/toscaGlobalServiceTemplates/openecomp/_index.yml @@ -0,0 +1,17 @@ +tosca_definitions_version: tosca_simple_openecomp_1_0 +metadata: + filename: openecomp/_index.yml + version: '1.0' +imports: +- tosca_index: + file: ../tosca/_index.yml +- capabilities: + file: capabilities.yml +- nodes: + file: nodes.yml +- relationships: + file: relationships.yml +- groups: + file: groups.yml +- data: + file: data.yml diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl/src/test/resources/mock/toscaGlobalServiceTemplates/openecomp/capabilities.yml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl/src/test/resources/mock/toscaGlobalServiceTemplates/openecomp/capabilities.yml new file mode 100644 index 0000000000..a36b5569f5 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl/src/test/resources/mock/toscaGlobalServiceTemplates/openecomp/capabilities.yml @@ -0,0 +1,77 @@ +tosca_definitions_version: tosca_simple_openecomp_1_0 +metadata: + filename: openecomp/capabilities.yml + version: '1.0' +imports: +- openecomp_index: + file: _index.yml +capability_types: + org.openecomp.capabilities.attachment.DeploymentFlavor: + derived_from: tosca.capabilities.Attachment + description: The Node capability indicates the base capabilities of a TOSCA Node Type. + properties: + DeploymentFlavor: + type: map + description: Deployment flavors instance + required: true + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.DeploymentFlavor + org.openecomp.capabilities.metric.SnmpTrap: + derived_from: org.openecomp.capabilities.Metric + description: A node type that includes the Metric capability indicates that it can be monitored using snmp trap. + properties: + oid: + type: string + description: Object Id of the metric + required: true + status: SUPPORTED + org.openecomp.capabilities.AllottedResource: + derived_from: tosca.capabilities.Root + org.openecomp.capabilities.metric.SnmpPolling: + derived_from: org.openecomp.capabilities.Metric + description: A node type that includes the Metric capability indicates that it can be monitored using snmp polling. + properties: + oid: + type: string + description: Object Id of the metric + required: true + status: SUPPORTED + org.openecomp.capabilities.metric.Ceilometer: + derived_from: org.openecomp.capabilities.Metric + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + status: SUPPORTED + org.openecomp.capabilities.Metric: + derived_from: tosca.capabilities.Endpoint + description: A node type that includes the Metric capability indicates that it can be monitored. + properties: + unit: + type: string + description: Unit of the metric value + required: true + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + status: SUPPORTED + attributes: + value: + type: string + description: Runtime monitored value + status: SUPPORTED diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl/src/test/resources/mock/toscaGlobalServiceTemplates/openecomp/data.yml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl/src/test/resources/mock/toscaGlobalServiceTemplates/openecomp/data.yml new file mode 100644 index 0000000000..bc869cc6da --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl/src/test/resources/mock/toscaGlobalServiceTemplates/openecomp/data.yml @@ -0,0 +1,475 @@ +tosca_definitions_version: tosca_simple_openecomp_1_0 +metadata: + filename: openecomp/data.yml + version: '1.0' +imports: +- openecomp_index: + file: _index.yml +data_types: + org.openecomp.datatypes.network.ProviderNetwork: + derived_from: org.openecomp.datatypes.Root + properties: + is_provider_network: + type: boolean + description: \"true\" indicates that this a Neutron provider type of network + required: true + status: SUPPORTED + physical_network_name: + type: string + description: | + Identifies the NUMA processor cluster to which this physical network interface belongs. NUMA instance correlates to the first digit of the Physical Network Name suffix (e.g. \"01\" = NUMA 0, \"11\" = NUMA 1) + required: false + status: SUPPORTED + constraints: + - valid_values: + - Physnet41 + - Physnet42 + - Physnet43 + - Physnet44 + - Physnet21 + - Physnet22 + numa: + type: string + description: | + PNIC instance within the NUMA processor cluster PNIC Instance correlates to the second digit of the Physical Network Name suffix (e.g. "01" = PNIC 1, "02" = "PNIC 2) + required: false + status: SUPPORTED + constraints: + - valid_values: + - NUMA 0 + - NUMA 1 + pnic_instance: + type: integer + description: PNIC instance within the NUMA processor cluster + required: false + status: SUPPORTED + org.openecomp.datatypes.DeploymentFlavor: + derived_from: tosca.datatypes.Root + description: Deployment Flavor + properties: + name: + type: string + description: Deployment Flavor Name + required: true + status: SUPPORTED + license_feature_group: + type: org.openecomp.datatypes.FeatureGroup + description: license feature group associated with Deployment Flavor + required: true + status: SUPPORTED + compute_size: + type: org.openecomp.datatypes.ComputeFlavor + description: Size of VM + required: true + status: SUPPORTED + org.openecomp.datatypes.FeatureGroup: + derived_from: tosca.datatypes.Root + description: License Feature Group + properties: + license_feature_group_ref: + type: string + description: Deployment Flavor Name + required: true + status: SUPPORTED + part_number: + type: string + description: refrence part number related to feature group + required: true + status: SUPPORTED + org.openecomp.datatypes.EcompHoming: + derived_from: org.openecomp.datatypes.Root + properties: + ecomp_selected_instance_node_target: + type: boolean + description: | + "true" indicates that the target deployment node for this instance will be + auto-selected by OPENECOMP "false" indicates operator-supplied instance target deployment + node required (e.g. VID will present a prompt to operator and collect the operator-selected target node for the deployment of this Network instance). + required: true + default: false + status: SUPPORTED + homing_policy: + type: string + description: Referenc to a service level homing policy that OPENECOMP will use for instance deployment target node + required: false + status: SUPPORTED + instance_node_target: + type: string + description: Instance target deployment node + required: false + status: SUPPORTED + org.openecomp.datatypes.AssignmentRequirements: + derived_from: org.openecomp.datatypes.Root + properties: + is_required: + type: boolean + description: | + "true" indicates that assignment is required + required: true + default: false + status: SUPPORTED + count: + type: integer + description: number of assignments required + required: false + status: SUPPORTED + org.openecomp.datatypes.network.IpRequirements: + derived_from: org.openecomp.datatypes.Root + properties: + ip_version: + type: integer + required: true + status: SUPPORTED + constraints: + - valid_values: + - 4 + - 6 + ip_count: + type: org.openecomp.datatypes.AssignmentRequirements + description: identifies the number of ip address to assign to the CP from the plan + required: true + status: SUPPORTED + floating_ip_count: + type: org.openecomp.datatypes.AssignmentRequirements + required: false + status: SUPPORTED + subnet_role: + type: string + required: false + status: SUPPORTED + assingment_method: + type: string + required: true + status: SUPPORTED + constraints: + - valid_values: + - fixed + - dhcp + org.openecomp.datatypes.network.PhysicalNetwork: + derived_from: org.openecomp.datatypes.Root + properties: + provider_network: + type: boolean + description: true indicates that this a Neutron provider type of network + required: true + status: SUPPORTED + physical_network_name: + type: string + description: | + Identifies the NUMA processor cluster to which this physical network interface belongs. NUMA instance correlates to the first digit of the Physical Network Name suffix (e.g. "01" = NUMA 0, "11" = NUMA 1) + required: false + status: SUPPORTED + constraints: + - valid_values: + - Physnet-SRIOV-1 + - Physnet-SRIOV-2 + - Physnet-SRIOV-11 + - Physnet-SRIOV-12 + numa: + type: string + description: | + PNIC instance within the NUMA processor cluster PNIC Instance correlates to the second digit of the Physical Network Name suffix (e.g. "01" = PNIC 1, "02" = "PNIC 2) + required: false + status: SUPPORTED + constraints: + - valid_values: + - NUMA 0 + - NUMA 1 + pnic_instance: + type: integer + description: PNIC instance within the NUMA processor cluster + required: false + status: SUPPORTED + org.openecomp.datatypes.network.VlanRequirements: + derived_from: org.openecomp.datatypes.Root + properties: + vlan_range_plan: + type: string + description: reference to a vlan range plan + required: true + status: SUPPORTED + vlan_type: + type: string + description: identifies the vlan type (e.g., c-tag) + required: true + status: SUPPORTED + constraints: + - valid_values: + - c-tag + - s-tag + vlan_count: + type: integer + description: identifies the number of vlan tags to assign to the CP from the plan + required: true + status: SUPPORTED + org.openecomp.datatypes.ComputeFlavor: + derived_from: tosca.datatypes.Root + description: Compute Flavor (Size) + properties: + name: + type: string + description: Compute Flavor Name + required: true + status: SUPPORTED + num_cpus: + type: integer + description: Number of cpu + required: true + status: SUPPORTED + disk_size: + type: scalar-unit.size + description: Disk size + required: true + status: SUPPORTED + mem_size: + type: scalar-unit.size + description: Memory size + required: true + status: SUPPORTED + org.openecomp.datatypes.network.MacAssignments: + derived_from: org.openecomp.datatypes.Root + properties: + mac_range_plan: + type: string + description: reference to a MAC address range plan + required: true + status: SUPPORTED + mac_count: + type: integer + description: identifies the number of MAC addresses to assign to the CP from the plan + required: true + status: SUPPORTED + org.openecomp.datatypes.network.MacRequirements: + derived_from: org.openecomp.datatypes.Root + properties: + mac_range_plan: + type: string + description: reference to a MAC address range plan + required: true + status: SUPPORTED + mac_count: + type: org.openecomp.datatypes.AssignmentRequirements + description: identifies the number of MAC addresses to assign to the CP from the plan + required: true + status: SUPPORTED + org.openecomp.datatypes.network.SubnetAssignments: + derived_from: org.openecomp.datatypes.Root + properties: + ip_network_address_plan: + type: string + description: Reference to EIPAM, VLAN or other address plan ID used to assign subnets to this network + required: false + status: SUPPORTED + dhcp_enabled: + type: boolean + description: \"true\" indicates the network has 1 or more policies + required: false + status: SUPPORTED + ip_version: + type: integer + description: The IP version of the subnet + required: true + status: SUPPORTED + constraints: + - valid_values: + - 4 + - 6 + cidr_mask: + type: integer + description: The default subnet CIDR mask + required: true + status: SUPPORTED + min_subnets_count: + type: integer + description: Quantity of subnets that must be initially assigned + required: true + default: 1 + status: SUPPORTED + org.openecomp.datatypes.Artifact: + derived_from: org.openecomp.datatypes.Root + properties: + artifact_name: + type: string + description: Artifcat name + required: true + status: SUPPORTED + artifact_type: + type: string + description: Artifcat type + required: true + status: SUPPORTED + artifact_uuid: + type: string + description: Artifcat UUID + required: true + status: SUPPORTED + artifact_checksum: + type: string + description: Artifact checksum + required: true + status: SUPPORTED + artifact_url: + type: string + description: Artifcay URL. Can also include only the file name + required: true + status: SUPPORTED + org.openecomp.datatypes.network.IPv4SubnetAssignments: + derived_from: org.openecomp.datatypes.network.SubnetAssignments + properties: + use_ipv4: + type: boolean + description: Indicates IPv4 subnet assignments + required: true + status: SUPPORTED + org.openecomp.datatypes.Root: + derived_from: tosca.datatypes.Root + description: | + The AT&T root Data Type all other Data Types derive from + properties: + supplemental_data: + type: map + required: true + status: SUPPORTED + entry_schema: + description: | + A placeholder for missing properties that would be included in future openecomp model + versions. fromat <key>:<value> + type: string + org.openecomp.datatypes.substitution.SubstitutionFiltering: + derived_from: tosca.datatypes.Root + description: Substitution Filter + properties: + substitute_service_template: + type: string + description: Substitute Service Template + required: true + status: SUPPORTED + index_value: + type: integer + description: Index value of the substitution service template runtime instance + required: false + default: 0 + status: SUPPORTED + constraints: + - greater_or_equal: 0 + count: + type: string + description: Count + required: false + default: 1 + status: SUPPORTED + scaling_enabled: + type: boolean + description: Indicates whether service scaling is enabled + required: false + default: true + status: SUPPORTED + mandatory: + type: boolean + description: Mandatory + required: false + status: SUPPORTED + org.openecomp.datatypes.network.NetworkFlows: + derived_from: org.openecomp.datatypes.Root + properties: + is_network_policy: + type: boolean + description: true indicates the network has 1 or more policies + required: false + default: false + status: SUPPORTED + network_policy: + type: string + description: Identifies the specific OPENECOMP Contrail network policy that must be applied to this network (source - from Policy Manager) + required: false + status: SUPPORTED + vpn_binding: + type: string + description: Identifies the specific VPN Binding entry in A&AI that must be applied when creating this network (source - A&AI) + required: false + status: SUPPORTED + org.openecomp.datatypes.network.NetworkAssignments: + derived_from: org.openecomp.datatypes.Root + properties: + ecomp_generated_network_assignment: + type: boolean + description: | + "true" indicates that the network assignments will be auto-generated by OPENECOMP "false" indicates operator-supplied Network assignments file upload is required (e.g. VID will present prompt to operator to upload operator-supplied Network assignments file). + required: true + default: false + status: SUPPORTED + network_assignments_file: + type: string + description: Filename of the template that specifies all of the configurable name/value pairs of Network assignments in this Network model + required: false + status: SUPPORTED + multi_tenant: + type: boolean + description: true means this network is shared by multiple Openstack tenants + required: true + default: true + status: SUPPORTED + min_subnets_count: + type: integer + description: Quantity of subnets that must be initially assigned + required: true + status: SUPPORTED + ip_network_address_plan: + type: string + description: Reference to EIPAM, VLAN or other address plan ID used to assign subnets to this network + required: true + status: SUPPORTED + vlan_network_address_plan: + type: string + description: Reference to VLAN or other address plan ID used to assign subnets to this network + required: true + status: SUPPORTED + org.openecomp.datatypes.network.IPv6SubnetAssignments: + derived_from: org.openecomp.datatypes.network.SubnetAssignments + properties: + use_ipv6: + type: boolean + description: Indicates IPv6 subnet assignments + required: true + status: SUPPORTED + org.openecomp.datatypes.EcompNaming: + derived_from: org.openecomp.datatypes.Root + properties: + ecomp_generated_naming: + type: boolean + description: | + "true" indicates that the name for the instance will be auto-generated by OPENECOMP. "false" indicates operator-supplied name required (e.g. VID will present prompt to operator and collect the operator-supplied instance name). + required: true + default: true + status: SUPPORTED + naming_policy: + type: string + description: Referenc to naming policy that OPENECOMP will use when the name is auto-generated + required: false + status: SUPPORTED + org.openecomp.datatypes.Naming: + derived_from: org.openecomp.datatypes.Root + properties: + ecomp_generated_naming: + type: boolean + description: | + "true" indicates that the name for the instance will be auto-generated by OPENECOMP. "false" indicates operator-supplied name required (e.g. VID will present prompt to operator and collect the operator-supplied instance name). + required: true + default: true + status: SUPPORTED + org.openecomp.datatypes.EcompGeneratedNaming: + derived_from: org.openecomp.datatypes.Naming + properties: + naming_policy: + type: string + description: Referenc to naming policy that OPENECOMP will use when the name is auto-generated + required: false + status: SUPPORTED + org.openecomp.datatypes.UserDefinedNaming: + derived_from: org.openecomp.datatypes.Naming + properties: + instance_name: + type: string + description: Reference to naming policy that OPENECOMP will use when the name is auto-generated + required: false + status: SUPPORTED diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl/src/test/resources/mock/toscaGlobalServiceTemplates/openecomp/groups.yml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl/src/test/resources/mock/toscaGlobalServiceTemplates/openecomp/groups.yml new file mode 100644 index 0000000000..09a9fb0807 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl/src/test/resources/mock/toscaGlobalServiceTemplates/openecomp/groups.yml @@ -0,0 +1,61 @@ +tosca_definitions_version: tosca_simple_openecomp_1_0 +metadata: + filename: openecomp/groups.yml + version: '1.0' +imports: +- openecomp_index: + file: _index.yml +group_types: + org.openecomp.groups.VfModule: + derived_from: tosca.groups.Root + description: Grouped all heat resources which are in the same VF Module + properties: + isBase: + type: boolean + description: Whether this module should be deployed before other modules + required: true + default: false + status: SUPPORTED + vf_module_label: + type: string + description: | + Alternate textual key used to reference this VF-Module model. Must be unique within the VNF model + required: true + status: SUPPORTED + vf_module_description: + type: string + description: | + Description of the VF-modules contents and purpose (e.g. "Front-End" or "Database Cluster") + required: true + status: SUPPORTED + min_vf_module_instances: + type: integer + description: The minimum instances of this VF-Module + required: true + status: SUPPORTED + max_vf_module_instances: + type: integer + description: The maximum instances of this VF-Module + required: false + status: SUPPORTED + initial_count: + type: integer + description: | + The initial count of instances of the VF-Module. The value must be in the range between min_vfmodule_instances and max_vfmodule_instances. If no value provided the initial count is the min_vfmodule_instances. + required: false + status: SUPPORTED + vf_module_type: + type: string + required: true + status: SUPPORTED + constraints: + - valid_values: + - Base + - Expansion + volume_group: + type: boolean + description: | + "true" indicates that this VF Module model requires attachment to a Volume Group. VID operator must select the Volume Group instance to attach to a VF-Module at deployment time. + required: true + default: false + status: SUPPORTED diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl/src/test/resources/mock/toscaGlobalServiceTemplates/openecomp/nodes.yml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl/src/test/resources/mock/toscaGlobalServiceTemplates/openecomp/nodes.yml new file mode 100644 index 0000000000..83516a22ba --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl/src/test/resources/mock/toscaGlobalServiceTemplates/openecomp/nodes.yml @@ -0,0 +1,519 @@ +tosca_definitions_version: tosca_simple_openecomp_1_0 +metadata: + filename: openecomp/nodes.yml + version: '1.0' +imports: +- openecomp_index: + file: _index.yml +node_types: + org.openecomp.resource.vl.nodes.network.VL: + derived_from: tosca.nodes.network.Network + properties: + vendor: + type: string + required: false + status: SUPPORTED + vl_name: + type: string + required: false + status: SUPPORTED + capabilities: + end_point: + type: tosca.capabilities.Endpoint + occurrences: + - 1 + - UNBOUNDED + org.openecomp.resource.abstract.nodes.AbstractSubstitute: + derived_from: tosca.nodes.Root + properties: + service_template_filter: + type: org.openecomp.datatypes.substitution.SubstitutionFiltering + description: Substitution Filter + required: true + status: SUPPORTED + org.openecomp.resource.vl.extVL: + derived_from: org.openecomp.resource.vl.nodes.network.VL + description: VF Tenant oam protected network + properties: + network_type: + type: string + description: OPENECOMP supported network types. + required: true + status: SUPPORTED + network_role: + type: string + description: | + Unique label that defines the role that this network performs. example: vce oam network, vnat sr-iov1 network + required: true + status: SUPPORTED + network_scope: + type: string + description: | + Uniquely identifies the network scope. Valid values for the network scope includes: VF - VF-level network. Intra-VF network which connects the VFCs (VMs) inside the VF. SERVICE - Service-level network. Intra-Service network which connects the VFs within the service GLOBAL - Global network which can be shared by multiple services + required: true + status: SUPPORTED + constraints: + - valid_values: + - VF + - SERVICE + - GLOBAL + network_technology: + type: string + description: OPENECOMP supported network technology + required: true + status: SUPPORTED + network_ecomp_naming: + type: org.openecomp.datatypes.EcompNaming + required: true + status: SUPPORTED + network_homing: + type: org.openecomp.datatypes.EcompHoming + required: true + status: SUPPORTED + network_assignments: + type: org.openecomp.datatypes.network.NetworkAssignments + required: true + status: SUPPORTED + provider_network: + type: org.openecomp.datatypes.network.ProviderNetwork + required: true + status: SUPPORTED + network_flows: + type: org.openecomp.datatypes.network.NetworkFlows + required: false + status: SUPPORTED + org.openecomp.resource.vfc.nodes.Compute: + derived_from: tosca.nodes.Compute + capabilities: + disk.ephemeral.size: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + instance: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + memory: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.iops: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.read.requests: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + cpu.delta: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.capacity: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.read.bytes: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.write.bytes: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.latency: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.read.bytes.rate: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.usage: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + cpu_util: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.allocation: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.write.requests.rate: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.write.bytes.rate: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.latency: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + cpu: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.write.requests: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.write.bytes: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.read.requests: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.root.size: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.write.bytes.rate: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + vcpus: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.iops: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.usage: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.read.requests.rate: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.write.requests.rate: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.allocation: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.read.bytes.rate: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.read.bytes: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + memory.usage: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.capacity: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + memory.resident: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.write.requests: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + org.openecomp.resource.abstract.nodes.DFAbstractSubstitute: + derived_from: org.openecomp.resource.abstract.nodes.AbstractSubstitute + properties: + license_feature_group_ref: + type: string + description: refrence to license feature group + required: true + status: SUPPORTED + requirements: + - deployment_flavor: + capability: org.openecomp.capabilities.attachment.DeploymentFlavor + node: org.openecomp.resource.nodes.DeploymentFlavor + relationship: org.openecomp.relationships.AttachesTo + occurrences: + - 1 + - UNBOUNDED + org.openecomp.resource.abstract.nodes.VFC: + derived_from: org.openecomp.resource.abstract.nodes.AbstractSubstitute + properties: + high_availablity: + type: string + description: high_availablity + required: false + status: SUPPORTED + vm_image_name: + type: string + description: Master image_name volume id + required: true + status: SUPPORTED + vm_flavor_name: + type: string + description: Master image_name volume id + required: true + status: SUPPORTED + nfc_naming_code: + type: string + description: nfc code for instance naming + required: false + status: SUPPORTED + vm_type_tag: + type: string + description: vm type based on naming Convention + required: false + status: SUPPORTED + vfc_naming: + type: org.openecomp.datatypes.Naming + description: vfc naming + required: false + default: false + status: SUPPORTED + min_instances: + type: integer + description: Minimum number of VFC Instances + required: false + default: 0 + status: SUPPORTED + constraints: + - greater_or_equal: 0 + max_instances: + type: integer + description: Maximum number of VFC Instances + required: false + status: SUPPORTED + constraints: + - greater_or_equal: 1 + org.openecomp.resource.vl.ELine: + derived_from: org.openecomp.resource.vl.nodes.network.VL + capabilities: + linkable: + type: tosca.capabilities.network.Linkable + occurrences: + - 0 + - 2 + org.openecomp.resource.cp.nodes.network.SubInterface: + derived_from: tosca.nodes.network.Port + org.openecomp.resource.vl.internalVL: + derived_from: org.openecomp.resource.vl.nodes.network.VL + description: The AT&T internal (VF-level) Virtual Link + org.openecomp.resource.cp.nodes.network.CP: + derived_from: tosca.nodes.network.Port + properties: + network_role_tag: + type: string + description: Must correlate to the set of defined “network-role�? tag identifiers from the associated HEAT template + required: true + status: SUPPORTED + mac_requirements: + type: org.openecomp.datatypes.network.MacRequirements + description: identifies MAC address assignments to the CP + required: false + status: SUPPORTED + vlan_requirements: + type: list + description: identifies vlan address assignments to the CP + required: false + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.network.VlanRequirements + ip_requirements: + type: list + description: identifies IP requirements to the CP + required: true + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.network.IpRequirements + capabilities: + network.incoming.packets.rate: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + network.outgoing.bytes: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + network.outgoing.packets.rate: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + network.outpoing.packets: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + network.incoming.bytes.rate: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + network.incoming.bytes: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + network.outgoing.bytes.rate: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + network.incoming.packets: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + org.openecomp.resource.nodes.DeploymentFlavor: + derived_from: tosca.nodes.Root + capabilities: + deployment_flavor: + type: org.openecomp.capabilities.attachment.DeploymentFlavor + description: Allowed deployment flavors of an abstract node + occurrences: + - 1 + - UNBOUNDED + org.openecomp.resource.cp.extCP: + derived_from: tosca.nodes.Root + description: The AT&T Connection Point base type all other CP derive from + properties: + network_role: + type: string + description: identical to VL network_role + required: true + status: SUPPORTED + order: + type: integer + description: The order of the CP on the compute instance (e.g. eth2). + required: true + status: SUPPORTED + network_role_tag: + type: string + description: Must correlate to the set of defined “network-role�? tag identifiers from the associated HEAT template + required: true + status: SUPPORTED + mac_requirements: + type: org.openecomp.datatypes.network.MacRequirements + description: identifies MAC address assignments to the CP + required: false + status: SUPPORTED + vlan_requirements: + type: list + description: identifies vlan address assignments to the CP + required: false + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.network.VlanRequirements + ip_requirements: + type: list + description: identifies IP requirements to the CP + required: true + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.network.IpRequirements + requirements: + - virtualLink: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - virtualBinding: + capability: tosca.capabilities.network.Bindable + relationship: tosca.relationships.network.BindsTo + - external_virtualLink: + capability: tosca.capabilities.network.Linkable + node: org.openecomp.resource.vl.nodes.network.VL + relationship: tosca.relationships.network.LinksTo + capabilities: + internal_connectionPoint: + type: tosca.capabilities.Node + valid_source_types: + - tosca.nodes.network.Port + occurrences: + - 1 + - UNBOUNDED + org.openecomp.resource.vfc.nodes.volume: + derived_from: tosca.nodes.BlockStorage diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl/src/test/resources/mock/toscaGlobalServiceTemplates/openecomp/relationships.yml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl/src/test/resources/mock/toscaGlobalServiceTemplates/openecomp/relationships.yml new file mode 100644 index 0000000000..310e9847c7 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl/src/test/resources/mock/toscaGlobalServiceTemplates/openecomp/relationships.yml @@ -0,0 +1,36 @@ +tosca_definitions_version: tosca_simple_openecomp_1_0 +metadata: + filename: openecomp/relationships.yml + version: '1.0' +imports: +- openecomp_index: + file: _index.yml +relationship_types: + org.openecomp.relationships.VolumeAttachesTo: + derived_from: org.openecomp.relationships.AttachesTo + description: This type represents an attachment relationship for associating volume + properties: + volume_id: + type: string + description: The ID of the volume to be attached + required: true + status: SUPPORTED + instance_uuid: + type: string + description: The ID of the server to which the volume attaches + required: true + status: SUPPORTED + attributes: + show: + type: string + description: Detailed information about resource + status: SUPPORTED + org.openecomp.relationships.AttachesTo: + derived_from: tosca.relationships.AttachesTo + description: This type represents an attachment relationship + properties: + location: + type: string + description: The relative location (e.g., path on the file system), which provides the root location to address an attached node. + required: false + status: SUPPORTED |