ef8b22eab1ded1eba035007d6f8258b2027fcdf4
[csit.git] / resources / tools / testbed-setup / ansible / templates / topology_azure.j2
1 ---
2 metadata:
3   version: 0.1
4   schema:
5     - resources/topology_schemas/3_node_topology.sch.yaml
6     - resources/topology_schemas/topology.sch.yaml
7   tags: [hw, 3-node]
8
9 nodes:
10   TG:
11     type: TG
12     subtype: TREX
13     host: "{{ ansible_default_ipv4.address }}"
14     arch: x86_64
15     port: 22
16     username: testuser
17     password: Csit1234
18     interfaces:
19       port1:
20         # tg_instance/p1 - 40GE port1 on Mellanox NIC.
21         mac_address: {{ tg_if1_mac }}
22         pci_address: "0002:00:02.0"
23         link: link1
24         model: azure-mlx-40g
25       port2:
26         # tg_instance/p2 - 40GE port2 on Mellanox NIC.
27         mac_address: {{ tg_if2_mac }}
28         pci_address: "0003:00:02.0"
29         link: link2
30         model: azure-mlx-40g
31   DUT1:
32     type: DUT
33     host: "{{ ansible_default_ipv4.address }}"
34     arch: x86_64
35     port: 22
36     username: testuser
37     password: Csit1234
38     uio_driver: vfio-pci
39     honeycomb:
40       user: admin
41       passwd: admin
42       port: 8183
43       netconf_port: 2831
44     interfaces:
45       port1:
46         # dut1_instance/p1 - 40GE port1 on Mellanox NIC.
47         mac_address: {{ dut1_if1_mac }}
48         pci_address: "0002:00:02.0"
49         link: link1
50         model: azure-mlx-40g
51       port2:
52         # dut2_instance/p1 - 40GE port2 on Mellanox NIC.
53         mac_address: {{ dut1_if2_mac }}
54         pci_address: "0002:00:03.0"
55         link: link21
56         model: azure-mlx-40g
57   DUT2:
58     type: DUT
59     host: "{{ ansible_default_ipv4.address }}"
60     arch: x86_64
61     port: 22
62     username: testuser
63     password: Csit1234
64     uio_driver: vfio-pci
65     honeycomb:
66       user: admin
67       passwd: admin
68       port: 8183
69       netconf_port: 2831
70     interfaces:
71       port1:
72         # dut1_instance/p1 - 40GE port1 on Mellanox NIC.
73         mac_address: {{ dut2_if1_mac }}
74         pci_address: "0002:00:02.0"
75         link: link21
76         model: azure-mlx-40g
77       port2:
78         # dut2_instance/p1 - 40GE port2 on Mellanox NIC.
79         mac_address: {{ dut2_if2_mac }}
80         pci_address: "0003:00:02.0"
81         link: link2
82         model: azure-mlx-40g