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 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}}"
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}}
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}}
51 local_ip: "{{gen.ip.downlink[num] | ipaddr('address') }}"
52 netmask: "{{gen.ip.uplink[num] | ipaddr('netmask')}}"
53 local_mac: "{{gen.mac.downlink[num]}}"
59 ip: {{gen_1.ip.mgmt[0]| ipaddr('address')}}
61 password: {{gen_1.password}}
62 key_filename: {{gen_1.key_filename}}
64 {% for num in range(num_vnfs|int) %}
65 xe{{num * 2}}: # logical name from topology.yaml and vnfd.yaml
66 vpci: "{{gen_1.pcis.uplink[num]}}"
67 dpdk_port_num: {{num * 2}}
68 local_ip: "{{gen_1.ip.uplink[num] | ipaddr('address')}}"
69 netmask: "{{gen_1.ip.uplink[num] | ipaddr('netmask')}}"
70 local_mac: "{{gen_1.mac.uplink[num]}}"
71 xe{{(num * 2) + 1}}: # logical name from topology.yaml and vnfd.yaml
72 vpci: "{{gen_1.pcis.downlink[num]}}"
73 dpdk_port_num: {{(num * 2) + 1}}
74 local_ip: "{{gen_1.ip.downlink[num] | ipaddr('address') }}"
75 netmask: "{{gen_1.ip.uplink[num] | ipaddr('netmask')}}"
76 local_mac: "{{gen_1.mac.downlink[num]}}"