-
Notifications
You must be signed in to change notification settings - Fork 5
/
example_ndfc_rest_fabric_create_easy_fabric_f1.yml
81 lines (72 loc) · 1.29 KB
/
example_ndfc_rest_fabric_create_easy_fabric_f1.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
80
81
# example_ndfc_rest_fabric_create_easy_fabric_f1.yml
# This creates a standalone fabric (i.e. not MSD child).
---
# Fabric and devices
- hosts: ndfc
gather_facts: false
roles:
- ndfc_rest_fabric_create_easy_fabric
vars:
fabric_name: f1
# Fabric f1 - Add devices
- hosts: ndfc
gather_facts: false
roles:
- ndfc_device_list_get
vars:
fabric_name: f1
- hosts: ndfc
gather_facts: false
roles:
- ndfc_device_list_merged
vars:
devices: "{{ device_list }}"
fabric_name: f1
# vpc_1
- hosts: ndfc
gather_facts: false
roles:
- ndfc_rest_vpc_create
vars:
vpc_name: vpc_1
- hosts: ndfc
gather_facts: false
roles:
- ndfc_vpc_interface_merged_all
vars:
vpc_name: vpc_1
# vpc_2
- hosts: ndfc
gather_facts: false
roles:
- ndfc_rest_vpc_create
vars:
vpc_name: vpc_2
- hosts: ndfc
gather_facts: false
roles:
- ndfc_vpc_interface_merged_all
vars:
vpc_name: vpc_2
# VRFs
- hosts: ndfc
gather_facts: false
roles:
- ndfc_vrf_all
vars:
fabric_name: f1
state: replaced
# Networks
- hosts: ndfc
gather_facts: false
roles:
- ndfc_network_replaced_all
vars:
fabric_name: f1
# Deploy
- hosts: ndfc
gather_facts: false
roles:
- ndfc_rest_config_deploy_all
vars:
fabric_name: f1