Adding Test Cases for Prox PktTouch Standalone SRIOV
[yardstick.git] / samples / vnf_samples / nsut / prox / tc_prox_sriov_l2fwd_pktTouch-4.yaml
1 # Copyright (c) 2016-2018 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-4.yaml
23
24   nodes:
25     tg__0: tg__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_pktTouch-4.cfg"
34       prox_args:
35         "-t": ""
36
37     tg__0:
38       prox_path: /opt/nsb_bin/prox
39       prox_config: "configs/gen_l2fwd_pktTouch-4.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            xe2:
74              - uplink_1
75            xe3:
76              - downlink_1
77
78      networks:
79        uplink_0:
80          phy_port: "0000:05:00.0"
81          vpci: "0000:00:0a.0"
82          cidr: '152.16.100.10/24'
83          gateway_ip: '152.16.100.20'
84        downlink_0:
85          phy_port: "0000:05:00.1"
86          vpci: "0000:00:0b.0"
87          cidr: '152.16.40.10/24'
88          gateway_ip: '152.16.100.20'
89        uplink_1:
90          phy_port: "0000:05:00.2"
91          vpci: "0000:00:0c.0"
92          cidr: '152.16.50.10/24'
93          gateway_ip: '152.16.100.20'
94        downlink_1:
95          phy_port: "0000:05:00.3"
96          vpci: "0000:00:0d.0"
97          cidr: '152.16.30.10/24'
98          gateway_ip: '152.16.100.20'
99