Unify vFW testcases TG and VNF names
[yardstick.git] / samples / vnf_samples / nsut / vfw / tc_heat_rfc2544_ipv4_1rule_1flow_trex_computeKPI.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
18 {% set file = file or '/etc/yardstick/pod.yaml' %}
19 scenarios:
20 - type: NSPerf
21   traffic_profile: ../../traffic_profiles/ipv4_throughput.yaml
22   topology: vfw-tg-topology.yaml
23   nodes:
24     tg__0: trafficgen_0.yardstick
25     vnf__0: vnf_0.yardstick
26     cpt__0: compute_0.compute_nodes
27   options:
28     framesize:
29       uplink: {{ framesize }}
30       downlink: {{ framesize }}
31     flow:
32       src_ip: [{'tg__0': 'xe0'}]
33       dst_ip: [{'tg__0': 'xe1'}]
34       count: 1
35     traffic_type: 4
36     rfc2544:
37       allowed_drop_rate: 0.0001 - 0.0001
38     vnf__0:
39       rules: acl_1rule.yaml
40       vnf_config: {lb_config: 'SW', lb_count: 1, worker_config: '1C/1T', worker_threads: 1}
41     cpt__0:
42       collectd:
43         interval: 2
44   runner:
45     type: Iteration
46     iterations: 10
47     interval: 35
48
49 contexts:
50   # put node context first, so we don't HEAT deploy if node has errors
51   - name: compute_nodes
52     type: Node
53     file: {{ file }}
54
55   - name: yardstick
56     image: yardstick-samplevnfs
57     flavor:
58       vcpus: 10
59       ram: 20480
60       disk: 6
61       extra_specs:
62         hw:cpu_sockets: 1
63         hw:cpu_cores: 10
64         hw:cpu_threads: 1
65     user: ubuntu
66     placement_groups:
67       pgrp1:
68         policy: "availability"
69     servers:
70       vnf_0:
71         floating_ip: true
72         placement: "pgrp1"
73       trafficgen_0:
74         floating_ip: true
75         placement: "pgrp1"
76     networks:
77       mgmt:
78         cidr: '10.0.1.0/24'
79       xe0:
80         cidr: '10.0.2.0/24'
81         gateway_ip: 'null'
82         port_security_enabled: False
83         enable_dhcp: 'false'
84       xe1:
85         cidr: '10.0.3.0/24'
86         gateway_ip: 'null'
87         port_security_enabled: False
88         enable_dhcp: 'false'