Skip to content

Commit

Permalink
Merge pull request #15 from JulioPDX/cicd-ff
Browse files Browse the repository at this point in the history
AVD lab guide steps for CICD
  • Loading branch information
mitchv85 authored Oct 16, 2023
2 parents 9d3619d + 6b6d5b4 commit eb2fe20
Show file tree
Hide file tree
Showing 48 changed files with 9,992 additions and 106 deletions.
448 changes: 448 additions & 0 deletions sites/site_1/documentation/devices/s1-leaf1.md

Large diffs are not rendered by default.

448 changes: 448 additions & 0 deletions sites/site_1/documentation/devices/s1-leaf2.md

Large diffs are not rendered by default.

448 changes: 448 additions & 0 deletions sites/site_1/documentation/devices/s1-leaf3.md

Large diffs are not rendered by default.

448 changes: 448 additions & 0 deletions sites/site_1/documentation/devices/s1-leaf4.md

Large diffs are not rendered by default.

598 changes: 598 additions & 0 deletions sites/site_1/documentation/devices/s1-spine1.md

Large diffs are not rendered by default.

598 changes: 598 additions & 0 deletions sites/site_1/documentation/devices/s1-spine2.md

Large diffs are not rendered by default.

86 changes: 86 additions & 0 deletions sites/site_1/documentation/fabric/SITE1_FABRIC-documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# SITE1_FABRIC

## Table of Contents

