tacker/tacker/tests/unit/vnfm/infra_drivers/openstack/data/tosca_placement_policy_default_affinity.yaml
Cong Phuoc Hoang f860185f56 Modify image name to cirros-0.4.0-x86_64-disk
Change-Id: I770c78180032b3da473f26e64151b799cf800ee3
2019-01-07 21:07:05 +09:00

64 lines
1.4 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
properties:
flavor: m1.tiny
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
properties:
flavor: m1.tiny
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
description: Apply default placement policy to the application servers
targets: [ VDU1, VDU2 ]