-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathzsupport.txt
59 lines (37 loc) · 1.6 KB
/
zsupport.txt
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
---
- name: ios bug 129 real
hosts: iosl2lab
gather_facts: no
tasks:
- name: Retrieve Junos OS version
junipernetworks.junos.junos_command:
commands: show version
when: ansible_network_os == 'junipernetworks.junos.junos'
FIRST USECASE ---------- :)
Blank device config
populate data by config module
ansible-playbook playbooks/init.yaml -vvvv
brownfild device is ready
Gather the facts from the above configured brwnfield device
update inventory with other clear slate device
ansible-playbook playbooks/facts.yaml -vvvv
show in the clear slate device that the device is not having any config on the existing box
ssh [email protected] <- brownfield
ssh [email protected] <- clearslate
show access-lists
checked on the clear slate device that there is no configuration present int the clear slate device
So, now we are trying to push the gahered config from the brownfield device and pushing it on to the clear slate device
using ansible Resource module, state - overriden
show the playbook for sure
ansible-playbook playbooks/configure.yaml -vvvv
the output of the play would be yellow and green,
so it changed for the clear slate device and did not change any config for the existing brownfield device
SECOND USECASE ----------- :)
showing configuration drift and rescue,
use make drift to change config on one of the boxes
ansible-playbook playbooks/make_drift.yaml
check drift by validating
ansible-playbook playbooks/validate.yaml -vvvv
#TODO
1. interfaces implementation for iosxr_acl
2. update validate playbook with gathered state and assert the changes to show drift