- [Fabric Switches and Management IP](#fabric-switches-and-management-ip)
- [Fabric Switches with inband Management IP](#fabric-switches-with-inband-management-ip)
- [Fabric Topology](#fabric-topology)
- [Fabric IP Allocation](#fabric-ip-allocation)
- [Fabric Point-To-Point Links](#fabric-point-to-point-links)
- [Point-To-Point Links Node Allocation](#point-to-point-links-node-allocation)
- [Loopback Interfaces (BGP EVPN Peering)](#loopback-interfaces-bgp-evpn-peering)
- [Loopback0 Interfaces Node Allocation](#loopback0-interfaces-node-allocation)
- [VTEP Loopback VXLAN Tunnel Source Interfaces (VTEPs Only)](#vtep-loopback-vxlan-tunnel-source-interfaces-vteps-only)
- [VTEP Loopback Node allocation](#vtep-loopback-node-allocation)

## Fabric Switches and Management IP

| POD | Type | Node | Management IP | Platform | Provisioned in CloudVision | Serial Number |
| --- | ---- | ---- | ------------- | -------- | -------------------------- | ------------- |
| SITE1_FABRIC | leaf | s1-leaf1 | 192.168.0.12/24 | cEOS | Provisioned | - |
| SITE1_FABRIC | leaf | s1-leaf2 | 192.168.0.13/24 | cEOS | Provisioned | - |
| SITE1_FABRIC | leaf | s1-leaf3 | 192.168.0.14/24 | cEOS | Provisioned | - |
| SITE1_FABRIC | leaf | s1-leaf4 | 192.168.0.15/24 | cEOS | Provisioned | - |
| SITE1_FABRIC | l3spine | s1-spine1 | 192.168.0.10/24 | cEOS | Provisioned | - |
| SITE1_FABRIC | l3spine | s1-spine2 | 192.168.0.11/24 | cEOS | Provisioned | - |

> Provision status is based on Ansible inventory declaration and do not represent real status from CloudVision.
### Fabric Switches with inband Management IP

| POD | Type | Node | Management IP | Inband Interface |
| --- | ---- | ---- | ------------- | ---------------- |

## Fabric Topology

| Type | Node | Node Interface | Peer Type | Peer Node | Peer Interface |
| ---- | ---- | -------------- | --------- | ----------| -------------- |
| leaf | s1-leaf1 | Ethernet1 | mlag_peer | s1-leaf2 | Ethernet1 |
| leaf | s1-leaf1 | Ethernet2 | l3spine | s1-spine1 | Ethernet2 |
| leaf | s1-leaf1 | Ethernet3 | l3spine | s1-spine2 | Ethernet2 |
| leaf | s1-leaf1 | Ethernet6 | mlag_peer | s1-leaf2 | Ethernet6 |
| leaf | s1-leaf2 | Ethernet2 | l3spine | s1-spine1 | Ethernet3 |
| leaf | s1-leaf2 | Ethernet3 | l3spine | s1-spine2 | Ethernet3 |
| leaf | s1-leaf3 | Ethernet1 | mlag_peer | s1-leaf4 | Ethernet1 |
| leaf | s1-leaf3 | Ethernet2 | l3spine | s1-spine1 | Ethernet4 |
| leaf | s1-leaf3 | Ethernet3 | l3spine | s1-spine2 | Ethernet4 |
| leaf | s1-leaf3 | Ethernet6 | mlag_peer | s1-leaf4 | Ethernet6 |
| leaf | s1-leaf4 | Ethernet2 | l3spine | s1-spine1 | Ethernet5 |
| leaf | s1-leaf4 | Ethernet3 | l3spine | s1-spine2 | Ethernet5 |
| l3spine | s1-spine1 | Ethernet1 | mlag_peer | s1-spine2 | Ethernet1 |
| l3spine | s1-spine1 | Ethernet6 | mlag_peer | s1-spine2 | Ethernet6 |

## Fabric IP Allocation

### Fabric Point-To-Point Links

| Uplink IPv4 Pool | Available Addresses | Assigned addresses | Assigned Address % |
| ---------------- | ------------------- | ------------------ | ------------------ |

### Point-To-Point Links Node Allocation

| Node | Node Interface | Node IP Address | Peer Node | Peer Interface | Peer IP Address |
| ---- | -------------- | --------------- | --------- | -------------- | --------------- |

### Loopback Interfaces (BGP EVPN Peering)

| Loopback Pool | Available Addresses | Assigned addresses | Assigned Address % |
| ------------- | ------------------- | ------------------ | ------------------ |
| 10.1.252.0/24 | 256 | 2 | 0.79 % |

### Loopback0 Interfaces Node Allocation

| POD | Node | Loopback0 |
| --- | ---- | --------- |
| SITE1_FABRIC | s1-spine1 | 10.1.252.1/32 |
| SITE1_FABRIC | s1-spine2 | 10.1.252.2/32 |

### VTEP Loopback VXLAN Tunnel Source Interfaces (VTEPs Only)

| VTEP Loopback Pool | Available Addresses | Assigned addresses | Assigned Address % |
| --------------------- | ------------------- | ------------------ | ------------------ |

### VTEP Loopback Node allocation

| POD | Node | Loopback1 |
| --- | ---- | --------- |
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Type,Node,Node Interface,Leaf IP Address,Peer Type,Peer Node,Peer Interface,Peer IP Address
37 changes: 37 additions & 0 deletions sites/site_1/documentation/fabric/SITE1_FABRIC-topology.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
Node Type,Node,Node Interface,Peer Type,Peer Node,Peer Interface,Node Interface Enabled
leaf,s1-leaf1,Ethernet1,mlag_peer,s1-leaf2,Ethernet1,True
leaf,s1-leaf1,Ethernet2,l3spine,s1-spine1,Ethernet2,True
leaf,s1-leaf1,Ethernet3,l3spine,s1-spine2,Ethernet2,True
leaf,s1-leaf1,Ethernet4,server,s1-host1,eth1,True
leaf,s1-leaf1,Ethernet6,mlag_peer,s1-leaf2,Ethernet6,True
leaf,s1-leaf2,Ethernet1,mlag_peer,s1-leaf1,Ethernet1,True
leaf,s1-leaf2,Ethernet2,l3spine,s1-spine1,Ethernet3,True
leaf,s1-leaf2,Ethernet3,l3spine,s1-spine2,Ethernet3,True
leaf,s1-leaf2,Ethernet4,server,s1-host1,eth2,True
leaf,s1-leaf2,Ethernet6,mlag_peer,s1-leaf1,Ethernet6,True
leaf,s1-leaf3,Ethernet1,mlag_peer,s1-leaf4,Ethernet1,True
leaf,s1-leaf3,Ethernet2,l3spine,s1-spine1,Ethernet4,True
leaf,s1-leaf3,Ethernet3,l3spine,s1-spine2,Ethernet4,True
leaf,s1-leaf3,Ethernet4,server,s1-host2,eth1,True
leaf,s1-leaf3,Ethernet6,mlag_peer,s1-leaf4,Ethernet6,True
leaf,s1-leaf4,Ethernet1,mlag_peer,s1-leaf3,Ethernet1,True
leaf,s1-leaf4,Ethernet2,l3spine,s1-spine1,Ethernet5,True
leaf,s1-leaf4,Ethernet3,l3spine,s1-spine2,Ethernet5,True
leaf,s1-leaf4,Ethernet4,server,s1-host2,eth2,True
leaf,s1-leaf4,Ethernet6,mlag_peer,s1-leaf3,Ethernet6,True
l3spine,s1-spine1,Ethernet1,mlag_peer,s1-spine2,Ethernet1,True
l3spine,s1-spine1,Ethernet2,leaf,s1-leaf1,Ethernet2,True
l3spine,s1-spine1,Ethernet3,leaf,s1-leaf2,Ethernet2,True
l3spine,s1-spine1,Ethernet4,leaf,s1-leaf3,Ethernet2,True
l3spine,s1-spine1,Ethernet5,leaf,s1-leaf4,Ethernet2,True
l3spine,s1-spine1,Ethernet6,mlag_peer,s1-spine2,Ethernet6,True
l3spine,s1-spine1,Ethernet7,other,WANCORE,Ethernet2,True
l3spine,s1-spine1,Ethernet8,other,WANCORE,Ethernet2,True
l3spine,s1-spine2,Ethernet1,mlag_peer,s1-spine1,Ethernet1,True
l3spine,s1-spine2,Ethernet2,leaf,s1-leaf1,Ethernet3,True
l3spine,s1-spine2,Ethernet3,leaf,s1-leaf2,Ethernet3,True
l3spine,s1-spine2,Ethernet4,leaf,s1-leaf3,Ethernet3,True
l3spine,s1-spine2,Ethernet5,leaf,s1-leaf4,Ethernet3,True
l3spine,s1-spine2,Ethernet6,mlag_peer,s1-spine1,Ethernet6,True
l3spine,s1-spine2,Ethernet7,other,WANCORE,Ethernet2,True
l3spine,s1-spine2,Ethernet8,other,WANCORE,Ethernet2,True
27 changes: 27 additions & 0 deletions sites/site_1/group_vars/SITE1_FABRIC.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,30 @@ leaf:
##################################################################

underlay_routing_protocol: OSPF

##################################################################
# WAN/Core Edge Links
##################################################################

core_interfaces:
p2p_links:

- ip: [ 10.0.0.29/31, 10.0.0.28/31 ]
nodes: [ s1-spine1, WANCORE ]
interfaces: [ Ethernet7, Ethernet2 ]
include_in_underlay_protocol: true

- ip: [ 10.0.0.33/31, 10.0.0.32/31 ]
nodes: [ s1-spine1, WANCORE ]
interfaces: [ Ethernet8, Ethernet2 ]
include_in_underlay_protocol: true

- ip: [ 10.0.0.31/31, 10.0.0.30/31 ]
nodes: [ s1-spine2, WANCORE ]
interfaces: [ Ethernet7, Ethernet2 ]
include_in_underlay_protocol: true

- ip: [ 10.0.0.35/31, 10.0.0.34/31 ]
nodes: [ s1-spine2, WANCORE ]
interfaces: [ Ethernet8, Ethernet2 ]
include_in_underlay_protocol: true
50 changes: 25 additions & 25 deletions sites/site_1/group_vars/SITE1_FABRIC_PORTS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,32 +14,32 @@ port_profiles:
# ---------------- Endpoint Connectivity ---------------- #
###########################################################

# servers:
servers:

# # --------------------------------------------------------#
# # Site1 RACK1 Endpoints
# # --------------------------------------------------------#
# --------------------------------------------------------#
# Site1 RACK1 Endpoints
# --------------------------------------------------------#

# - name: s1-host1 # Server name
# rack: RACK1 # Informational RACK (optional)
# adapters:
# - endpoint_ports: [ eth1, eth2 ] # Server port to connect (optional)
# switch_ports: [ Ethernet4, Ethernet4 ] # Switch port to connect server (required)
# switches: [ s1-leaf1, s1-leaf2 ] # Switch to connect server (required)
# profile: PP-VLAN10 # Port profile to apply (required)
# port_channel:
# mode: active
- name: s1-host1 # Server name
rack: RACK1 # Informational RACK (optional)
adapters:
- endpoint_ports: [ eth1, eth2 ] # Server port to connect (optional)
switch_ports: [ Ethernet4, Ethernet4 ] # Switch port to connect server (required)
switches: [ s1-leaf1, s1-leaf2 ] # Switch to connect server (required)
profile: PP-VLAN10 # Port profile to apply (required)
port_channel:
mode: active

# # --------------------------------------------------------#
# # Site1 RACK2 Endpoints
# # --------------------------------------------------------#
# --------------------------------------------------------#
# Site1 RACK2 Endpoints
# --------------------------------------------------------#

# - name: s1-host2 # Server name
# rack: RACK2 # Informational RACK (optional)
# adapters:
# - endpoint_ports: [ eth1, eth2 ] # Server port to connect (optional)
# switch_ports: [ Ethernet4, Ethernet4 ] # Switch port to connect server (required)
# switches: [ s1-leaf3, s1-leaf4 ] # Switch to connect server (required)
# profile: PP-VLAN20 # Port profile to apply (required)
# port_channel:
# mode: active
- name: s1-host2 # Server name
rack: RACK2 # Informational RACK (optional)
adapters:
- endpoint_ports: [ eth1, eth2 ] # Server port to connect (optional)
switch_ports: [ Ethernet4, Ethernet4 ] # Switch port to connect server (required)
switches: [ s1-leaf3, s1-leaf4 ] # Switch to connect server (required)
profile: PP-VLAN20 # Port profile to apply (required)
port_channel:
mode: active
56 changes: 28 additions & 28 deletions sites/site_1/group_vars/SITE1_FABRIC_SERVICES.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
# ---
# tenants:
# - name: MY_FABRIC
# vrfs:
# - name: default
# svis:
# - id: 10
# name: 'Ten'
# tags: [ "Web" ]
# enabled: true
# ip_virtual_router_addresses:
# - 10.10.10.1
# nodes:
# - node: s1-spine1
# ip_address: 10.10.10.2/24
# - node: s1-spine2
# ip_address: 10.10.10.3/24
# - id: 20
# name: 'Twenty'
# tags: [ "App" ]
# enabled: true
# ip_virtual_router_addresses:
# - 10.20.20.1
# nodes:
# - node: s1-spine1
# ip_address: 10.20.20.2/24
# - node: s1-spine2
# ip_address: 10.20.20.3/24
---
tenants:
- name: MY_FABRIC
vrfs:
- name: default
svis:
- id: 10
name: 'Ten'
tags: [ "Web" ]
enabled: true
ip_virtual_router_addresses:
- 10.10.10.1
nodes:
- node: s1-spine1
ip_address: 10.10.10.2/24
- node: s1-spine2
ip_address: 10.10.10.3/24
- id: 20
name: 'Twenty'
tags: [ "App" ]
enabled: true
ip_virtual_router_addresses:
- 10.20.20.1
nodes:
- node: s1-spine1
ip_address: 10.20.20.2/24
- node: s1-spine2
ip_address: 10.20.20.3/24
113 changes: 113 additions & 0 deletions sites/site_1/intended/configs/s1-leaf1.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
!RANCID-CONTENT-TYPE: arista
!
daemon TerminAttr
exec /usr/bin/TerminAttr -cvaddr=192.168.0.5:9910 -cvauth=token,/tmp/token -smashexcludes=ale,flexCounter,hardware,kni,pulse,strata -ingestexclude=/Sysdb/cell/1/agent,/Sysdb/cell/2/agent -taillogs
no shutdown
!
vlan internal order ascending range 1006 1199
!
transceiver qsfp default-mode 4x10G
!
service routing protocols model multi-agent
!
hostname s1-leaf1
dns domain atd.lab
!
ntp server 192.168.0.1 iburst local-interface Management0
!
spanning-tree mode mstp
no spanning-tree vlan-id 4094
spanning-tree mst 0 priority 16384
!
aaa authorization exec default local
!
no enable password
no aaa root
!
username arista privilege 15 role network-admin secret sha512 $6$workshop$5Llb6kE2/P4Zx.1yLwkd9QfMtazdVEPYmJG3pfgrhT2dhka.5odGw6xS19uMSerZIhi.q2krArh9Dl8qMi2B60
!
vlan 10
name Ten
!
vlan 4094
name MLAG_PEER
trunk group MLAG
!
interface Port-Channel1
description MLAG_PEER_s1-leaf2_Po1
no shutdown
switchport
switchport mode trunk
switchport trunk group MLAG
!
interface Port-Channel2
description SPINES_Po2
no shutdown
switchport
switchport trunk allowed vlan 10
switchport mode trunk
mlag 2
!
interface Port-Channel4
description s1-host1
no shutdown
switchport
switchport access vlan 10
mlag 4
spanning-tree portfast
!
interface Ethernet1
description MLAG_PEER_s1-leaf2_Ethernet1
no shutdown
channel-group 1 mode active
!
interface Ethernet2
description S1-SPINE1_Ethernet2
no shutdown
channel-group 2 mode active
!
interface Ethernet3
description S1-SPINE2_Ethernet2
no shutdown
channel-group 2 mode active
!
interface Ethernet4
description s1-host1_eth1
no shutdown
channel-group 4 mode active
!
interface Ethernet6
description MLAG_PEER_s1-leaf2_Ethernet6
no shutdown
channel-group 1 mode active
!
interface Management0
description oob_management
no shutdown
ip address 192.168.0.12/24
!
interface Vlan4094
description MLAG_PEER
no shutdown
mtu 1500
no autostate
ip address 10.1.253.4/31
!
mlag configuration
domain-id RACK1
local-interface Vlan4094
peer-address 10.1.253.5
peer-link Port-Channel1
reload-delay mlag 300
reload-delay non-mlag 330
!
ip route 0.0.0.0/0 192.168.0.1
!
management api http-commands
protocol https
no shutdown
!
vrf default
no shutdown
!
end
Loading

0 comments on commit eb2fe20

Please sign in to comment.