Merge changes from topic 'manual_ci_test_cases'
[yardstick.git] / samples / vnf_samples / nsut / cgnapt / tc_baremetal_cgnapt_udp_ixia_correlated_scale_out_template.yaml
1 # Copyright (c) 2018-2019 Intel Corporation
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #      http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 ---
16 schema: yardstick:task:0.1
17 scenarios:
18   - type: NSPerf
19     traffic_profile: ../../traffic_profiles/ipv4_throughput-ixia-{{ num_vnfs }}.yaml
20     topology: cgnapt-tg-topology-ixia-correlated-scale-out-{{ num_vnfs }}.yaml
21     nodes:
22       tg__0: trafficgen_0.yardstick
23       tg__1: trafficgen_1.yardstick
24 {% for vnf_num in range(num_vnfs|int) %}
25       vnf__{{ vnf_num }}: vnf_{{ vnf_num }}.yardstick
26 {% endfor %}
27     options:
28       framesize:
29         uplink: {{ flow.pkt_size.uplink | to_yaml }}
30         downlink: {{ flow.pkt_size.downlink | to_yaml }}
31       flow:
32         src_ip:
33 {% for vnf_num in range(num_vnfs|int) %}
34           - {'tg__0': 'xe{{ vnf_num }}'}
35 {% endfor %}
36         dst_ip:
37 {% for vnf_num in range(num_vnfs|int) %}
38           - {'tg__1': 'xe{{ vnf_num }}'}
39 {% endfor %}
40         count: {{ flow.count }}
41       traffic_type: {{ flow.traffic_type }}
42       rfc2544:
43         allowed_drop_rate: {{ flow.rfc2544.allowed_drop_rate }}
44         correlated_traffic: true
45       vnf__0:
46         vnf_config: {lb_config: '{{flow.vnf_config.lb_config}}', lb_count: {{flow.vnf_config.lb_count}} , worker_config: '{{flow.vnf_config.worker_config}}', worker_threads: {{flow.vnf_config.worker_threads}}}
47     ixia_profile: ../../traffic_profiles/ixia/ixia_ipv4_profile_{{ num_vnfs * 2}}_port.ixncfg
48
49     runner:
50       type: Iteration
51       iterations: 10
52       interval: 35
53 contexts:
54    - name: yardstick
55      type: Node
56      file: /etc/yardstick/nodes/ixia_correlated_{{num_vnfs}}.yaml
57    - type: Node
58      file: /etc/yardstick/nodes/pod_bm_vnf_{{num_vnfs}}.yaml
59      name: yardstick