1 ##############################################################################
2 # Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
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 ##############################################################################
10 # Sample config file about the POD information, including the
11 # name/IP/user/ssh key of Bare Metal and Controllers/Computes
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
25 ip: {{gen.ip.mgmt[0]| ipaddr('address')}}
27 password: {{gen.password}}
28 key_filename: {{gen.key_filename}}
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 dut_result_dir: "{{gen.tg_config.dut_result_dir}}"
36 version: "{{gen.tg_config.version}}"
38 {% for num in range(num_vnfs|int) %}
39 xe{{num * 2}}: # logical name from topology.yaml and vnfd.yaml
40 vpci: "{{gen.pcis.uplink[num]}}"
41 dpdk_port_num: {{num * 2}}
43 local_ip: "{{gen.ip.uplink[num] | ipaddr('address')}}"
44 netmask: "{{gen.ip.uplink[num] | ipaddr('netmask')}}"
45 local_mac: "{{gen.mac.uplink[num]}}"
46 xe{{(num * 2) + 1}}: # logical name from topology.yaml and vnfd.yaml
47 vpci: "{{gen.pcis.downlink[num]}}"
48 dpdk_port_num: {{(num * 2) + 1}}
50 local_ip: "{{gen.ip.downlink[num] | ipaddr('address') }}"
51 netmask: "{{gen.ip.uplink[num] | ipaddr('netmask')}}"
52 local_mac: "{{gen.mac.downlink[num]}}"
58 ip: {{gen_1.ip.mgmt[0]| ipaddr('address')}}
60 password: {{gen_1.password}}
61 key_filename: {{gen_1.key_filename}}
63 {% for num in range(num_vnfs|int) %}
64 xe{{num * 2}}: # logical name from topology.yaml and vnfd.yaml
65 vpci: "{{gen_1.pcis.uplink[num]}}"
66 dpdk_port_num: {{num * 2}}
67 local_ip: "{{gen_1.ip.uplink[num] | ipaddr('address')}}"
68 netmask: "{{gen_1.ip.uplink[num] | ipaddr('netmask')}}"
69 local_mac: "{{gen_1.mac.uplink[num]}}"
70 xe{{(num * 2) + 1}}: # logical name from topology.yaml and vnfd.yaml
71 vpci: "{{gen_1.pcis.downlink[num]}}"
72 dpdk_port_num: {{(num * 2) + 1}}
73 local_ip: "{{gen_1.ip.downlink[num] | ipaddr('address') }}"
74 netmask: "{{gen_1.ip.uplink[num] | ipaddr('netmask')}}"
75 local_mac: "{{gen_1.mac.downlink[num]}}"