Unify PROX testcases TG and VNF names
[yardstick.git] / samples / vnf_samples / nsut / prox / tc_prox_sriov_l3fwd-2.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 ---
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     vnf__0:
30       prox_path: /opt/nsb_bin/prox
31       prox_config: "configs/handle_l3fwd-2.cfg"
32       prox_args:
33         "-t": ""
34       prox_files:
35         "configs/ipv4-2port.lua" : ""
36       prox_generate_parameter: True
37
38     tg__0:
39       collectd:
40         interval: 1
41       prox_path: /opt/nsb_bin/prox
42       prox_config: "configs/gen_l3fwd-2.cfg"
43       prox_args:
44         "-e": ""
45         "-t": ""
46
47   runner:
48     type: Duration
49     # we kill after duration, independent of test duration, so set this high
50     duration: 1800
51
52 contexts:
53    - name: yardstick
54      type: Node
55      file: prox_tg_bm.yaml
56    - name: yardstick
57      type: StandaloneSriov
58      file: /etc/yardstick/nodes/standalone/host_sriov.yaml
59      vm_deploy: True
60      flavor:
61        images: "/var/lib/libvirt/images/yardstick-nsb-image.img"
62        ram: 16384
63        extra_specs:
64          hw:cpu_sockets: 1
65          hw:cpu_cores: 10
66          hw:cpu_threads: 2
67      servers:
68        vnf_0:
69          network_ports:
70            mgmt:
71              cidr: '1.1.1.62/24'
72            xe0:
73              - uplink_0
74            xe1:
75              - downlink_0
76      networks:
77        uplink_0:
78          phy_port: "0000:05:00.0"
79          vpci: "0000:00:0a.0"
80          cidr: '152.16.100.10/24'
81          gateway_ip: '152.16.100.20'
82        downlink_0:
83          phy_port: "0000:05:00.1"
84          vpci: "0000:00:0b.0"
85          cidr: '152.16.40.10/24'
86          gateway_ip: '152.16.100.20'