samples: Add generic L3 forwarder tests
[yardstick.git] / samples / vnf_samples / nsut / router / tc_heat_external_rfc2544_ipv4_128Kflows_5cores_2ports_1518B.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.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: {1518B: 100}
29       downlink: {1518B: 100}
30     flow:
31       src_ip:
32         - '10.0.2.26-10.0.2.105'
33       dst_ip:
34         - '10.0.3.26-10.0.3.105'
35       src_port:
36         - '1234-1238'
37       dst_port:
38         - '2001-2004'
39       count: 128000
40     traffic_type: 4
41     rfc2544:
42       allowed_drop_rate: 0.0001 - 0.1
43     tg__0:
44       queues_per_port: 7
45     vnf__0:
46       nfvi_enable: True
47   runner:
48     type: Iteration
49     iterations: 2
50     interval: 35
51 contexts:
52    - name: compute_nodes
53      type: Node
54      file: /etc/yardstick/nodes/compute.yaml
55
56    - name: baremetal
57      type: Node
58      file: /etc/yardstick/nodes/pod.yaml
59
60    - name: yardstick
61      image: vrouter_affinity_2c2p
62      flavor:
63       vcpus: 5
64       ram: 20480
65       disk: 10
66       extra_specs:
67         hw:cpu_sockets: 1
68         hw:cpu_cores: 5
69         hw:cpu_threads: 1
70         hw:mem_page_size: large
71         hw:cpu_policy: dedicated
72         hw:cpu_thread_policy: prefer
73         hw:numa_nodes: 1
74         hw:numa_mempolicy: preffered
75         hw:numa_cpus.0: 0,1,2,3,4
76         hw:numa_mem.0: 20480
77      user: "root"
78      password: "password"
79      placement_groups:
80        pgrp1:
81          policy: "availability"
82      servers:
83         vnf:
84           floating_ip: true
85           placement: "pgrp1"
86      networks:
87        mgmt:
88          cidr: '10.0.1.0/24'
89        xe0:
90          cidr: '10.0.2.0/24'
91          gateway_ip: 'null'
92          provider: true
93          physical_network: phystenant2
94          port_security_enabled: False 
95          enable_dhcp: 'false'
96        xe1:
97          cidr: '10.0.3.0/24'
98          gateway_ip: 'null'
99          provider: true
100          physical_network: phystenant3
101          port_security_enabled: False
102          enable_dhcp: 'false'