225 lines
6.1 KiB
YAML
225 lines
6.1 KiB
YAML
tosca_definitions_version: tosca_simple_yaml_1_2
|
|
|
|
description: Simple deployment flavour for Sample VNF
|
|
|
|
imports:
|
|
- etsi_nfv_sol001_common_types.yaml
|
|
- etsi_nfv_sol001_vnfd_types.yaml
|
|
- change_vnf_pkg_types.yaml
|
|
|
|
topology_template:
|
|
inputs:
|
|
descriptor_id:
|
|
type: string
|
|
descriptor_version:
|
|
type: string
|
|
provider:
|
|
type: string
|
|
product_name:
|
|
type: string
|
|
software_version:
|
|
type: string
|
|
vnfm_info:
|
|
type: list
|
|
entry_schema:
|
|
type: string
|
|
flavour_id:
|
|
type: string
|
|
flavour_description:
|
|
type: string
|
|
|
|
substitution_mappings:
|
|
node_type: company.provider.VNF
|
|
properties:
|
|
flavour_id: simple
|
|
requirements:
|
|
virtual_link_external1_1: [ VDU1_CP1, virtual_link ]
|
|
virtual_link_external1_2: [ VDU2_CP1, virtual_link ]
|
|
|
|
node_templates:
|
|
VNF:
|
|
type: company.provider.VNF
|
|
properties:
|
|
flavour_description: A simple flavour
|
|
interfaces:
|
|
Vnflcm:
|
|
instantiate: []
|
|
instantiate_start: []
|
|
instantiate_end: []
|
|
terminate: []
|
|
terminate_start: []
|
|
terminate_end: []
|
|
modify_information: []
|
|
modify_information_start: []
|
|
modify_information_end: []
|
|
|
|
VDU1:
|
|
type: tosca.nodes.nfv.Vdu.Compute
|
|
properties:
|
|
name: VDU1
|
|
description: VDU1 compute node
|
|
vdu_profile:
|
|
min_number_of_instances: 1
|
|
max_number_of_instances: 3
|
|
sw_image_data:
|
|
name: cirros-0.5.2-x86_64-disk
|
|
version: '0.5.2'
|
|
checksum:
|
|
algorithm: sha-256
|
|
hash: 932fcae93574e242dc3d772d5235061747dfe537668443a1f0567d893614b464
|
|
container_format: bare
|
|
disk_format: qcow2
|
|
min_disk: 0 GB
|
|
min_ram: 256 MB
|
|
size: 2 GB
|
|
capabilities:
|
|
virtual_compute:
|
|
properties:
|
|
requested_additional_capabilities:
|
|
properties:
|
|
requested_additional_capability_name: m1.tiny
|
|
support_mandatory: true
|
|
target_performance_parameters:
|
|
entry_schema: test
|
|
virtual_memory:
|
|
virtual_mem_size: 512 MB
|
|
virtual_cpu:
|
|
num_virtual_cpu: 1
|
|
virtual_local_storage:
|
|
- size_of_storage: 3 GB
|
|
|
|
VDU2:
|
|
type: tosca.nodes.nfv.Vdu.Compute
|
|
properties:
|
|
name: VDU2
|
|
description: VDU2 compute node
|
|
vdu_profile:
|
|
min_number_of_instances: 1
|
|
max_number_of_instances: 1
|
|
capabilities:
|
|
virtual_compute:
|
|
properties:
|
|
requested_additional_capabilities:
|
|
properties:
|
|
requested_additional_capability_name: ds2G
|
|
support_mandatory: true
|
|
target_performance_parameters:
|
|
entry_schema: test
|
|
virtual_memory:
|
|
virtual_mem_size: 2 GB
|
|
virtual_cpu:
|
|
num_virtual_cpu: 2
|
|
virtual_local_storage:
|
|
- size_of_storage: 20 GB
|
|
requirements:
|
|
- virtual_storage: VDU2-VirtualStorage
|
|
|
|
VDU2-VirtualStorage:
|
|
type: tosca.nodes.nfv.Vdu.VirtualBlockStorage
|
|
properties:
|
|
virtual_block_storage_data:
|
|
size_of_storage: 1 GB
|
|
rdma_enabled: true
|
|
sw_image_data:
|
|
name: VDU2-VirtualStorage-image
|
|
version: '0.5.2'
|
|
checksum:
|
|
algorithm: sha-256
|
|
hash: 932fcae93574e242dc3d772d5235061747dfe537668443a1f0567d893614b464
|
|
container_format: bare
|
|
disk_format: qcow2
|
|
min_disk: 0 GB
|
|
min_ram: 256 MB
|
|
size: 12 GB
|
|
artifacts:
|
|
sw_image:
|
|
type: tosca.artifacts.nfv.SwImage
|
|
file: ../Files/images/cirros-0.5.2-x86_64-disk.img
|
|
|
|
VDU1_CP1:
|
|
type: tosca.nodes.nfv.VduCp
|
|
properties:
|
|
layer_protocols: [ ipv4 ]
|
|
order: 0
|
|
requirements:
|
|
- virtual_binding: VDU1
|
|
|
|
VDU2_CP1:
|
|
type: tosca.nodes.nfv.VduCp
|
|
properties:
|
|
layer_protocols: [ ipv4 ]
|
|
order: 0
|
|
requirements:
|
|
- virtual_binding: VDU2
|
|
|
|
policies:
|
|
- scaling_aspects:
|
|
type: tosca.policies.nfv.ScalingAspects
|
|
properties:
|
|
aspects:
|
|
VDU1_scale:
|
|
name: VDU1_scale
|
|
description: VDU1 scaling aspect
|
|
max_scale_level: 2
|
|
step_deltas:
|
|
- delta_1
|
|
|
|
- VDU1_initial_delta:
|
|
type: tosca.policies.nfv.VduInitialDelta
|
|
properties:
|
|
initial_delta:
|
|
number_of_instances: 2
|
|
targets: [ VDU1 ]
|
|
|
|
- VDU2_initial_delta:
|
|
type: tosca.policies.nfv.VduInitialDelta
|
|
properties:
|
|
initial_delta:
|
|
number_of_instances: 1
|
|
targets: [ VDU2 ]
|
|
|
|
- VDU1_scaling_aspect_deltas:
|
|
type: tosca.policies.nfv.VduScalingAspectDeltas
|
|
properties:
|
|
aspect: VDU1_scale
|
|
deltas:
|
|
delta_1:
|
|
number_of_instances: 1
|
|
targets: [ VDU1 ]
|
|
|
|
- instantiation_levels:
|
|
type: tosca.policies.nfv.InstantiationLevels
|
|
properties:
|
|
levels:
|
|
instantiation_level_1:
|
|
description: Smallest size
|
|
scale_info:
|
|
VDU1_scale:
|
|
scale_level: 0
|
|
instantiation_level_2:
|
|
description: Largest size
|
|
scale_info:
|
|
VDU1_scale:
|
|
scale_level: 2
|
|
default_level: instantiation_level_1
|
|
|
|
- VDU1_instantiation_levels:
|
|
type: tosca.policies.nfv.VduInstantiationLevels
|
|
properties:
|
|
levels:
|
|
instantiation_level_1:
|
|
number_of_instances: 1
|
|
instantiation_level_2:
|
|
number_of_instances: 3
|
|
targets: [ VDU1 ]
|
|
|
|
- VDU2_instantiation_levels:
|
|
type: tosca.policies.nfv.VduInstantiationLevels
|
|
properties:
|
|
levels:
|
|
instantiation_level_1:
|
|
number_of_instances: 1
|
|
instantiation_level_2:
|
|
number_of_instances: 1
|
|
targets: [ VDU2 ]
|