Merge "[NSB] Adds support for running "black box" test cases for VNFs"
[yardstick.git] / samples / vnf_samples / nsut / prox / tc_prox_heat_context_bng-4.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
18 scenarios:
19 -
20   type: NSPerf
21   traffic_profile: ../../traffic_profiles/prox_bng.yaml
22   topology: prox-tg-topology-4.yaml
23
24   nodes:
25     tg__0: tg_0.yardstick
26     vnf__0: vnf_0.yardstick
27
28   options:
29
30     interface_speed_gbps: 10
31
32     vnf__0:
33       collectd:
34         interval: 1
35       prox_path: /opt/nsb_bin/prox
36       prox_config: "configs/handle_bng-4.cfg"
37       prox_args:
38         "-t": ""
39       prox_files:
40         "configs/gre_table.lua" : ""
41         "configs/ipv4_bng.lua" : ""
42       prox_generate_parameter: True
43
44     tg__0:
45       collectd:
46         interval: 1
47       prox_path: /opt/nsb_bin/prox
48       prox_config: "configs/gen_bng-4.cfg"
49       prox_args:
50         "-e": ""
51         "-t": ""
52
53   runner:
54     type: Duration
55     # we kill after duration, independent of test duration, so set this high
56     duration: 1600
57
58 context:
59   name: yardstick
60   image: yardstick-samplevnfs
61   user: ubuntu
62   flavor:
63     vcpus: 18
64     ram: 20480
65     disk: 6
66     extra_specs:
67       hw:cpu_sockets: 1
68       hw:cpu_cores: 18
69       hw:cpu_threads: 1
70
71   placement_groups:
72     pgrp1:
73       policy: "availability"
74
75   servers:
76     vnf_0:
77       floating_ip: true
78       placement: "pgrp1"
79     tg_0:
80       floating_ip: true
81       placement: "pgrp1"
82
83   networks:
84     mgmt:
85       cidr: '10.0.1.0/24'
86     uplink_0:
87       cidr: '10.0.2.0/24'
88       gateway_ip: 'null'
89       port_security_enabled: False
90       enable_dhcp: 'false'
91     downlink_0:
92       cidr: '10.0.3.0/24'
93       gateway_ip: 'null'
94       port_security_enabled: False
95       enable_dhcp: 'false'
96     uplink_1:
97       cidr: '10.0.4.0/24'
98       gateway_ip: 'null'
99       port_security_enabled: False
100       enable_dhcp: 'false'
101     downlink_1:
102       cidr: '10.0.5.0/24'
103       gateway_ip: 'null'
104       port_security_enabled: False
105       enable_dhcp: 'false'