diff --git a/samples/tosca-templates/vnfd/tosca-vnfd-monitoring-vdu-autoheal.yaml b/samples/tosca-templates/vnfd/tosca-vnfd-monitoring-vdu-autoheal.yaml new file mode 100644 index 000000000..eeac65e42 --- /dev/null +++ b/samples/tosca-templates/vnfd/tosca-vnfd-monitoring-vdu-autoheal.yaml @@ -0,0 +1,55 @@ +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: 1 + properties: + image: cirros-0.4.0-x86_64-disk + mgmt_driver: noop + availability_zone: nova + mgmt_driver: noop + monitoring_policy: + name: ping + parameters: + monitoring_delay: 45 + count: 3 + interval: 1 + timeout: 2 + actions: + failure: vdu_autoheal + user_data_format: RAW + user_data: | + #!/bin/sh + echo "my hostname is `hostname`" > /tmp/hostname + df -h > /home/cirros/diskinfo + sleep 90 + sudo ifdown eth0 + + CP1: + type: tosca.nodes.nfv.CP.Tacker + properties: + management: true + anti_spoofing_protection: false + requirements: + - virtualLink: + node: VL1 + - virtualBinding: + node: VDU1 + + VL1: + type: tosca.nodes.nfv.VL + properties: + network_name: net_mgmt + vendor: Tacker +