-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
56 changed files
with
1,979 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 45 additions & 0 deletions
45
topologies/training-level-path-finder/configlets/ATD-INFRA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
daemon TerminAttr | ||
exec /usr/bin/TerminAttr -cvcompression=gzip -smashexcludes=ale,flexCounter,hardware,kni,pulse,strata -ingestexclude=/Sysdb/cell/1/agent,/Sysdb/cell/2/agent -cvaddr=192.168.0.5:9910 -cvauth=token,/tmp/token -cvvrf=default -taillogs -disableaaa | ||
no shutdown | ||
! | ||
alias mlag-reload bash /mnt/flash/shut_intfs && sudo shutdown now -r | ||
alias conint sh interface | i connected | ||
alias senz show interface counter error | nz | ||
alias shmc show int | awk '/^[A-Z]/ { intf = $1 } /, address is/ { print intf, $6 }' | ||
alias snz show interface counter | nz | ||
alias spd show port-channel %1 detail all | ||
alias sqnz show interface counter queue | nz | ||
alias srnz show interface counter rate | nz | ||
alias intdesc | ||
!! Usage: intdesc interface-name description | ||
10 config | ||
20 int %1 | ||
30 desc %2 | ||
40 exit | ||
! | ||
dns domain arista.lab | ||
! | ||
service routing protocols model multi-agent | ||
! | ||
ntp server 192.168.0.1 iburst source Management1 | ||
! | ||
radius-server host 192.168.0.1 key 7 0207165218120E | ||
! | ||
aaa group server radius atds | ||
server 192.168.0.1 | ||
! | ||
aaa authentication login default group atds local | ||
aaa authorization exec default group atds local | ||
aaa authorization commands all default local | ||
! | ||
username Script secret sha512 $6$PNfpb9anSBQ5/aia$phaa3ar5pwkntenD9WHc6Ed5b96lbW0dc0bjtwPnFLaDiCK8D5Cjl6ewP/xdNbl4PtS6Paq.3SssN8pj05NQm. | ||
username admin privilege 15 role network-admin secret 5 $1$5O85YVVn$HrXcfOivJEnISTMb6xrJc. | ||
username arista privilege 15 role network-admin secret 5 $1$4VjIjfd1$XkUVulbNDESHFzcxDU.Tk1 | ||
! | ||
username arista ssh-key ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC+ERvV4GaPq3FzxY8T+5hMF/1T+l8wiPsVCtOrZU4Hy6NCNlAiDBdA/RUtX5/aOu5JvHyPTVHqWJ0qi9BqU3rxCNl/l2/5UZbm9RPzdZ1QCwoYwPB9/j/tYJV8lZdr6t0yGBfxgzD3oW/zF7a+ZtASaMAu7lkgoqPK2pVIGa+Y9ZCsA0Xq756XpLCw+d3pHKHvIkgWLCo9FoeIv8f/bu5u/ztzRE+Nvl+o5add6MxnjsXz3s7BnW2FX6JNjyp0Z+OXjupQc2gcfFvpd/dA2lCNuuaCHkRgyPwIZtWPmNqMRXPp37mlPwV43qDJRVPQkvh0xPxwS35BbzUxWdT+ZLZv | ||
! | ||
ip radius source-interface Management1 | ||
! | ||
management api http-commands | ||
no shutdown | ||
! |
76 changes: 76 additions & 0 deletions
76
topologies/training-level-path-finder/configlets/Base-Builder.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
from cvplibrary import CVPGlobalVariables, GlobalVariableNames, Form | ||
|
||
|
||
|
||
# Get this devices Serial | ||
|
||
|
||
serial = CVPGlobalVariables.getValue( GlobalVariableNames.CVP_SERIAL ) | ||
mask = '24' | ||
ServiceRouting = True | ||
|
||
#Create the IP address from the serial number | ||
|
||
IPaddress = '192.168.0.66' | ||
|
||
if serial == '9BD9FE8B8A0EB6F43910F5F583A9CF40': | ||
IPaddress = '192.168.0.21' | ||
hostname = 'leaf1' | ||
|
||
|
||
elif serial == '8823F318C30617010F15E56A40D3AE14': | ||
IPaddress = '192.168.0.22' | ||
hostname = 'leaf2' | ||
|
||
|
||
elif serial == '5356CC64EE6812A82D43E42F3BC0F3C5': | ||
IPaddress = '192.168.0.23' | ||
hostname = 'leaf3' | ||
|
||
|
||
elif serial == '04DADEBA6B3D1548218141BC827D02A5': | ||
IPaddress = '192.168.0.24' | ||
hostname = 'leaf4' | ||
|
||
elif serial == '329874C0FD77D12A30D571B6B79E9195': | ||
IPaddress = '192.168.0.11' | ||
hostname = 'spine1' | ||
|
||
elif serial == '4B49885915FFE471AB899ACDEE5B803D': | ||
IPaddress = '192.168.0.12' | ||
hostname = 'spine2' | ||
|
||
|
||
elif serial == 'FF5D15D80D0D3E6B8D1D060DE545627D': | ||
IPaddress = '192.168.0.51' | ||
ServiceRouting = False | ||
hostname = 'host1' | ||
|
||
|
||
elif serial == '94910C4142FA2F7B76DFEC1D3C761E28': | ||
IPaddress = '192.168.0.52' | ||
ServiceRouting = False | ||
hostname = 'host2' | ||
|
||
|
||
# Generate and print config - Ignore the service routing command if not needed | ||
print 'hostname %s' % hostname | ||
print '!' | ||
print 'interface Management 1' | ||
print ' ip address %s/%s' % ( IPaddress, mask ) | ||
print ' no lldp transmit' | ||
print ' no lldp receive' | ||
print '!' | ||
if ServiceRouting: | ||
print 'service routing protocols model multi-agent' | ||
print '!' | ||
print 'dns domain arista.lab' | ||
print '!' | ||
print 'ip route 0.0.0.0/0 192.168.0.1' | ||
print '!' | ||
print 'ip routing' | ||
print '!' | ||
print 'management api http-commands' | ||
print ' no shutdown' | ||
print ' protocol http' | ||
print '!' |
15 changes: 15 additions & 0 deletions
15
topologies/training-level-path-finder/configlets/borderleaf1-base
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
hostname borderleaf1 | ||
! | ||
interface Management 1 | ||
ip address 192.168.0.15/24 | ||
no lldp transmit | ||
no lldp receive | ||
! | ||
service routing protocols model multi-agent | ||
! | ||
dns domain arista.lab | ||
! | ||
ip route 0.0.0.0/0 192.168.0.1 | ||
! | ||
ip routing | ||
! |
13 changes: 13 additions & 0 deletions
13
topologies/training-level-path-finder/configlets/host1-base
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
hostname host1 | ||
! | ||
interface Management 1 | ||
ip address 192.168.0.51/24 | ||
no lldp transmit | ||
no lldp receive | ||
! | ||
dns domain arista.lab | ||
! | ||
ip route 0.0.0.0/0 192.168.0.1 | ||
! | ||
ip routing | ||
! |
13 changes: 13 additions & 0 deletions
13
topologies/training-level-path-finder/configlets/host2-base
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
hostname host2 | ||
! | ||
interface Management 1 | ||
ip address 192.168.0.52/24 | ||
no lldp transmit | ||
no lldp receive | ||
! | ||
dns domain arista.lab | ||
! | ||
ip route 0.0.0.0/0 192.168.0.1 | ||
! | ||
ip routing | ||
! |
13 changes: 13 additions & 0 deletions
13
topologies/training-level-path-finder/configlets/host3-base
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
hostname host3 | ||
! | ||
interface Management 1 | ||
ip address 192.168.0.53/24 | ||
no lldp transmit | ||
no lldp receive | ||
! | ||
dns domain arista.lab | ||
! | ||
ip route 0.0.0.0/0 192.168.0.1 | ||
! | ||
ip routing | ||
! |
15 changes: 15 additions & 0 deletions
15
topologies/training-level-path-finder/configlets/leaf1-base
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
hostname leaf1 | ||
! | ||
interface Management 1 | ||
ip address 192.168.0.21/24 | ||
no lldp transmit | ||
no lldp receive | ||
! | ||
service routing protocols model multi-agent | ||
! | ||
dns domain arista.lab | ||
! | ||
ip route 0.0.0.0/0 192.168.0.1 | ||
! | ||
ip routing | ||
! |
15 changes: 15 additions & 0 deletions
15
topologies/training-level-path-finder/configlets/leaf2-base
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
hostname leaf2 | ||
! | ||
interface Management 1 | ||
ip address 192.168.0.22/24 | ||
no lldp transmit | ||
no lldp receive | ||
! | ||
service routing protocols model multi-agent | ||
! | ||
dns domain arista.lab | ||
! | ||
ip route 0.0.0.0/0 192.168.0.1 | ||
! | ||
ip routing | ||
! |
15 changes: 15 additions & 0 deletions
15
topologies/training-level-path-finder/configlets/leaf3-base
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
hostname leaf3 | ||
! | ||
interface Management 1 | ||
ip address 192.168.0.23/24 | ||
no lldp transmit | ||
no lldp receive | ||
! | ||
service routing protocols model multi-agent | ||
! | ||
dns domain arista.lab | ||
! | ||
ip route 0.0.0.0/0 192.168.0.1 | ||
! | ||
ip routing | ||
! |
15 changes: 15 additions & 0 deletions
15
topologies/training-level-path-finder/configlets/leaf4-base
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
hostname leaf4 | ||
! | ||
interface Management 1 | ||
ip address 192.168.0.24/24 | ||
no lldp transmit | ||
no lldp receive | ||
! | ||
service routing protocols model multi-agent | ||
! | ||
dns domain arista.lab | ||
! | ||
ip route 0.0.0.0/0 192.168.0.1 | ||
! | ||
ip routing | ||
! |
15 changes: 15 additions & 0 deletions
15
topologies/training-level-path-finder/configlets/spine1-base
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
hostname spine1 | ||
! | ||
interface Management 1 | ||
ip address 192.168.0.11/24 | ||
no lldp transmit | ||
no lldp receive | ||
! | ||
service routing protocols model multi-agent | ||
! | ||
dns domain arista.lab | ||
! | ||
ip route 0.0.0.0/0 192.168.0.1 | ||
! | ||
ip routing | ||
! |
15 changes: 15 additions & 0 deletions
15
topologies/training-level-path-finder/configlets/spine2-base
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
hostname spine2 | ||
! | ||
interface Management 1 | ||
ip address 192.168.0.12/24 | ||
no lldp transmit | ||
no lldp receive | ||
! | ||
service routing protocols model multi-agent | ||
! | ||
dns domain arista.lab | ||
! | ||
ip route 0.0.0.0/0 192.168.0.1 | ||
! | ||
ip routing | ||
! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[defaults] | ||
host_key_checking = False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Turn off the startup message. | ||
startup_message off | ||
# Set the caption to the active windows. | ||
caption always "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<" | ||
|
||
term screen-256color | ||
|
||
# New screens for various processes. | ||
# Example: screen -t <hostname> <screen number> <command> | ||
# screen -t 7050SX-128 0 ssh aristaadmin@192.100.37.128 | ||
screen -t CVP 1 ssh 192.168.0.5 | ||
screen -t Spine1 2 ssh 192.168.0.11 | ||
screen -t Spine2 3 ssh 192.168.0.12 | ||
screen -t Leaf1 4 ssh 192.168.0.21 | ||
screen -t Leaf2 5 ssh 192.168.0.22 | ||
screen -t Leaf3 6 ssh 192.168.0.23 | ||
screen -t Leaf4 7 ssh 192.168.0.24 | ||
screen -t Host1 8 ssh 192.168.0.51 | ||
screen -t Host2 9 ssh 192.168.0.52 |
Oops, something went wrong.