forked from JNPRAutomate/ansible-junos-evpn-vxlan
-
Notifications
You must be signed in to change notification settings - Fork 2
/
hosts.ini
104 lines (84 loc) · 1.7 KB
/
hosts.ini
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
98
99
100
101
102
103
104
[all:children]
fabric
spine
leaf
########################
## Fabric devices ##
########################
[fabric]
fabric-01 ansible_ssh_host=0.0.0.0 id=1
fabric-02 ansible_ssh_host=0.0.0.0 id=2
#######################
## Spines devices ##
#######################
[spine:children]
spine-mx
spine-qfx
[spine-qfx]
spine-01 ansible_ssh_host=0.0.0.0 id=11
spine-02 ansible_ssh_host=0.0.0.0 id=12
[spine-mx]
spine-03 ansible_ssh_host=0.0.0.0 id=13
spine-04 ansible_ssh_host=0.0.0.0 id=14
#######################
## leaf devices ##
#######################
[leaf:children]
leaf-qfx-l2
leaf-qfx-l3
[leaf-qfx-l2]
leaf-01 ansible_ssh_host=0.0.0.0 id=21
leaf-02 ansible_ssh_host=0.0.0.0 id=22
leaf-03 ansible_ssh_host=0.0.0.0 id=23
leaf-04 ansible_ssh_host=0.0.0.0 id=24
[leaf-qfx-l3]
# nothing
###########################
## Group by Location ##
###########################
[pod1]
spine-01
spine-02
leaf-01
leaf-02
[pod2]
spine-03
spine-04
leaf-03
leaf-04
#######################
## Group by type ##
#######################
[qfx10000]
spine-01
spine-02
[qfx5000]
leaf-01
leaf-02
leaf-03
leaf-04
fabric-01
fabric-02
[mx]
spine-03
spine-04
###################################
### Define variables per groups ###
###################################
[all:vars]
ansible_ssh_user=root
ansible_ssh_pass=<device password>
mgmt_sub_mask=<subnet mask>
netconf_port=830
topology_file=sample-topology.yaml
loopback_ip="{{ underlay.networks.loopbacks | ipaddr(id) | ipaddr('address') }}"
underlay_asn_base=65000
underlay_as="{{ underlay_asn_base + id }}"
[spine:vars]
tenant_has_l3=true
[qfx10000:vars]
mgmt_port=em0
[qfx5000:vars]
mgmt_port=em0
[mx:vars]
mgmt_port=fxp0