This repository has been archived by the owner on Jul 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhosts
97 lines (78 loc) · 1.7 KB
/
hosts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
[all:children]
fabric
spine
leaf
########################
## Fabric devices ##
########################
[fabric]
fabric-01 junos_host=0.0.0.0 loopback_ip=100.0.0.1
fabric-02 junos_host=0.0.0.0 loopback_ip=100.0.0.2
#######################
## Spines devices ##
#######################
[spine:children]
spine-mx
spine-qfx
[spine-qfx]
qfx10002-01 junos_host=0.0.0.0 loopback_ip=100.0.0.11 dev_id=2
qfx10002-02 junos_host=0.0.0.0 loopback_ip=100.0.0.12 dev_id=3
[spine-mx]
mx480-01 junos_host=0.0.0.0 loopback_ip=100.0.0.13 dev_id=4
mx480-02 junos_host=0.0.0.0 loopback_ip=100.0.0.14 dev_id=5
#######################
## leaf devices ##
#######################
[leaf:children]
leaf-qfx-l2
leaf-qfx-l3
[leaf-qfx-l2]
qfx5100-01 junos_host=0.0.0.0 loopback_ip=100.0.0.21
qfx5100-02 junos_host=0.0.0.0 loopback_ip=100.0.0.22
qfx5100-03 junos_host=0.0.0.0 loopback_ip=100.0.0.23
qfx5100-04 junos_host=0.0.0.0 loopback_ip=100.0.0.24
[leaf-qfx-l3]
# nothing
###########################
## Group by Location ##
###########################
[pod1]
qfx10002-01
qfx10002-02
qfx5100-01
qfx5100-02
[pod2]
mx480-01
mx480-02
qfx5100-03
qfx5100-04
#######################
## Group by type ##
#######################
[qfx10000]
qfx10002-01
qfx10002-02
[qfx5000]
qfx5100-01
qfx5100-02
qfx5100-03
qfx5100-04
fabric-01
fabric-02
[mx]
mx480-01
mx480-02
###################################
### Define variables per groups ###
###################################
[all:vars]
ansible_ssh_user=root
ansible_ssh_pass=<device password>
mgmt_sub_mask=<subnet mask>
netconf_port=830
[qfx10000:vars]
mgmt_port=em0
[qfx5000:vars]
mgmt_port=em0
[mx:vars]
mgmt_port=fxp0