samples: Add generic L3 forwarder tests
[yardstick.git] / samples / vnf_samples / nsut / router / tc_heat_external_rfc2544_ipv4_128Kflows_9cores_4ports_128B.yaml
1 # Copyright (c) 2016-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 schema: yardstick:task:0.1
17 scenarios:
18 - type: NSPerf
19   traffic_profile: ../../traffic_profiles/ipv4_throughput.yaml
20   topology: router-tg-topology-4port.yaml
21   nodes:
22     tg__0: trafficgen_1.baremetal
23     vnf__0: vnf.yardstick
24 # Required for enabling NFVi collection
25     cpt__0: compute_0.compute_nodes
26   options:
27     framesize:
28       uplink: {128B: 100}
29       downlink: {128B: 100}
30     flow:
31       src_ip:
32         - '10.0.2.26-10.0.2.105'
33         - '10.0.4.26-10.0.4.105'
34       dst_ip:
35         - '10.0.3.26-10.0.3.105'
36         - '10.0.5.26-10.0.5.105'
37       src_port:
38         - '1234-1238'
39       dst_port:
40         - '2001-2004'
41       count: 128000
42     traffic_type: 4
43     rfc2544:
44       allowed_drop_rate: 0.0001 - 0.1
45     tg__0:
46       queues_per_port: 7
47     vnf__0:
48       nfvi_enable: True
49   runner:
50     type: Iteration
51     iterations: 10
52     interval: 35
53 contexts:
54    - name: compute_nodes
55      type: Node
56      file: /etc/yardstick/nodes/compute.yaml
57
58    - name: baremetal
59      type: Node
60      file: /etc/yardstick/nodes/pod_4p.yaml
61
62    - name: yardstick
63      image: vrouter_affinity_2c4p
64      flavor:
65       vcpus: 9
66       ram: 8192
67       disk: 10
68       extra_specs:
69         hw:cpu_sockets: 1
70         hw:cpu_cores: 9
71         hw:cpu_threads: 1
72         hw:mem_page_size: large
73         hw:cpu_policy: dedicated
74         hw:cpu_thread_policy: prefer
75         hw:numa_nodes: 2
76         hw:numa_mempolicy: preffered
77         hw:numa_cpus.0: 0,1,2,3,4
78         hw:numa_cpus.1: 5,6,7,8
79         hw:numa_mem.0: 4096
80         hw:numa_mem.1: 4096
81      user: "root"
82      password: "password"
83      placement_groups:
84        pgrp1:
85          policy: "availability"
86      servers:
87         vnf:
88           floating_ip: true
89           placement: "pgrp1"
90      networks:
91        mgmt:
92          cidr: '10.0.1.0/24'
93        xe0:
94          cidr: '10.0.2.0/24'
95          gateway_ip: 'null'
96          provider: true
97          physical_network: phystenant2
98          port_security_enabled: False 
99          enable_dhcp: 'false'
100        xe1:
101          cidr: '10.0.3.0/24'
102          gateway_ip: 'null'
103          provider: true
104          physical_network: phystenant3
105          port_security_enabled: False
106          enable_dhcp: 'false'
107        xe2:
108          cidr: '10.0.4.0/24'
109          gateway_ip: 'null'
110          provider: true
111          physical_network: phystenant4
112          port_security_enabled: False
113          enable_dhcp: 'false'
114        xe3:
115          cidr: '10.0.5.0/24'
116          gateway_ip: 'null'
117          provider: true
118          physical_network: phystenant5
119          port_security_enabled: False
120          enable_dhcp: 'false'