scale-out testcase template
[yardstick.git] / samples / vnf_samples / traffic_profiles / ipv4_throughput-scale-out.yaml
1 #jinja2:variable_start_string:'[[', variable_end_string:']]', block_start_string:'[%', block_end_string:'%]'
2 # Copyright (c) 2016-2017 Intel Corporation
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #      http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15
16 # flow definition for ACL tests - 1K flows - ipv4 only
17 #
18 # the number of flows defines the widest range of parameters
19 # for example if srcip_range=1.0.0.1-1.0.0.255 and dst_ip_range=10.0.0.1-10.0.1.255
20 # and it should define only 16 flows
21 #
22 # there is assumption that packets generated will have a random sequences of following addresses pairs
23 # in the packets
24 # 1. src=1.x.x.x(x.x.x =random from 1..255) dst=10.x.x.x (random from 1..512)
25 # 2. src=1.x.x.x(x.x.x =random from 1..255) dst=10.x.x.x (random from 1..512)
26 # ...
27 # 512. src=1.x.x.x(x.x.x =random from 1..255) dst=10.x.x.x (random from 1..512)
28 #
29 # not all combination should be filled
30 # Any other field with random range will be added to flow definition
31 #
32 # the example.yaml provides all possibilities for traffic generation
33 #
34 # the profile defines a public and private side to make limited traffic correlation
35 # between private and public side same way as it is made by IXIA solution.
36 #
37 ---
38 schema: "nsb:traffic_profile:0.1"
39
40 # This file is a template, it will be filled with values from tc.yaml before passing to the traffic generator
41
42 name: rfc2544
43 description: Traffic profile to run RFC2544 latency
44 traffic_profile:
45   traffic_type: RFC2544Profile # defines traffic behavior - constant or look for highest possible throughput
46   frame_rate: 100  # pc of linerate
47   # that specifies a range (e.g. ipv4 address, port)
48
49
50 [% for vnf_num in range(num_vnfs|int) %]
51 uplink_[[ vnf_num ]]:
52   ipv4:
53     id: [[vnf_num * 2 + 1]]
54     outer_l2:
55       framesize:
56         64B: "{{ get(imix, 'imix.uplink.64B', '0') }}"
57         128B: "{{ get(imix, 'imix.uplink.128B', '0') }}"
58         256B: "{{ get(imix, 'imix.uplink.256B', '0') }}"
59         373b: "{{ get(imix, 'imix.uplink.373B', '0') }}"
60         512B: "{{ get(imix, 'imix.uplink.512B', '0') }}"
61         570B: "{{get(imix, 'imix.uplink.570B', '0') }}"
62         1400B: "{{get(imix, 'imix.uplink.1400B', '0') }}"
63         1500B: "{{get(imix, 'imix.uplink.1500B', '0') }}"
64         1518B: "{{get(imix, 'imix.uplink.1518B', '0') }}"
65     outer_l3v4:
66       proto: "udp"
67       srcip4: "{{get(flow, 'flow.src_ip_[[ vnf_num ]]', '1.1.1.1-1.1.255.255') }}"
68       dstip4: "{{get(flow, 'flow.dst_ip_[[ vnf_num ]]', '90.90.1.1-90.90.255.255') }}"
69       count: "{{get(flow, 'flow.count', '1') }}"
70       ttl: 32
71       dscp: 0
72     outer_l4:
73       srcport: "{{get(flow, 'flow.src_port_[[ vnf_num ]]', '1234-4321') }}"
74       dstport: "{{get(flow, 'flow.dst_port_[[ vnf_num ]]', '2001-4001') }}"
75       count: "{{get(flow, 'flow.count', '1') }}"
76 downlink_[[ vnf_num ]]:
77   ipv4:
78     id: [[vnf_num * 2 + 2]]
79     outer_l2:
80       framesize:
81         64B: "{{ get(imix, 'imix.downlink.64B', '0') }}"
82         128B: "{{ get(imix, 'imix.downlink.128B', '0') }}"
83         256B: "{{ get(imix, 'imix.downlink.256B', '0') }}"
84         373b: "{{ get(imix, 'imix.downlink.373B', '0') }}"
85         512B: "{{ get(imix, 'imix.downlink.512B', '0') }}"
86         570B: "{{get(imix, 'imix.downlink.570B', '0') }}"
87         1400B: "{{get(imix, 'imix.downlink.1400B', '0') }}"
88         1500B: "{{get(imix, 'imix.downlink.1500B', '0') }}"
89         1518B: "{{get(imix, 'imix.downlink.1518B', '0') }}"
90
91     outer_l3v4:
92       proto: "udp"
93       srcip4: "{{get(flow, 'flow.dst_ip_[[ vnf_num ]]', '90.90.1.1-90.90.255.255') }}"
94       dstip4: "{{get(flow, 'flow.src_ip_[[ vnf_num ]]', '1.1.1.1-1.1.255.255') }}"
95       count: "{{get(flow, 'flow.count', '1') }}"
96       ttl: 32
97       dscp: 0
98     outer_l4:
99       srcport: "{{get(flow, 'flow.dst_port_[[ vnf_num ]]', '1234-4321') }}"
100       dstport: "{{get(flow, 'flow.src_port_[[ vnf_num ]]', '2001-4001') }}"
101       count: "{{get(flow, 'flow.count', '1') }}"
102 [% endfor %]