tacker/tacker/tests/unit/vnfm/infra_drivers/openstack/data/tosca_vnic_port.yaml

59 lines
1.2 KiB
YAML

tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
description: VNIC Normal Port example
metadata:
template_name: sample-vnic-normal-vnfd
topology_template:
node_templates:
VDU1:
type: tosca.nodes.nfv.VDU.Tacker
properties:
image: OpenWRT
flavor: m1.small
availability_zone: nova
mgmt_driver: openwrt
monitoring_policy:
name: ping
actions:
failure: respawn
parameters:
count: 3
interval: 10
config: |
param0: key1
param1: key2
CP1:
type: tosca.nodes.nfv.CP.Tacker
properties:
management: true
requirements:
- virtualLink:
node: VL1
- virtualBinding:
node: VDU1
CP2:
type: tosca.nodes.nfv.CP.Tacker
properties:
type: vnic
requirements:
- virtualLink:
node: VL2
- virtualBinding:
node: VDU1
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