Cleanup of ixia_profile attribute for IxNetwork TG
[yardstick.git] / samples / vnf_samples / nsut / vfw / tc_heat_rfc2544_ipv4_1rule_1flow_64B_trex_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 {% set mem = mem or 20480 %}
15 {% set vcpus = vcpus or 10 %}
16 {% set vports = vports or 2 %}
17 ---
18 schema: yardstick:task:0.1
19 scenarios:
20 - type: NSPerf
21   traffic_profile: ../../traffic_profiles/ipv4_throughput-scale-up.yaml
22   extra_args:
23     vports: {{ vports }}
24   topology: vfw-tg-topology-scale-up.yaml
25   nodes:
26     tg__0: tg_0.yardstick
27     vnf__0: vnf_0.yardstick
28   options:
29     framesize:
30       uplink: {64B: 100}
31       downlink: {64B: 100}
32     flow:
33       src_ip: [
34 {% for vport in range(0,vports,2|int) %}
35        {'tg__0': 'xe{{vport}}'},
36 {% endfor %}  ]
37       dst_ip: [
38 {% for vport in range(1,vports,2|int) %}
39       {'tg__0': 'xe{{vport}}'},
40 {% endfor %}  ]
41       count: 1
42     traffic_type: 4
43     rfc2544:
44       allowed_drop_rate: 0.0001 - 0.0001
45     vnf__0:
46       rules: acl_1rule.yaml
47       vnf_config: {lb_config: 'SW', file: vfw_vnf_pipeline_cores_{{vcpus}}_ports_{{vports}}_lb_1_sw.conf }
48   runner:
49     type: Iteration
50     iterations: 10
51     interval: 35
52 context:
53   # put node context first, so we don't HEAT deploy if node has errors
54   name: yardstick
55   image: yardstick-samplevnfs
56   flavor:
57     vcpus: {{ vcpus }}
58     ram: {{ mem }}
59     disk: 6
60     extra_specs:
61       hw:cpu_sockets: 1
62       hw:cpu_cores: {{ vcpus }}
63       hw:cpu_threads: 1
64   user: ubuntu
65   placement_groups:
66     pgrp1:
67       policy: "availability"
68   servers:
69     tg_0:
70       floating_ip: true
71       placement: "pgrp1"
72     vnf_0:
73       floating_ip: true
74       placement: "pgrp1"
75   networks:
76     mgmt:
77       cidr: '10.0.1.0/24'
78 {% for vport in range(1,vports,2|int) %}
79     uplink_{{loop.index0}}:
80       cidr: '10.1.{{vport}}.0/24'
81       gateway_ip: 'null'
82       port_security_enabled: False
83       enable_dhcp: 'false'
84     downlink_{{loop.index0}}:
85       cidr: '10.1.{{vport+1}}.0/24'
86       gateway_ip: 'null'
87       port_security_enabled: False
88       enable_dhcp: 'false'
89 {% endfor %}