Merge "Update NSB PROX devguide"
[yardstick.git] / samples / vnf_samples / nsut / acl / tc_heat_rfc2544_ipv4_1rule_1flow_64B_trex_scale_up.yaml
1 # Copyright (c) 2017 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
17 {% set mem = mem or 20480 %}
18 {% set vcpus = vcpus or 10 %}
19
20 schema: yardstick:task:0.1
21 scenarios:
22 - type: NSPerf
23   traffic_profile: ../../traffic_profiles/ipv4_throughput.yaml
24   topology: acl-tg-topology.yaml
25   nodes:
26     tg__0: tg_0.yardstick
27     vnf__0: vnf_0.yardstick
28   options:
29     framesize:
30       uplink: {64B: 100}
31       downlink: {64B: 100}
32     flow:
33       src_ip: [{'tg__0': 'xe0'}]
34       dst_ip: [{'tg__0': 'xe1'}]
35       count: 1
36     traffic_type: 4
37     rfc2544:
38       allowed_drop_rate: 0.0001 - 0.0001
39     vnf__0:
40       rules: acl_1rule.yaml
41       # with 1 worker_thread we need 5 or so extra cores
42       vnf_config: {lb_config: 'HW', lb_count: 1, worker_config: '1C/1T', worker_threads: {{ vcpus - 5 if vcpus - 5 > 1 else 1 }}}
43       nfvi_enable: True
44   runner:
45     type: Iteration
46     iterations: 10
47     interval: 35
48 context:
49   name: yardstick
50   image: yardstick-samplevnfs
51   flavor:
52     vcpus: {{ vcpus }}
53     ram: {{ mem }}
54     disk: 6
55     extra_specs:
56       hw:cpu_sockets: 1
57       hw:cpu_cores: {{ vcpus }}
58       hw:cpu_threads: 1
59   user: ubuntu
60   placement_groups:
61     pgrp1:
62       policy: "availability"
63   servers:
64     vnf_0:
65       floating_ip: true
66       placement: "pgrp1"
67       network_ports:
68         mgmt:
69           - mgmt
70         uplink_0:
71           - xe0
72         downlink_0:
73           - xe1
74     tg_0:
75       floating_ip: true
76       placement: "pgrp1"
77       network_ports:
78         mgmt:
79           - mgmt
80         uplink_0:
81           - xe0
82         downlink_0:
83           - xe1
84   networks:
85     mgmt:
86       cidr: '10.0.1.0/24'
87     uplink_0:
88       cidr: '10.1.0.0/24'
89       gateway_ip: 'null'
90       port_security_enabled: False
91       enable_dhcp: 'false'
92     downlink_0:
93       cidr: '10.1.1.0/24'
94       gateway_ip: 'null'
95       port_security_enabled: False
96       enable_dhcp: 'false'
97
98