-
Notifications
You must be signed in to change notification settings - Fork 5
/
example_ndfc_rest_fabric_delete_msd.yml
79 lines (71 loc) · 1.36 KB
/
example_ndfc_rest_fabric_delete_msd.yml
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
# example_ndfc_rest_fabric_delete_msd.yml
#
# This playbook deletes the topology created with
# example_ndfc_rest_fabric_create_msd_with_children.yml
---
# Delete all networks
- hosts: ndfc
gather_facts: false
roles:
- ndfc_network_deleted_all
vars:
fabric_name: MSD
# Delete all VRFs
- hosts: ndfc
gather_facts: false
roles:
- ndfc_vrf_all
vars:
fabric_name: MSD
state: deleted
# Remove fabric f1 from MSD fabric
- hosts: ndfc
gather_facts: false
roles:
- ndfc_rest_fabric_msd_child_remove
vars:
msd_fabric: MSD
child_fabric: f1
# Remove fabric f2 from MSD fabric
- hosts: ndfc
gather_facts: false
roles:
- ndfc_rest_fabric_msd_child_remove
vars:
msd_fabric: MSD
child_fabric: f2
# Delete switches from fabric f1
- hosts: ndfc
gather_facts: false
roles:
- ndfc_device_deleted_all
vars:
fabric_name: f1
# Delete switches from fabric f2
- hosts: ndfc
gather_facts: false
roles:
- ndfc_device_deleted_all
vars:
fabric_name: f2
# Delete fabric MSD
- hosts: ndfc
gather_facts: false
roles:
- ndfc_rest_fabric_delete
vars:
fabric_name: MSD
# Delete fabric f1
- hosts: ndfc
gather_facts: false
roles:
- ndfc_rest_fabric_delete
vars:
fabric_name: f1
# Delete fabric f2
- hosts: ndfc
gather_facts: false
roles:
- ndfc_rest_fabric_delete
vars:
fabric_name: f2