Merge "Add testsuite "os-odl-ovs-noha""
[yardstick.git] / samples / vnf_samples / nsut / prox / tc_prox_heat_context_acl-scale-up.yaml
1 # Copyright (c) 2016-2018 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 vports = vports or 2 %}
16 {% set mem = mem or 20480 %}
17 {% set vcpus = vcpus or 10 %}
18 {% set disk = disk or 6 %}
19 {% set duration = duration or 300 %}
20 ---
21 schema: "yardstick:task:0.1"
22
23 scenarios:
24 -
25   type: NSPerf
26   #
27   # In case where we know that all the packets generated by the generator
28   # will bw received. Then use prox_binsearch.
29   #
30   # In the case where some or all the packets generated by the generator may
31   # not be received. Please use prox_heat_acl .. (This generates packets at
32   # a specific rate and does not change rate.
33   #
34   traffic_profile: ../../traffic_profiles/prox_heat_acl.yaml
35   extra_args:
36     vports: {{ vports }}
37   topology: prox-tg-topology-scale-up.yaml
38
39   nodes:
40     tg__0: tg_0.yardstick
41     vnf__0: vnf_0.yardstick
42
43   options:
44     vnf__0:
45       prox_path: /opt/nsb_bin/prox
46       prox_config: "configs/handle_acl-{{ vports }}.cfg"
47       prox_args:
48         "-t": ""
49       prox_files:
50         "configs/acl_rules-2.lua" : ""
51
52     tg__0:
53       prox_path: /opt/nsb_bin/prox
54       prox_config: "configs/gen_acl-{{ vports }}.cfg"
55       prox_args:
56         "-e": ""
57         "-t": ""
58
59   runner:
60     type: Duration
61     # we kill after duration, independent of test duration, so set this high
62     duration: {{ duration }}
63
64 context:
65   name: yardstick
66   image: yardstick-samplevnfs
67   user: ubuntu
68   flavor:
69     vcpus: {{ vcpus }}
70     ram: {{ mem }}
71     disk: {{ disk }}
72     extra_specs:
73       hw:cpu_sockets: 1
74       hw:cpu_cores: {{ vcpus }}
75       hw:cpu_threads: 1
76   placement_groups:
77     pgrp1:
78       policy: "availability"
79
80   servers:
81     vnf_0:
82       floating_ip: true
83       placement: "pgrp1"
84     tg_0:
85       floating_ip: true
86       placement: "pgrp1"
87
88   networks:
89     mgmt:
90       cidr: '10.0.1.0/24'
91 {% for vport in range(1,vports,2|int) %}
92     uplink_{{ loop.index0 }}:
93       cidr: '10.0.{{ vport+1 }}.0/24'
94       gateway_ip: 'null'
95       port_security_enabled: False
96       enable_dhcp: 'false'
97
98     downlink_{{ loop.index0 }}:
99       cidr: '10.0.{{ vport+2 }}.0/24'
100       gateway_ip: 'null'
101       port_security_enabled: False
102       enable_dhcp: 'false'
103 {% endfor %}
104