Merge "Update NSB PROX devguide"
[yardstick.git] / samples / vnf_samples / nsut / vpe / tc_ovs_rfc2544_ipv4_1rule_64B_trex.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 scenarios:
18 - type: NSPerf
19   traffic_profile: ../../traffic_profiles/ipv4_throughput_vpe.yaml
20   topology: vpe_vnf_topology.yaml
21   nodes:
22     tg__0: trafficgen_1.yardstick
23     vnf__0: vnf__0.yardstick
24   options:
25     framesize:
26       uplink: {64B: 100}
27       downlink: {64B: 100}
28     flow:
29       src_ip: [{'tg__0': 'xe0'}]
30       dst_ip: [{'tg__0': 'xe1'}]
31       count: 1
32     traffic_type: 4
33     rfc2544:
34       allowed_drop_rate: 0.0001 - 0.0001
35     vnf__0:
36       nfvi_enable: True
37       vnf_config: {file: './vpe_config/vpe_config_2_ports',
38                    action_bulk_file: './vpe_config/action_bulk_512.txt',
39                    full_tm_profile_file: './vpe_config/full_tm_profile_10G.cfg'}
40   runner:
41     type: Iteration
42     iterations: 10
43     interval: 35
44 contexts:
45    - name: yardstick
46      type: Node
47      file: /etc/yardstick/nodes/standalone/trex_bm.yaml
48    - type: StandaloneOvsDpdk
49      name: yardstick
50      file: /etc/yardstick/nodes/standalone/pod_ovs.yaml
51      vm_deploy: True
52      ovs_properties:
53        version:
54          ovs: 2.7.0
55          dpdk: 16.11.1
56        pmd_threads: 2
57        ram:
58          socket_0: 2048
59          socket_1: 2048
60        queues: 4
61        vpath: "/usr/local"
62
63      flavor:
64        images: "/var/lib/libvirt/images/yardstick-nsb-image.img"
65        ram: 20480
66        extra_specs:
67          hw:cpu_sockets: 1
68          hw:cpu_cores: 7
69          hw:cpu_threads: 2
70        user: ""
71        password: ""
72      servers:
73        vnf__0:
74          network_ports:
75            mgmt:
76              cidr: '1.1.1.7/24'
77            xe0:
78              - uplink_0
79            xe1:
80              - downlink_0
81      networks:
82        uplink_0:
83          port_num: 0
84          phy_port: "0000:05:00.0"
85          vpci: "0000:00:07.0"
86          cidr: '152.16.100.10/24'
87          gateway_ip: '152.16.100.20'
88        downlink_0:
89          port_num: 1
90          phy_port: "0000:05:00.1"
91          vpci: "0000:00:08.0"
92          cidr: '152.16.40.10/24'
93          gateway_ip: '152.16.100.20'