1 # Copyright (c) 2019 Intel Corporation
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
15 {% set vports = vports or 2 %}
16 {% set duration = duration or 300 %}
18 schema: "yardstick:task:0.1"
24 # In case where we know that all the packets generated by the generator
25 # will bw received. Then use prox_binsearch.
27 # In the case where some or all the packets generated by the generator may
28 # not be received. Please use prox_acl .. (This generates packets at
29 # a specific rate and does not change rate.
31 traffic_profile: ../../traffic_profiles/prox_acl.yaml
34 topology: prox-tg-topology-scale-up.yaml
38 vnf__0: vnf_0.yardstick
42 prox_path: /opt/nsb_bin/prox
43 prox_config: "configs/handle_acl-{{ vports }}.cfg"
47 "configs/acl_rules-2.lua": ""
50 prox_path: /opt/nsb_bin/prox
51 prox_config: "configs/gen_acl-{{ vports }}.cfg"
58 # we kill after duration, independent of test duration, so set this high
59 duration: {{ duration }}
67 file: /etc/yardstick/nodes/standalone/host_sriov.yaml
70 images: "/var/lib/libvirt/images/yardstick-nsb-image.img"
83 {% for port_num in range((vports/2)|int) %}
85 - uplink_{{ port_num }}
86 xe{{ (port_num * 2) + 1 }}:
87 - downlink_{{ port_num }}
90 {% for port_num in range((vports/2)|int) %}
91 uplink_{{ port_num }}:
92 phy_port: "{{ networks.uplink[port_num].phy_port }}"
93 vpci: "{{ networks.uplink[port_num].vpci }}"
94 cidr: "{{ networks.uplink[port_num].cidr }}"
95 gateway_ip: "{{ networks.uplink[port_num].gateway_ip }}"
96 downlink_{{ port_num }}:
97 phy_port: "{{ networks.downlink[port_num].phy_port }}"
98 vpci: "{{ networks.downlink[port_num].vpci }}"
99 cidr: "{{ networks.downlink[port_num].cidr }}"
100 gateway_ip: "{{ networks.downlink[port_num].gateway_ip }}"