add yardstick iruya 9.0.0 release notes
[yardstick.git] / samples / pktgen.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 throughput using pktgen
12 # with 2 stepping parameters. One stepping
13 # in positive and the other in negative direction
14
15 schema: "yardstick:task:0.1"
16
17 scenarios:
18 -
19   type: Pktgen
20   options:
21     duration: 20
22
23   host: demeter.demo
24   target: poseidon.demo
25
26   runner:
27     type: Arithmetic
28     interval: 2
29     iter_type: nested_for_loops
30     # run with packetsize/number_of_ports: 60,20; 60,10; ... 70,10
31     iterators:
32       -
33        name: packetsize
34        start: 60
35        stop: 70
36        step: 5
37       -
38        name: number_of_ports
39        start: 20
40        stop: 10
41        step: -10
42
43   sla:
44     max_ppm: 1000
45     action: monitor
46
47 context:
48   name: demo
49   image: yardstick-image
50   flavor: yardstick-flavor
51   user: ubuntu
52
53   placement_groups:
54     pgrp1:
55       policy: "availability"
56
57   servers:
58     demeter:
59       floating_ip: true
60       placement: "pgrp1"
61     poseidon:
62       floating_ip: true
63       placement: "pgrp1"
64
65   networks:
66     test:
67       cidr: '10.0.1.0/24'
68
69