198 lines
5.5 KiB
YAML
198 lines
5.5 KiB
YAML
tosca_definitions_version: tosca_simple_yaml_1_2
|
|
|
|
description: >
|
|
Template for test _generate_hot_from_tosca().
|
|
|
|
imports:
|
|
- etsi_nfv_sol001_common_types.yaml
|
|
- etsi_nfv_sol001_vnfd_types.yaml
|
|
|
|
node_types:
|
|
ntt.nslab.VNF:
|
|
derived_from: tosca.nodes.nfv.VNF
|
|
properties:
|
|
descriptor_id:
|
|
type: string
|
|
constraints: [ valid_values: [ b1bb0ce7-ebca-4fa7-95ed-4840d70a1177 ] ]
|
|
default: b1bb0ce7-ebca-4fa7-95ed-4840d70a1177
|
|
descriptor_version:
|
|
type: string
|
|
constraints: [ valid_values: [ '1.0' ] ]
|
|
default: '1.0'
|
|
provider:
|
|
type: string
|
|
constraints: [ valid_values: [ 'NTT NS lab' ] ]
|
|
default: 'NTT NS lab'
|
|
product_name:
|
|
type: string
|
|
constraints: [ valid_values: [ 'Sample VNF' ] ]
|
|
default: 'Sample VNF'
|
|
software_version:
|
|
type: string
|
|
constraints: [ valid_values: [ '1.0' ] ]
|
|
default: '1.0'
|
|
vnfm_info:
|
|
type: list
|
|
entry_schema:
|
|
type: string
|
|
constraints: [ valid_values: [ Tacker ] ]
|
|
default: [ Tacker ]
|
|
flavour_id:
|
|
type: string
|
|
constraints: [ valid_values: [ simple ] ]
|
|
default: simple
|
|
flavour_description:
|
|
type: string
|
|
default: ""
|
|
requirements:
|
|
- virtual_link_external:
|
|
capability: tosca.capabilities.nfv.VirtualLinkable
|
|
- virtual_link_internal:
|
|
capability: tosca.capabilities.nfv.VirtualLinkable
|
|
interfaces:
|
|
Vnflcm:
|
|
type: tosca.interfaces.nfv.Vnflcm
|
|
|
|
topology_template:
|
|
inputs:
|
|
selected_flavour:
|
|
type: string
|
|
default: simple
|
|
description: VNF deployment flavour selected by the consumer. It is provided in the API
|
|
|
|
substitution_mappings:
|
|
node_type: ntt.nslab.VNF
|
|
properties:
|
|
flavour_id: simple
|
|
requirements:
|
|
virtual_link_external: [ CP1, virtual_link ]
|
|
|
|
node_templates:
|
|
VNF:
|
|
type: ntt.nslab.VNF
|
|
properties:
|
|
flavour_id: { get_input: selected_flavour }
|
|
descriptor_id: b1bb0ce7-ebca-4fa7-95ed-4840d70a1177
|
|
provider: NTT NS lab
|
|
product_name: Sample VNF
|
|
software_version: '1.0'
|
|
descriptor_version: '1.0'
|
|
vnfm_info:
|
|
- Tacker
|
|
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: 1
|
|
sw_image_data:
|
|
name: Software of VDU1
|
|
version: '0.4.0'
|
|
checksum:
|
|
algorithm: sha-256
|
|
hash: b9c3036539fd7a5f87a1bf38eb05fdde8b556a1a7e664dbeda90ed3cd74b4f9d
|
|
container_format: bare
|
|
disk_format: qcow2
|
|
min_disk: 1 GiB
|
|
size: 1 GiB
|
|
artifacts:
|
|
sw_image:
|
|
type: tosca.artifacts.nfv.SwImage
|
|
file: Files/images/cirros-0.4.0-x86_64-disk.img
|
|
capabilities:
|
|
virtual_compute:
|
|
properties:
|
|
virtual_memory:
|
|
virtual_mem_size: 512 MiB
|
|
virtual_cpu:
|
|
num_virtual_cpu: 1
|
|
virtual_local_storage:
|
|
- size_of_storage: 1 GiB
|
|
|
|
CP1:
|
|
type: tosca.nodes.nfv.VduCp
|
|
properties:
|
|
layer_protocols: [ ipv4 ]
|
|
order: 0
|
|
requirements:
|
|
- virtual_binding: VDU1
|
|
|
|
CP2:
|
|
type: tosca.nodes.nfv.VduCp
|
|
properties:
|
|
layer_protocols: [ ipv4 ]
|
|
order: 1
|
|
requirements:
|
|
- virtual_binding: VDU1
|
|
|
|
CP3:
|
|
type: tosca.nodes.nfv.VduCp
|
|
properties:
|
|
layer_protocols: [ ipv4 ]
|
|
order: 2
|
|
requirements:
|
|
- virtual_binding: VDU1
|
|
- virtual_link: VL3
|
|
|
|
CP4:
|
|
type: tosca.nodes.nfv.VduCp
|
|
properties:
|
|
layer_protocols: [ ipv4 ]
|
|
order: 3
|
|
requirements:
|
|
- virtual_binding: VDU1
|
|
- virtual_link: VL4
|
|
|
|
VL3:
|
|
type: tosca.nodes.nfv.VnfVirtualLink
|
|
properties:
|
|
connectivity_type:
|
|
layer_protocols: [ ipv4 ]
|
|
description: Internal Virtual link in the VNF
|
|
vl_profile:
|
|
max_bitrate_requirements:
|
|
root: 1048576
|
|
leaf: 1048576
|
|
min_bitrate_requirements:
|
|
root: 1048576
|
|
leaf: 1048576
|
|
virtual_link_protocol_data:
|
|
- associated_layer_protocol: ipv4
|
|
l3_protocol_data:
|
|
ip_version: ipv4
|
|
cidr: 33.33.0.0/24
|
|
|
|
VL4:
|
|
type: tosca.nodes.nfv.VnfVirtualLink
|
|
properties:
|
|
connectivity_type:
|
|
layer_protocols: [ ipv4 ]
|
|
description: Internal Virtual link in the VNF
|
|
vl_profile:
|
|
max_bitrate_requirements:
|
|
root: 1048576
|
|
leaf: 1048576
|
|
min_bitrate_requirements:
|
|
root: 1048576
|
|
leaf: 1048576
|
|
virtual_link_protocol_data:
|
|
- associated_layer_protocol: ipv4
|
|
l3_protocol_data:
|
|
ip_version: ipv4
|
|
cidr: 44.44.0.0/24
|