-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathv19.2-day0.example
278 lines (259 loc) · 5.2 KB
/
v19.2-day0.example
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
# vsphere_user = ""
# vsphere_password = ""
# vsphere_server = ""
datacenter = "my-datacenter"
cluster = "my-cluster"
datastore = "my-datastore"
folder = "my-sdwan"
iso_datastore = "my-datastore"
iso_path = "cloud-init"
vmanage_template = "viptela-manage-19.2.4"
vbond_template = "viptela-edge-19.2.4"
vsmart_template = "viptela-smart-19.2.4"
vedge_template = "viptela-edge-19.2.4"
cedge_template = "csr1000v-16.12.02r"
vmanage_device_list = {
"vmanage1" = {
networks = ["my-vmnetwork","my-vmnetwork","my-vmnetwork"]
day0 = <<EOF
Content-Type: multipart/mixed; boundary="==BOUNDARY=="
MIME-Version: 1.0
--==BOUNDARY==
Content-Type: text/cloud-config; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="cloud-config.txt"
#cloud-config
vinitparam:
- format-partition : 1
--==BOUNDARY==
Content-Type: text/cloud-boothook; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="init-config.txt"
#cloud-boothook
!
system
host-name vmanage1
aaa
user admin
password cisco
!
vpn 0
ip route 0.0.0.0/0 192.168.1.1
interface eth1
ip address 192.168.1.51/22
tunnel-interface
allow-service all
!
no shutdown
!
!
vpn 512
interface eth0
ip dhcp-client
shutdown
!
!
--==BOUNDARY==
EOF
}
}
vsmart_device_list = {
"vsmart1" = {
networks = ["my-vmnetwork","my-vmnetwork"]
day0 = <<EOF
Content-Type: multipart/mixed; boundary="==BOUNDARY=="
MIME-Version: 1.0
--==BOUNDARY==
Content-Type: text/cloud-boothook; charset="us-ascii"
#cloud-boothook
!
system
host-name vsmart1
aaa
user admin
password cisco
!
vpn 0
ip route 0.0.0.0/0 192.168.1.1
interface eth1
ip address 192.168.1.52/22
tunnel-interface
allow-service all
!
no shutdown
!
!
vpn 512
interface eth0
ip dhcp-client
shutdown
!
!
--==BOUNDARY==
EOF
}
}
vbond_device_list = {
"vbond1" = {
networks = ["my-vmnetwork","my-vmnetwork"]
day0 = <<EOF
Content-Type: multipart/mixed; boundary="==BOUNDARY=="
MIME-Version: 1.0
--==BOUNDARY==
Content-Type: text/cloud-boothook; charset="us-ascii"
#cloud-boothook
!
viptela-system:system
host-name vbond1
aaa
user admin
password cisco
!
vpn 0
ip route 0.0.0.0/0 192.168.1.1
interface ge0/0
ip address 192.168.1.53/22
tunnel-interface
allow-service all
!
no shutdown
!
!
vpn 512
interface eth0
ip dhcp-client
shutdown
!
!
--==BOUNDARY==
EOF
}
}
vedge_device_list = {
"vedge1" = {
networks = ["my-vmnetwork","my-vmnetwork","my-vmnetwork", "my-vmnetwork"]
day0 = <<EOF
Content-Type: multipart/mixed; boundary="==BOUNDARY=="
MIME-Version: 1.0
--==BOUNDARY==
Content-Type: text/cloud-boothook; charset="us-ascii"
#cloud-boothook
!
viptela-system:system
host-name vedge1
aaa
user admin
password cisco
!
vpn 0
interface ge0/0
ip dhcp-client
tunnel-interface
allow-service all
!
no shutdown
!
!
vpn 512
interface eth0
ip dhcp-client
shutdown
!
!
--==BOUNDARY==
EOF
}
}
cedge_device_list = {
"cedge1" = {
networks = ["my-vmnetwork", "my-vmnetwork"]
day0 = <<EOF
Content-Type: multipart/mixed; boundary="===============3067523750048488884=="
MIME-Version: 1.0
--===============3067523750048488884==
Content-Type: text/cloud-config; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="cloud-config"
#cloud-config
vinitparam:
- rcc : true
--===============3067523750048488884==
Content-Type: text/cloud-boothook; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="config-CSR-82DEC3C6-3A28-B866-6F4A-40BEA274CA00.txt"
#cloud-boothook
viptela-system:system
personality vedge
device-model vedge-CSR-1000v
host-name cedge1
logging
disk
enable
!
!
!
hostname cedge1
username admin privilege 15 secret 0 cisco
!
logging persistent immediate filesize 8192 size 1000000
aaa authentication login default local
aaa authorization exec default local none
interface GigabitEthernet1
no shutdown
arp timeout 1200
ip address dhcp client-id GigabitEthernet1
ip redirects
ip dhcp client default-router distance 1
ip mtu 1500
mtu 1500
negotiation auto
exit
interface Tunnel1
no shutdown
ip unnumbered GigabitEthernet1
no ip redirects
ipv6 unnumbered GigabitEthernet1
no ipv6 redirects
tunnel source GigabitEthernet1
tunnel mode sdwan
exit
sdwan
interface GigabitEthernet1
tunnel-interface
encapsulation ipsec weight 1
no border
color public-internet
no last-resort-circuit
no low-bandwidth-link
control-connections
no vbond-as-stun-server
vmanage-connection-preference 5
port-hop
carrier default
nat-refresh-interval 5
hello-interval 1000
hello-tolerance 12
no allow-service all
no allow-service bgp
allow-service dhcp
allow-service dns
allow-service icmp
allow-service sshd
allow-service netconf
no allow-service ntp
no allow-service ospf
no allow-service stun
no allow-service snmp
exit
exit
!
!
!
--===============3067523750048488884==
EOF
}
}