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.
14 {% set vports = vports or 2 %}
15 {% set tolerance_low = tolerance_low or 0.0001 %}
16 {% set tolerance_high = tolerance_high or 0.0001 %}
17 {% set framesize = framesize or "{64B: 100}" %}
19 schema: yardstick:task:0.1
21 - type: NSPerf-RFC2544
22 traffic_profile: ../../traffic_profiles/ipv4_throughput_cgnapt-scale-up.yaml
25 topology: cgnapt-tg-topology-scale-up.yaml
27 tg__0: trafficgen_0.yardstick
28 vnf__0: vnf_0.yardstick
31 uplink: {{ framesize }}
32 downlink: {{ framesize }}
35 {% for vport in range(0, vports|int, 2) %}
36 - {'tg__0': 'xe{{ vport }}'}
39 {% for vport in range(1, vports|int, 2) %}
40 - {'tg__0': 'xe{{ vport }}'}
43 {% for port_num in range((vports/2)|int) %}
44 - {{ public_ip[port_num] }}
49 allowed_drop_rate: "{{ tolerance_low }} - {{ tolerance_high }}"
51 vnf_config: {lb_config: 'SW', lb_count: 1, worker_config: '1C/1T', worker_threads: 1}
59 file: /etc/yardstick/nodes/standalone/trex_bm.yaml
60 - type: StandaloneOvsDpdk
62 file: /etc/yardstick/nodes/standalone/pod_ovs.yaml
76 images: "/var/lib/libvirt/images/yardstick-nsb-image.img"
89 {% for port_num in range((vports/2)|int) %}
91 - uplink_{{ port_num }}
92 xe{{ (port_num * 2) + 1 }}:
93 - downlink_{{ port_num }}
96 {% for port_num in range((vports/2)|int) %}
97 uplink_{{ port_num }}:
98 port_num: {{ networks.uplink[port_num].port_num }}
99 phy_port: "{{ networks.uplink[port_num].phy_port }}"
100 vpci: "{{ networks.uplink[port_num].vpci }}"
101 cidr: "{{ networks.uplink[port_num].cidr }}"
102 gateway_ip: "{{ networks.uplink[port_num].gateway_ip }}"
103 downlink_{{ port_num }}:
104 port_num: {{ networks.downlink[port_num].port_num }}
105 phy_port: "{{ networks.downlink[port_num].phy_port }}"
106 vpci: "{{ networks.downlink[port_num].vpci }}"
107 cidr: "{{ networks.downlink[port_num].cidr }}"
108 gateway_ip: "{{ networks.downlink[port_num].gateway_ip }}"