-
Notifications
You must be signed in to change notification settings - Fork 1
/
kleenex.yaml
68 lines (56 loc) · 1.34 KB
/
kleenex.yaml
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
cleaners:
PyatsDeviceClean:
module: genie.libs.clean
groups: [WAN]
groups:
WAN:
devices: [router1, router2]
order:
- connect
- copy_to_device
- change_boot_variable
- write_erase
- reload
- apply_configuration
- verify_running_image
- ping_server
#####################
connect:
via: a
ping_server:
server: 10.2.0.254
vrf: Mgmt-intf
write_erase:
copy_to_device:
origin:
hostname: ftp
files:
- isr4300-universalk9.16.06.05.SPA.bin
destination:
directory: 'bootflash:'
protocol: ftp
overwrite: True
verify_num_images: False
check_file_stability: True
min_free_space_percent: 50
vrf: Mgmt-intf
change_boot_variable:
images:
- bootflash:/isr4300-universalk9.16.06.05.SPA.bin
verify_running_image:
images:
- bootflash:isr4300-universalk9.16.06.05.SPA.bin
reload:
reconnect_via: a
check_modules:
check: False
# apply basic configuration to startup, will be defined per
# devices further down
apply_configuration:
devices:
router1:
apply_configuration:
configuration_from_file: configs/r-1.txt
router2:
apply_configuration:
configuration_from_file: configs/r-2.txt