fix invalid chracters in ansible scripts
[yardstick.git] / samples / vnf_samples / nsut / cgnapt / tc_ovs_cgnapt_udp_ixia_correlated_scale_out_template.yaml
1 # Copyright (c) 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-ixia-{{ num_vnfs }}.yaml
20     topology: cgnapt-tg-topology-ixia-correlated-scale-out-{{ num_vnfs }}.yaml
21     nodes:
22       tg__0: tg__0.yardstick
23       tg__1: tg__1.yardstick
24 {% for vnf_num in range(num_vnfs|int) %}
25       vnf__{{ vnf_num }}: vnf_{{ vnf_num }}.yardstick
26 {% endfor %}
27     options:
28       framesize:
29         uplink: {{ flow.pkt_size.uplink }}
30         downlink: {{ flow.pkt_size.downlink }}
31       flow:
32         src_ip:
33 {% for vnf_num in range(num_vnfs|int) %}
34           - {'tg__0': 'xe{{ vnf_num }}'}
35 {% endfor %}
36         dst_ip:
37 {% for vnf_num in range(num_vnfs|int) %}
38           - {'tg__1': 'xe{{ vnf_num }}'}
39 {% endfor %}
40         public_ip: ["152.40.40.10"]
41         count: {{ flow.count }}
42       traffic_type: {{ flow.traffic_type }}
43       rfc2544:
44         allowed_drop_rate: {{ flow.rfc2544.allowed_drop_rate }}
45 {% for vnf_num in range(num_vnfs|int) %}
46       vnf__{{ vnf_num }}:
47         rules: acl_1rule.yaml
48         vnf_config: {lb_config: '{{flow.vnf_config.lb_config}}', lb_count: {{flow.vnf_config.lb_count}} , worker_config: '{{flow.vnf_config.worker_config}}', worker_threads: {{flow.vnf_config.worker_threads}}}
49 {% endfor %}
50     ixia_profile: ../../traffic_profiles/ixia_ipv4_profile_{{num_vnfs}}_port.ixncfg
51     runner:
52       type: Iteration
53       iterations: 10
54       interval: 35
55 contexts:
56    - name: yardstick
57      type: Node
58      file: /etc/yardstick/nodes/ixia_correlated_{{num_vnfs}}.yaml
59    - type: StandaloneOvsDpdk
60      name: yardstick
61      file: /etc/yardstick/nodes/ovs_host.yaml
62      vm_deploy: True
63      ovs_properties:
64        version:
65          ovs: {{ ovs_properties.ovs  }}
66          dpdk: {{ ovs_properties.dpdk }}
67        vpath: "{{ ovs_properties.vpath }}"
68        queues: {{ovs_properties.queues}}
69        pmd_threads: {{ovs_properties.pmd_threads}}
70        ram:
71          socket_0: {{ovs_properties.ram.socket_0}}
72          socket_1: {{ovs_properties.ram.socket_1}}
73      flavor:
74        images: {{ flavor.image }}
75        ram: {{ flavor.ram }}
76        extra_specs:
77          hw:cpu_sockets: {{ flavor.extra_specs.cpu_sockets }}
78          hw:cpu_cores: {{ flavor.extra_specs.cpu_cores }}
79          hw:cpu_threads: {{ flavor.extra_specs.cpu_threads }}
80        user: {{ vnf.user }}
81        password: {{ vnf.password }}
82      servers:
83 {% for vnf_num in range(num_vnfs|int) %}
84        vnf_{{ vnf_num }}:
85          network_ports:
86            mgmt:
87              cidr: '{{vnf.ip.mgmt[vnf_num]}}'
88            xe0:
89              - uplink_{{ vnf_num }}
90            xe1:
91              - downlink_{{ vnf_num }}
92 {% endfor %}
93      networks:
94 {% for vnf_num in range(num_vnfs|int) %}
95        uplink_{{ vnf_num }}:
96          port_num: {{ vnf_num * 2 }}
97          phy_port: "{{vnf.pcis.uplink[vnf_num]}}"
98          vpci: "0000:00:{{10 + (99 | random)}}.0"
99          cidr: '{{vnf.ip.uplink[vnf_num]}}'
100          gateway_ip: '{{gen.ip.uplink[vnf_num]}}'
101        downlink_{{ vnf_num }}:
102          port_num: {{ (vnf_num * 2) + 1}}
103          phy_port: "{{vnf.pcis.downlink[vnf_num]}}"
104          vpci: "0000:00:{{10 + (9 | random)}}.0"
105          cidr: '{{vnf.ip.downlink[vnf_num]}}'
106          gateway_ip: '{{gen.ip.downlink[vnf_num]}}'
107 {% endfor %}