Unify PROX testcases TG and VNF names
[yardstick.git] / samples / vnf_samples / nsut / prox / tc_prox_ovs-dpdk_l3fwd-scale-up.yaml
1 # Copyright (c) 2016-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 {% set vports = vports or 2 %}
16 ---
17 schema: "yardstick:task:0.1"
18
19 scenarios:
20 -
21   type: NSPerf
22   traffic_profile: ../../traffic_profiles/prox_binsearch.yaml
23   extra_args:
24     vports: {{ vports }}
25   topology: prox-tg-topology-scale-up.yaml
26
27   nodes:
28     tg__0: trafficgen_0.yardstick
29     vnf__0: vnf_0.yardstick
30
31   options:
32     vnf__0:
33       prox_path: /opt/nsb_bin/prox
34       prox_config: "configs/handle_l3fwd-{{ vports }}.cfg"
35       prox_args:
36         "-t": ""
37       prox_files:
38 {% if vports == 2 %}
39         "configs/ipv4-2port.lua" : ""
40 {% else %}
41         "configs/ipv4.lua" : ""
42 {% endif %}
43       prox_generate_parameter: True
44
45     tg__0:
46       prox_path: /opt/nsb_bin/prox
47       prox_config: "configs/gen_l3fwd-{{ vports }}.cfg"
48       prox_args:
49         "-e": ""
50         "-t": ""
51
52   runner:
53     type: Duration
54     # we kill after duration, independent of test duration, so set this high
55     duration: 600
56
57 contexts:
58    - name: yardstick
59      type: Node
60      file: prox_tg_bm.yaml
61    - name: yardstick
62      type: StandaloneOvsDpdk
63      file: /etc/yardstick/nodes/standalone/host_ovs.yaml
64      vm_deploy: True
65      ovs_properties:
66        version:
67          ovs: 2.8.0
68          dpdk: 17.05.2
69        pmd_threads: 2
70        ram:
71          socket_0: 2048
72          socket_1: 2048
73        queues: 4
74        vpath: "/usr/local"
75      flavor:
76        images: "/var/lib/libvirt/images/yardstick-nsb-image.img"
77        ram: 16384
78        extra_specs:
79          hw:cpu_sockets: 1
80          hw:cpu_cores: 10
81          hw:cpu_threads: 2
82      servers:
83        vnf_0:
84          network_ports:
85            mgmt:
86              cidr: '1.1.1.62/24'
87 {% for port_num in range((vports/2)|int) %}
88            xe{{ port_num * 2 }}:
89              - uplink_{{ port_num }}
90            xe{{ (port_num * 2) + 1 }}:
91              - downlink_{{ port_num }}
92 {% endfor %}
93      networks:
94 {% for port_num in range((vports/2)|int) %}
95        uplink_{{ port_num }}:
96          port_num: {{ networks.uplink[port_num].port_num }}
97          phy_port: "{{ networks.uplink[port_num].phy_port }}"
98          vpci: "{{ networks.uplink[port_num].vpci }}"
99          cidr: "{{ networks.uplink[port_num].cidr }}"
100          gateway_ip: "{{ networks.uplink[port_num].gateway_ip }}"
101        downlink_{{ port_num }}:
102          port_num: {{ networks.downlink[port_num].port_num }}
103          phy_port: "{{ networks.downlink[port_num].phy_port }}"
104          vpci: "{{ networks.downlink[port_num].vpci }}"
105          cidr: "{{ networks.downlink[port_num].cidr }}"
106          gateway_ip: "{{ networks.downlink[port_num].gateway_ip }}"
107 {% endfor %}