summaryrefslogtreecommitdiffstats
path: root/samples/ping-ext-ip.yaml
blob: 3ce71e8a7dbe1134634c30808f59cc7c5905e464 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
# Sample benchmark task config file
# Measure network latency using ping, destination is an external server
# Make sure servers have internet access before running this test.
# For example using virtual MOS do something this on the host:
# sudo iptables -t nat -A POSTROUTING -s 172.16.0.0/24 \! -d 172.16.0.0/24 -j MASQUERADE
#

schema: "yardstick:task:0.1"

scenarios:
-
  type: Ping
  host: hermes.demo
  target: 8.8.8.8
  runner:
    type: Duration
    duration: 60
    interval: 1
  sla:
    max_rtt: 10
    action: monitor

context:
  name: demo
  image: cirros-0.3.3
  flavor: yardstick-flavor
  user: cirros
  servers:
    hermes:
      floating_ip: true
  networks:
    test:
      cidr: '10.0.1.0/24'