-
Notifications
You must be signed in to change notification settings - Fork 0
/
playbook-multivendor-config.yml
55 lines (45 loc) · 1.96 KB
/
playbook-multivendor-config.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
---
- name: BGP EVPN multi-vendor VXLAN deployment
hosts: all
tasks:
- name: Configure route-maps
cli_config:
config: "{{ lookup('template', 'templates/{{ platform }}/route_map.j2') }}"
- name: Configure interfaces
cli_config:
config: "{{ lookup('template', 'templates/{{ platform }}/underlay_interfaces.j2') }}"
- name: Configure mlag
cli_config:
config: "{{ lookup('template', 'templates/{{ platform }}/mlag.j2') }}"
when: mlag
- name: Configure BGP
cli_config:
config: "{{ lookup('template', 'templates/{{ platform }}/bgp_{{ role }}.j2') }}"
- name: Configure mlag bgp underlay
cli_config:
config: "{{ lookup('template', 'templates/{{ platform }}/bgp_mlag_underlay.j2') }}"
when: mlag
- name: Configure leaf VLANs
cli_config:
config: "{{ lookup('template', 'templates/{{ platform }}/vlans_create.j2') }}"
when: inventory_hostname in groups['leafs']
- name: Map leaf interfaces to VLANs
cli_config:
config: "{{ lookup('template', 'templates/{{ platform }}/access_interfaces_to_vlan_mapping.j2') }}"
when: inventory_hostname in groups['leafs']
- name: Adding leaf VLANs/VNIs to BGP
cli_config:
config: "{{ lookup('template', 'templates/{{ platform }}/bgp_evpn_vlan_vni_addition.j2') }}"
when: inventory_hostname in groups['leafs']
- name: Add leaf VLANs to VNIs mapping to VXLAN interface
cli_config:
config: "{{ lookup('template', 'templates/{{ platform }}/vxlan_interface_map_vni.j2') }}"
when: inventory_hostname in groups['leafs']
- name: Add overlay interfaces
cli_config:
config: "{{ lookup('template', 'templates/{{ platform }}/overlay_interfaces.j2') }}"
when: inventory_hostname in groups['leafs']
- name: Configure mlag bgp overlay
cli_config:
config: "{{ lookup('template', 'templates/{{ platform }}/bgp_mlag_overlay.j2') }}"
when: mlag