Unify PROX testcases TG and VNF names
[yardstick.git] / samples / vnf_samples / nsut / prox / tc_prox_sriov_l2fwd-2.yaml
1 # Copyright (c) 2018-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 ---
16 schema: "yardstick:task:0.1"
17
18 scenarios:
19 -
20   type: NSPerf
21   traffic_profile: ../../traffic_profiles/prox_binsearch.yaml
22   topology: prox-tg-topology-2.yaml
23
24   nodes:
25     tg__0: trafficgen_0.yardstick
26     vnf__0: vnf_0.yardstick
27
28   options:
29     interface_speed_gbps: 10
30
31     vnf__0:
32       prox_path: /opt/nsb_bin/prox
33       prox_config: "configs/handle_l2fwd-2.cfg"
34       prox_args:
35         "-t": ""
36
37     tg__0:
38       prox_path: /opt/nsb_bin/prox
39       prox_config: "configs/gen_l2fwd-2.cfg"
40       prox_args:
41         "-e": ""
42         "-t": ""
43
44   runner:
45     type: Duration
46     # we kill after duration, independent of test duration, so set this high
47     duration: 300
48
49 contexts:
50    - name: yardstick
51      type: Node
52      file: prox_tg_bm.yaml
53    - name: yardstick
54      type: StandaloneSriov
55      file: /etc/yardstick/nodes/standalone/host_sriov.yaml
56      vm_deploy: True
57      flavor:
58        images: "/var/lib/libvirt/images/yardstick-nsb-image.img"
59        ram: 16384
60        extra_specs:
61          hw:cpu_sockets: 1
62          hw:cpu_cores: 10
63          hw:cpu_threads: 2
64      servers:
65        vnf_0:
66          network_ports:
67            mgmt:
68              cidr: '1.1.1.61/24'
69            xe0:
70              - uplink_0
71            xe1:
72              - downlink_0
73      networks:
74        uplink_0:
75          phy_port: "0000:05:00.0"
76          vpci: "0000:00:0a.0"
77          cidr: '152.16.100.10/24'
78          gateway_ip: '152.16.100.20'
79        downlink_0:
80          phy_port: "0000:05:00.1"
81          vpci: "0000:00:0b.0"
82          cidr: '152.16.40.10/24'
83          gateway_ip: '152.16.100.20'