Improve IXIA IxNetwork library and traffic profile (1)
[yardstick.git] / samples / ping-ext-stimuli.yaml
1 ##############################################################################
2 # Copyright (c) 2017 Ericsson AB and others.
3 #
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9 ---
10 # Sample benchmark task config file
11 # Measure network latency using ping, destination is an external server
12 # Make sure servers have internet access before running this test.
13 # For example using virtual MOS do something this on the host:
14 # sudo iptables -t nat -A POSTROUTING -s 172.16.0.0/24 \! -d 172.16.0.0/24 -j MASQUERADE
15 #
16 # This sample demonstrates the use of runner actions - hooks inserted in
17 # diffrent places of the runner execution.
18 #
19
20 schema: "yardstick:task:0.1"
21
22 scenarios:
23 -
24   type: Ping
25   host: goofy.demo
26   target: 8.8.8.8
27   runner:
28     type: Duration
29     duration: 60
30     interval: 1
31     pre-start-action:
32         command: "heat stack-show demo"
33     periodic-action:
34         interval: 10
35         command: "ifconfig vboxnet1"
36     single-shot-action:
37         after: 30
38         command: "nova show goofy.demo"
39     post-stop-action:
40         command: "nova list"
41   sla:
42     max_rtt: 10
43     action: monitor
44
45 context:
46   name: demo
47   image: yardstick-image
48   flavor: yardstick-flavor
49   user: ubuntu
50   servers:
51     goofy:
52       floating_ip: true
53   networks:
54     test:
55       cidr: '10.0.1.0/24'
56