Migrate Trex TG to use new NSPerf-RFC2544 scenario
[yardstick.git] / samples / vnf_samples / nsut / vfw / tc_heat_sriov_external_rfc2544_ipv4_1rule_1flow_trex.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 {% set framesize = framesize or "{64B: 100}" %}
15 ---
16 schema: yardstick:task:0.1
17 scenarios:
18 - type: NSPerf
19   traffic_profile: ../../traffic_profiles/ipv4_throughput.yaml
20   topology: vfw-tg-topology.yaml
21   nodes:
22     tg__0: trafficgen_0.baremetal
23     vnf__0: vnf_0.yardstick
24   options:
25     framesize:
26       uplink: {{ framesize }}
27       downlink: {{ framesize }}
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       rules: acl_1rule.yaml
37       vnf_config: {lb_config: 'SW', lb_count: 1, worker_config: '1C/1T', worker_threads: 1}
38   runner:
39     type: Iteration
40     iterations: 10
41     interval: 35
42 contexts:
43   # put node context first, so we don't HEAT deploy if node has errors
44   - name: baremetal
45     type: Node
46     file: trex-baremetal.yml
47   - name: yardstick
48     image: yardstick-samplevnfs
49     flavor:
50       vcpus: 10
51       ram: 20480
52       disk: 6
53       extra_specs:
54         hw:cpu_sockets: 1
55         hw:cpu_cores: 10
56         hw:cpu_threads: 1
57     user: ubuntu
58     placement_groups:
59       pgrp1:
60         policy: "availability"
61     servers:
62       vnf_0:
63         floating_ip: true
64         placement: "pgrp1"
65         network_ports:
66           mgmt:
67             - mgmt
68           uplink_0:
69             - xe0
70           downlink_0:
71             - xe1
72     networks:
73       mgmt:
74         cidr: '10.0.1.0/24'
75       uplink_0:
76         cidr: '10.0.2.0/24'
77         gateway_ip: 'null'
78         provider: "sriov"
79         physical_network: physnet1
80         port_security_enabled: False
81         enable_dhcp: 'false'
82       downlink_0:
83         cidr: '10.0.3.0/24'
84         gateway_ip: 'null'
85         provider: "sriov"
86         physical_network: physnet2
87         port_security_enabled: False
88         enable_dhcp: 'false'