-
Notifications
You must be signed in to change notification settings - Fork 17
/
v20.7-day0.example
370 lines (361 loc) · 9.61 KB
/
v20.7-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
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
# 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-20.7.1"
vbond_template = "viptela-edge-20.7.1"
vsmart_template = "viptela-smart-20.7.1"
vedge_template = "viptela-edge-20.7.1"
cedge_template = "csr1000v-16.12.02r"
vmanage_device_list = {
"vmanage1" = {
networks = ["my-vmnetwork","my-vmnetwork","my-vmnetwork"]
day0 = <<EOF
#cloud-config
fs_setup:
- device: "/dev/sdb"
partition: "none"
filesystem: "ext4"
mounts:
- [ sdb, /opt/data ]
write_files:
- path: /opt/web-app/etc/persona
owner: vmanage:vmanage-admin
permissions: '0644'
content: '{"persona":"COMPUTE_AND_DATA"}'
- path: /etc/default/personality
content: "vmanage\n"
- path: /etc/default/inited
content: "1\n"
- path: /etc/confd/init/zcloud.xml
content: |
<config xmlns="http://tail-f.com/ns/config/1.0">
<system xmlns="http://viptela.com/system">
<personality>vmanage</personality>
<host-name>vmanage1</host-name>
<aaa>
<user>
<name>admin</name>
<password>$6$329577c85ea66998$tTtlYqQIpfCGvqNZ2nICRWOSfyIV0/RO0ZWtFwpSJ0bBvlQoCowl6fO9SjzerDwmKYutIbPMAub7B4K/JG4c/0</password>
</user>
</aaa>
</system>
<vpn xmlns="http://viptela.com/vpn">
<vpn-instance>
<vpn-id>0</vpn-id>
<ip>
<route>
<prefix>0.0.0.0/0</prefix>
<next-hop>
<address>192.168.1.1</address>
</next-hop>
</route>
</ip>
<interface>
<if-name>eth0</if-name>
<ip>
<address>192.168.1.51/22</address>
</ip>
<tunnel-interface>
<allow-service>
<all>true</all>
</allow-service>
</tunnel-interface>
<shutdown>false</shutdown>
</interface>
</vpn-instance>
<vpn-instance>
<vpn-id>512</vpn-id>
<interface>
<if-name>eth1</if-name>
<ip>
<dhcp-client>true</dhcp-client>
</ip>
<shutdown>true</shutdown>
</interface>
</vpn-instance>
</vpn>
</config>
EOF
}
}
vsmart_device_list = {
"vsmart1" = {
networks = ["my-vmnetwork","my-vmnetwork"]
day0 = <<EOF
#cloud-config
write_files:
- path: /etc/default/personality
content: "vsmart\n"
- path: /etc/default/inited
content: "1\n"
- path: /etc/confd/init/zcloud.xml
content: |
<config xmlns="http://tail-f.com/ns/config/1.0">
<system xmlns="http://viptela.com/system">
<personality>vsmart</personality>
<host-name>vsmart1</host-name>
<aaa>
<user>
<name>admin</name>
<password>$6$329577c85ea66998$tTtlYqQIpfCGvqNZ2nICRWOSfyIV0/RO0ZWtFwpSJ0bBvlQoCowl6fO9SjzerDwmKYutIbPMAub7B4K/JG4c/0</password>
</user>
</aaa>
</system>
<vpn xmlns="http://viptela.com/vpn">
<vpn-instance>
<vpn-id>0</vpn-id>
<ip>
<route>
<prefix>0.0.0.0/0</prefix>
<next-hop>
<address>192.168.1.1</address>
</next-hop>
</route>
</ip>
<interface>
<if-name>eth0</if-name>
<ip>
<address>192.168.1.52/22</address>
</ip>
<tunnel-interface>
<allow-service>
<all>true</all>
</allow-service>
</tunnel-interface>
<shutdown>false</shutdown>
</interface>
</vpn-instance>
<vpn-instance>
<vpn-id>512</vpn-id>
<interface>
<if-name>eth1</if-name>
<ip>
<dhcp-client>true</dhcp-client>
</ip>
<shutdown>true</shutdown>
</interface>
</vpn-instance>
</vpn>
</config>
EOF
}
}
vbond_device_list = {
"vbond1" = {
networks = ["my-vmnetwork","my-vmnetwork"]
day0 = <<EOF
#cloud-config
write_files:
- path: /etc/default/personality
content: "vedge\n"
- path: /etc/default/inited
content: "1\n"
- path: /etc/confd/init/zcloud.xml
content: |
<config xmlns="http://tail-f.com/ns/config/1.0">
<system xmlns="http://viptela.com/system">
<personality>vedge</personality>
<host-name>vbond1</host-name>
<aaa>
<user>
<name>admin</name>
<password>$6$329577c85ea66998$tTtlYqQIpfCGvqNZ2nICRWOSfyIV0/RO0ZWtFwpSJ0bBvlQoCowl6fO9SjzerDwmKYutIbPMAub7B4K/JG4c/0</password>
</user>
</aaa>
</system>
<vpn xmlns="http://viptela.com/vpn">
<vpn-instance>
<vpn-id>0</vpn-id>
<ip>
<route>
<prefix>0.0.0.0/0</prefix>
<next-hop>
<address>192.168.1.1</address>
</next-hop>
</route>
</ip>
<interface>
<if-name>ge0/0</if-name>
<ip>
<address>192.168.1.53/22</address>
</ip>
<tunnel-interface>
<encapsulation>
<encap>ipsec</encap>
</encapsulation>
<allow-service>
<all>true</all>
</allow-service>
</tunnel-interface>
<shutdown>false</shutdown>
</interface>
</vpn-instance>
<vpn-instance>
<vpn-id>512</vpn-id>
<interface>
<if-name>eth0</if-name>
<ip>
<dhcp-client>true</dhcp-client>
</ip>
<shutdown>true</shutdown>
</interface>
</vpn-instance>
</vpn>
</config>
EOF
}
}
vedge_device_list = {
"vedge1" = {
networks = ["my-vmnetwork","my-vmnetwork","my-vmnetwork", "my-vmnetwork"]
day0 = <<EOF
#cloud-config
write_files:
- path: /etc/default/personality
content: "vedge\n"
- path: /etc/default/inited
content: "1\n"
- path: /etc/confd/init/zcloud.xml
content: |
<config xmlns="http://tail-f.com/ns/config/1.0">
<personality>vedge</personality>
<system xmlns="http://viptela.com/system">
<host-name>vedge1</host-name>
<aaa>
<user>
<name>admin</name>
<password>$6$329577c85ea66998$tTtlYqQIpfCGvqNZ2nICRWOSfyIV0/RO0ZWtFwpSJ0bBvlQoCowl6fO9SjzerDwmKYutIbPMAub7B4K/JG4c/0</password>
</user>
</aaa>
</system>
<vpn xmlns="http://viptela.com/vpn">
<vpn-instance>
<vpn-id>0</vpn-id>
<interface>
<if-name>ge0/0</if-name>
<ip>
<dhcp-client>true</dhcp-client>
</ip>
<tunnel-interface>
<encapsulation>
<encap>ipsec</encap>
</encapsulation>
<allow-service>
<all>true</all>
</allow-service>
</tunnel-interface>
<shutdown>false</shutdown>
</interface>
</vpn-instance>
<vpn-instance>
<vpn-id>512</vpn-id>
<interface>
<if-name>eth0</if-name>
<ip>
<dhcp-client>true</dhcp-client>
</ip>
<shutdown>true</shutdown>
</interface>
</vpn-instance>
</vpn>
</config>
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
}
}