diff options
Diffstat (limited to 'common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai2')
3 files changed, 229 insertions, 0 deletions
diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai2/resource-AllottedResource-template.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai2/resource-AllottedResource-template.yml new file mode 100644 index 0000000000..c80e701913 --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai2/resource-AllottedResource-template.yml @@ -0,0 +1,78 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 + UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d + name: Allotted Resource + description: This is a VF - Allotted resource + type: VF + category: Allotted Resource + subcategory: Allotted Resource + resourceVendor: '1' + resourceVendorRelease: '1' +imports: +- Alloted resource: + file: resource-AllotedResource-template.yml +topology_template: + node_templates: + Alloted resource 1: + type: org.openecomp.resource.vfc.AllottedResource + metadata: + invariantUUID: 666b409b-5614-41a8-945e-a53d68f5d439 + UUID: df0c1c4d-1756-4b2a-998e-73f9f4d77afa + version: '1.0' + name: Alloted resource + description: This is a VFC- Allotted resource + type: VFC + category: Allotted Resource + subcategory: Allotted Resource + properties: + role: name + ecomp_naming: + naming_policy: test + ecomp_generated_naming: false + supplemental_data: + Key1: key1 + providing_service_invariant_uuid: 34a4d119-06bc-4ab4-8c5a-a498d638297c + min_instances: 1 + max_instances: 1 + providing_service_uuid: e14a509f-b611-4b30-b38c-bc7f11b679aa + providing_service_name: vVIGaaS + ecomp_homing: + instance_node_target: Test + homing_policy: Test + supplemental_data: + Key: key + ecomp_selected_instance_node_target: false + substitution_mappings: + node_type: org.openecomp.resource.vf.AllottedResource + capabilities: + Alloted resource 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + Alloted resource 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Alloted resource 1.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai2/resource-Extvl-template.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai2/resource-Extvl-template.yml new file mode 100644 index 0000000000..512d62bdaa --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai2/resource-Extvl-template.yml @@ -0,0 +1,61 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: f148dbb0-8c53-466d-9687-791c0e9d40cf + UUID: 3f8fa4d2-2b86-4b36-bbc8-ffb8f9f57468 + name: ExtVL + description: OPENECOMP generic virtual link (network) base type for all other service-level and global networks + type: VL + category: Generic + subcategory: Network Elements + resourceVendor: OPENECOMP (Tosca) + resourceVendorRelease: 1.0.0.wd03 +node_types: + org.openecomp.resource.vl.extVL: + derived_from: tosca.nodes.Root + description: OPENECOMP generic virtual link (network) base type for all other service-level and global networks + properties: + physical_network: + type: org.openecomp.datatypes.network.PhysicalNetwork + network_role: + type: string + description: | + Unique label that defines the role that this network performs. example: vce oam network, vnat sr-iov1 network + network_assignments: + type: org.openecomp.datatypes.network.NetworkAssignments + network_flows: + type: org.openecomp.datatypes.network.NetworkFlows + vl_artifacts: + type: map + description: List of artifacts associated with the VL + entry_schema: + type: org.openecomp.datatypes.Artifact + 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 + network_ecomp_naming: + type: org.openecomp.datatypes.EcompNaming + network_type: + type: string + description: OPENECOMP supported network types. + network_technology: + type: string + description: OPENECOMP supported network technology + network_homing: + type: org.openecomp.datatypes.EcompHoming + capabilities: + virtual_linkable: + type: tosca.capabilities.network.Linkable + occurrences: + - 1 + - UNBOUNDED +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| diff --git a/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai2/service-ServiceWithAllotedVfAndExvl-template.yml b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai2/service-ServiceWithAllotedVfAndExvl-template.yml new file mode 100644 index 0000000000..dbd039669c --- /dev/null +++ b/common/onap-sdc-artifact-generator-lib/onap-sdc-artifact-generator-core/src/test/resources/aai2/service-ServiceWithAllotedVfAndExvl-template.yml @@ -0,0 +1,90 @@ +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| +tosca_definitions_version: tosca_simple_yaml_1_0 +metadata: + invariantUUID: e8a6c85c-429f-47cd-b594-376a0ffccd29 + UUID: 14fd2446-691a-4d7d-8ef4-ece19c3176f5 + name: Service with alloted VF and exVL + description: 'This service contains two instances : 1. Allotted resource VF 2. ExVL + - Network' + type: Service + category: Mobility + serviceEcompNaming: false + serviceHoming: false +imports: +- ExtVL: + file: resource-Extvl-template.yml +- Allotted Resource: + file: resource-AllottedResource-template.yml +topology_template: + node_templates: + ExtVL 1: + type: org.openecomp.resource.vl.extVL + metadata: + invariantUUID: f148dbb0-8c53-466d-9687-791c0e9d40cf + UUID: 3f8fa4d2-2b86-4b36-bbc8-ffb8f9f57468 + version: '2.0' + name: ExtVL + description: OPENECOMP generic virtual link (network) base type for all other service-level and global networks + type: VL + category: Generic + subcategory: Network Elements + Allotted Resource 2: + type: org.openecomp.resource.vf.AllottedResource + metadata: + invariantUUID: a54a5235-b69d-4f8a-838b-d011e6783fa5 + UUID: f32afdc3-6308-4f0c-a476-0d39c8a1fb4d + version: '0.1' + name: Allotted Resource + description: This is a VF - Allotted resource + type: VF + category: Allotted Resource + subcategory: Allotted Resource + substitution_mappings: + node_type: org.openecomp.service.ServiceWithAllotedVfAndExvl + capabilities: + ExtVL 1.virtual_linkable: + type: tosca.capabilities.network.Linkable + occurrences: + - 1 + - UNBOUNDED + Allotted Resource 2.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + ExtVL 1.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + ExtVL 1.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Allotted Resource 2.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + Allotted Resource 2.service_dependency: + occurrences: + - 1 + - 1 + capability: org.openecomp.capabilities.AllottedResource + node: tosca.services.Root + relationship: tosca.relationships.DependsOn +#_______________________________________________________________________________________________________________________________________ + #| AT&T Proprietary (Restricted) | + #| Only for use by authorized individuals or any above-designated team(s) | + #| within the AT&T companies and not for general distribution | + #|_______________________________________________________________________________________________________________________________________| |