Adding 2 node ixia generic scale-out test case generation
[yardstick.git] / etc / yardstick / nodes / standalone / ixia_template.yaml
1 ##############################################################################
2 # Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
3 #
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9 ---
10 # Sample config file about the POD information, including the
11 # name/IP/user/ssh key of Bare Metal and Controllers/Computes
12 #
13 # The options of this config file include:
14 # name: the name of this node
15 # role: node's role, support role: Master/Controller/Comupte/BareMetal
16 # ip: the node's IP address
17 # user: the username for login
18 # key_filename:the path of the uplink key file for login
19
20
21 nodes:
22 -
23     name: tg__0
24     role: IxNet
25     ip: {{gen.ip.mgmt[0]| ipaddr('address')}}
26     user: {{gen.user}}
27     password: {{gen.password}}
28     key_filename: {{gen.key_filename}}
29     tg_config:
30       ixchassis: "{{gen.tg_config.ixchassis}}" #ixia chassis ip
31       tcl_port: "{{gen.tg_config.tcl_port}}" # tcl server port
32       lib_path: "{{gen.tg_config.lib_path}}"
33       root_dir: "{{gen.tg_config.root_dir}}"
34       py_bin_path: "{{gen.tg_config.py_bin_path}}"
35       py_lib_path: "{{gen.tg_config.py_lib_path}}"
36       dut_result_dir: "{{gen.tg_config.dut_result_dir}}"
37       version: "{{gen.tg_config.version}}"
38     interfaces:
39 {% for num in range(num_vnfs|int) %}
40        xe{{num * 2}}:  # logical name from topology.yaml and vnfd.yaml
41            vpci:      "{{gen.pcis.uplink[num]}}"
42            dpdk_port_num: {{num * 2}}
43            driver: none
44            local_ip: "{{gen.ip.uplink[num] | ipaddr('address')}}"
45            netmask: "{{gen.ip.uplink[num] | ipaddr('netmask')}}"
46            local_mac:   "{{gen.mac.uplink[num]}}"
47        xe{{(num * 2) + 1}}:  # logical name from topology.yaml and vnfd.yaml
48            vpci:      "{{gen.pcis.downlink[num]}}"
49            dpdk_port_num: {{(num * 2) + 1}}
50            driver: none
51            local_ip: "{{gen.ip.downlink[num] | ipaddr('address') }}"
52            netmask: "{{gen.ip.uplink[num] | ipaddr('netmask')}}"
53            local_mac:   "{{gen.mac.downlink[num]}}"
54 {% endfor %}