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 image = image or "yardstick-samplevnfs" %}
15 {% set mem = mem or 20480 %}
16 {% set vcpus = vcpus or 10 %}
17 {% set vports = vports or 2 %}
18 {% set phynet_map = phynet_map or {'uplink_0': 'prov0',
19 'downlink_0': 'prov1',
21 'downlink_1': 'prov3'} %}
24 schema: yardstick:task:0.1
26 - type: NSPerf-RFC2544
27 traffic_profile: ../../traffic_profiles/ixia_ipv4_latency_scale_up.yaml
28 topology: vfw-tg-topology-ixia-scale-up.yaml
32 tg__0: trafficgen_0.barametal
33 vnf__0: vnf_0.yardstick
38 {% for vport in range(0,vports,2|int) %}
39 {'tg__0': 'xe{{vport}}'},
42 {% for vport in range(1,vports,2|int) %}
43 {'tg__0': 'xe{{vport}}'},
49 allowed_drop_rate: 0.005 - 0.01
52 vnf_config: {lb_config: 'SW', lb_count: 1, worker_config: '1C/1T', worker_threads: 1}
55 scenario_option_name: framesize
65 - uplink: {1024B: 100}
66 downlink: {1024B: 100}
67 - uplink: {1518B: 100}
68 downlink: {1518B: 100}
69 - uplink: {64B: 25, 128B: 25, 512B: 25, 1024B: 25}
70 downlink: {64B: 25, 128B: 25, 512B: 25, 1024B: 25}
75 file: /etc/yardstick/nodes/pod_ixia.yaml
84 hw:cpu_cores: {{ vcpus }}
89 policy: "availability"
97 {% for vport in range(0,vports,2|int) %}
98 uplink_{{loop.index0}}:
100 downlink_{{loop.index0}}:
106 {% for vport in range(1,vports,2|int) %}
107 uplink_{{loop.index0}}:
108 cidr: '10.0.{{vport + 1}}.0/24'
111 physical_network: {{phynet_map['uplink_' + loop.index0|string] }}
112 port_security_enabled: False
114 downlink_{{loop.index0}}:
115 cidr: '10.0.{{vport + 2}}.0/24'
118 physical_network: {{phynet_map['downlink_' + loop.index0|string] }}
119 port_security_enabled: False