Merge "Prox L2FWD multiflow test fix"
[yardstick.git] / samples / vnf_samples / nsut / acl / tc_baremetal_acl_rfc2544_template.yaml
1 # Copyright (c) 2017 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-{{ num_vnfs }}.yaml
20     topology: acl-tg-topology-multi-port-{{ num_vnfs }}.yaml
21     nodes:
22       tg__0: tg__0.yardstick
23       vnf__0: vnf__0.yardstick
24     options:
25       framesize:
26         uplink: {{ flow.pkt_size.uplink }}
27         downlink: {{ flow.pkt_size.downlink }}
28       flow:
29         src_ip:
30 {% for vnf_num in range(num_vnfs|int) %}
31           - {'tg__0': 'xe{{ (vnf_num * 2)}}'}
32 {% endfor %}
33         dst_ip:
34 {% for vnf_num in range(num_vnfs|int) %}
35           - {'tg__0': 'xe{{ (vnf_num * 2) + 1}}'}
36 {% endfor %}
37         count: {{ flow.count }}
38       traffic_type: {{ flow.traffic_type }}
39       rfc2544:
40         allowed_drop_rate: {{ flow.rfc2544.allowed_drop_rate }}
41       vnf__0:
42         rules: acl_1rule.yaml
43         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}}}
44     runner:
45       type: Iteration
46       iterations: 10
47       interval: 35
48 contexts:
49    - name: yardstick
50      type: Node
51      file: /etc/yardstick/nodes/baremetal_trex_{{num_vnfs}}.yaml
52    - name: yardstick
53      type: Node
54      file: /etc/yardstick/nodes/pod_bm_vnf_{{num_vnfs}}.yaml