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