summaryrefslogtreecommitdiffstats
path: root/collections-debian-merged/ansible_collections/dellemc/os10/playbooks/vxlan_evpn/README.md
blob: 6d1af994a8f59ee152bd59c516298c2ec92ea2a6 (plain)
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
#  VxLAN Symmetric-IRB configuration using BGP EVPN using the Ansible collection for Dell EMC SmartFabric OS10


This example describes how to use Ansible to build a Leaf-Spine topology with Dell EMC PowerSwitch platforms running Dell EMC SmartFabric OS10, using a VxLAN Symmetric-IRB configuration model.

VxLAN Symmetric-IRB is configured using BGP EVPN with Leaf-Spine topology. BGP unnumbered is configured between the Leaf and Spine over VLANS for both underlay and overlay. VLT is configured between the pair of Leaf nodes.

In all Leaf nodes, the L3 VRF VNI "test" is configured to route between different VNs spanned across the topology, and the VTEP router MAC is configured to identify the remote VTEPs.
VN 100 and VN 300 is configured in a pair of Leaf nodes, and VN 200 and VN 300 configured in an other pair of Leaf nodes.

## Create simple Ansible playbook

**1**.  Create an inventory file called  `inventory.yaml`, then specify the device IP address.

**2**.  Create a host variable file called  `host_vars/spine1.yaml`, then define the host, credentials, and transport.

**3**.  Create a host variable file called `host_vars/spine2.yaml`, then define the host, credentials, and transport.

**4**.  Use the *os10_interface* and *os10_vlan* roles to configure the required VLANs.

**5**.  Use the *os10_bgp* role to configure BGP unnumbered.

**Configurations for VTEP-1**

**1**.  Create a host variable file called `host_vars/prim-vtep1.yaml`.

**2**.  Create a host variable file called  `host_vars/sec-vtep1.yaml`.

**3**.  Define the host, credentials, and transport.

**4**.  Use the *os10_interface* and *os10_vlan* roles to configure the required VLANs.

**5**.  Use the *os10_bgp* role to configure BGP unnumbered.

**6**.  Use the *os10_vxlan* role to configure VN networks, EVPN and Symmetric IRB functionality.

**7**.  Use *os10_vlt* role to configure VLT between leaves prim-vtep1 and sec-vtep1.

**Configurations for VTEP-2**

**1**.  Create a host variable file called `host_vars/prim-vtep2.yaml`.

**2**.  Create a host variable file called  `host_vars/sec-vtep2.yaml`.

**3**.  Define the host, credentials, and transport.

**4**.  Use *os10_interface* and *os10_vlan* roles to configure the required VLANs. 

**5**.  Use the *os10_bgp* role to configure BGP unnumbered. 

**6**.  Use *os10_vxlan* role to configure VN networks, EVPN and Symmetric IRB functionality. 

**7**.  Use the *os10_vlt* role to configure VLT between leaves prim-vtep2 and sec-vtep2.

**Create and run the playbook**

**1**.  Create a playbook called  `datacenter.yaml`.

**2**.  Run the playbook.

    ansible-playbook  -i  inventory.yaml  datacenter.yaml

(c) 2017-2020 Dell Inc. or its subsidiaries. All rights reserved.