Migrate Trex TG to use new NSPerf-RFC2544 scenario
[yardstick.git] / samples / vnf_samples / nsut / vfw / tc_heat_rfc2544_ipv4_trex.yaml
1 # Copyright (c) 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 {% set framesize = framesize or "{64B: 100}" %}
16 ---
17 schema: yardstick:task:0.1
18 scenarios:
19 - type: NSPerf-RFC2544
20   traffic_profile: ../../traffic_profiles/ipv4_throughput.yaml
21   topology: vfw-tg-topology.yaml
22   nodes:
23     tg__0: trafficgen_0.yardstick
24     vnf__0: vnf_0.yardstick
25   options:
26     framesize:
27       uplink: {{ framesize }}
28       downlink: {{ framesize }}
29     flow:
30       src_ip: [{'tg__0': 'xe0'}]
31       dst_ip: [{'tg__0': 'xe1'}]
32       count: 1
33     traffic_type: 4
34     rfc2544:
35       allowed_drop_rate: 0.0001 - 0.0001
36     vnf__0:
37       rules: acl_1rule.yaml
38       vnf_config: {lb_config: 'SW', lb_count: 1, worker_config: '1C/1T', worker_threads: 1}
39   runner:
40     type: Iteration
41     iterations: 1
42     interval: 5
43 context:
44   # put node context first, so we don't HEAT deploy if node has errors
45   name: yardstick
46   image: yardstick-samplevnfs
47   flavor:
48     vcpus: 10
49     ram: 20480
50     disk: 6
51     extra_specs:
52       hw:cpu_sockets: 1
53       hw:cpu_cores: 10
54       hw:cpu_threads: 1
55   user: ubuntu
56   placement_groups:
57     pgrp1:
58       policy: "availability"
59   servers:
60     vnf_0:
61       floating_ip: true
62       placement: "pgrp1"
63     trafficgen_0:
64       floating_ip: true
65       placement: "pgrp1"
66   networks:
67     mgmt:
68       cidr: '10.0.1.0/24'
69     xe0:
70       cidr: '10.0.2.0/24'
71       gateway_ip: 'null'
72       port_security_enabled: False
73       enable_dhcp: 'false'
74     xe1:
75       cidr: '10.0.3.0/24'
76       gateway_ip: 'null'
77       port_security_enabled: False
78       enable_dhcp: 'false'