f860185f56
Change-Id: I770c78180032b3da473f26e64151b799cf800ee3
77 lines
1.7 KiB
YAML
77 lines
1.7 KiB
YAML
tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
|
|
description: Demo example
|
|
|
|
metadata:
|
|
template_name: sample-tosca-vnfd
|
|
|
|
topology_template:
|
|
node_templates:
|
|
VDU1:
|
|
type: tosca.nodes.nfv.VDU.Tacker
|
|
capabilities:
|
|
nfv_compute:
|
|
properties:
|
|
disk_size: 1 GB
|
|
mem_size: 512 MB
|
|
num_cpus: 2
|
|
properties:
|
|
image: cirros-0.4.0-x86_64-disk
|
|
mgmt_driver: noop
|
|
availability_zone: nova
|
|
|
|
CP1:
|
|
type: tosca.nodes.nfv.CP.Tacker
|
|
properties:
|
|
management: true
|
|
anti_spoofing_protection: false
|
|
requirements:
|
|
- virtualLink:
|
|
node: VL1
|
|
- virtualBinding:
|
|
node: VDU1
|
|
|
|
VDU2:
|
|
type: tosca.nodes.nfv.VDU.Tacker
|
|
capabilities:
|
|
nfv_compute:
|
|
properties:
|
|
disk_size: 1 GB
|
|
mem_size: 512 MB
|
|
num_cpus: 2
|
|
properties:
|
|
image: cirros-0.4.0-x86_64-disk
|
|
mgmt_driver: noop
|
|
availability_zone: nova
|
|
|
|
CP2:
|
|
type: tosca.nodes.nfv.CP.Tacker
|
|
properties:
|
|
management: true
|
|
anti_spoofing_protection: false
|
|
requirements:
|
|
- virtualLink:
|
|
node: VL2
|
|
- virtualBinding:
|
|
node: VDU2
|
|
|
|
VL1:
|
|
type: tosca.nodes.nfv.VL
|
|
properties:
|
|
network_name: net_mgmt
|
|
vendor: Tacker
|
|
|
|
VL2:
|
|
type: tosca.nodes.nfv.VL
|
|
properties:
|
|
network_name: net0
|
|
vendor: Tacker
|
|
|
|
policies:
|
|
- my_compute_placement_policy:
|
|
type: tosca.policies.tacker.Placement
|
|
properties:
|
|
policy: anti-affinity
|
|
strict: true
|
|
description: Apply anti-affinity placement policy to the application servers
|
|
targets: [ VDU1, VDU2 ]
|