Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

l6 #82

Open
wants to merge 410 commits into
base: nested-release
Choose a base branch
from
Open

l6 #82

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
410 commits
Select commit Hold shift + click to select a range
0e385ed
Update leaf4-base
sasakariz1 Sep 22, 2023
5f2f6e6
Update spine1-base
sasakariz1 Sep 22, 2023
a5c90be
Update spine2-base
sasakariz1 Sep 22, 2023
7e69598
Update spine3-base
sasakariz1 Sep 22, 2023
cb672a9
Update spine4-base
sasakariz1 Sep 22, 2023
435bb1a
Update ATD-INFRA
tatanithin Sep 25, 2023
c026649
Update ATD-INFRA
tatanithin Sep 25, 2023
de9f1d3
Rename core1-ISP1-BASE to core1-isp1-BASE
tatanithin Sep 25, 2023
edf738e
Rename core2-ISP1-BASE to core2-isp1-BASE
tatanithin Sep 25, 2023
ffbccb3
Rename core2-ISP2-BASE to core2-isp2-BASE
tatanithin Sep 25, 2023
1e02644
Rename core1-ISP2-BASE to core1-isp2-BASE
tatanithin Sep 25, 2023
4b72b21
fixes for L7 topo
Sep 26, 2023
40aedd7
Merge pull request #15 from aristanetworks/L3-p3-fix
rparkinarista Sep 26, 2023
4a61757
Updated from Management1 to Management0
tatanithin Sep 26, 2023
446977a
fixes for configlets
Sep 26, 2023
9559728
Merge pull request #16 from aristanetworks/switches-config-fixes
rparkinarista Sep 26, 2023
77def19
Update topo_build.yml
tatanithin Sep 26, 2023
fdcf16a
Update topo_build.yml
tatanithin Sep 26, 2023
5a6d745
Update modules.yaml
tatanithin Sep 26, 2023
5b72127
Update modules.yaml
tatanithin Sep 26, 2023
138dcd3
Update modules.yaml
tatanithin Sep 26, 2023
315258a
updated uilanding.py to fix servers concept in containerlabs
tatanithin Sep 26, 2023
b9ecd14
Merge branch 'nested/2022.3' of https://github.com/aristanetworks/tra…
tatanithin Sep 26, 2023
e302226
uilanding container version updated to fix servers issues in containe…
tatanithin Sep 26, 2023
202fec2
updated uilanding to fix GUI URL issues
tatanithin Sep 26, 2023
12b8400
Update uilanding.py
tatanithin Sep 27, 2023
3eec429
adding support for 2023.2
tatanithin Oct 10, 2023
284f0fb
added for files for dual topo
tatanithin Oct 22, 2023
446d5e5
Update eosStartup.sh
tatanithin Oct 22, 2023
34444c1
added vtepinfo container
tatanithin Oct 22, 2023
92916a4
Merge branch 'nested/2023.2' of https://github.com/aristanetworks/tra…
tatanithin Oct 22, 2023
00d34b7
update vethinfo file
tatanithin Oct 22, 2023
ce6d495
Update topo_build.yml
tatanithin Oct 25, 2023
ba96594
added folders for training level 1,2,3 container labs
tatanithin Nov 7, 2023
866444d
Update topo_build.yml
tatanithin Nov 7, 2023
db47275
Update topo_build.yml
tatanithin Nov 7, 2023
b552a7f
Update topo_build.yml
tatanithin Nov 7, 2023
ddfcf96
updated management1 to management0
tatanithin Nov 7, 2023
b14df02
management1 to management0
tatanithin Nov 7, 2023
0de0c97
Management1 to Management0 for containerlabs
tatanithin Nov 7, 2023
b1df54d
removed dns
tatanithin Nov 7, 2023
fcf1384
Update topo_build.yml
tatanithin Nov 7, 2023
0c2e07f
Update topo_build.yml
tatanithin Nov 7, 2023
faee07d
Update cvp_info.yaml
tatanithin Nov 7, 2023
cf700f5
removed no lldp receive
tatanithin Nov 7, 2023
6a38985
Merge branch 'nested/2023.2' of https://github.com/aristanetworks/tra…
tatanithin Nov 7, 2023
7888abd
Update topo_build.yml
tatanithin Nov 7, 2023
a7c68e5
Update topo_build.yml
tatanithin Nov 7, 2023
998b484
Update topo_build.yml
tatanithin Nov 7, 2023
edc9e6b
removed lldp transmit
tatanithin Nov 7, 2023
643ce32
Merge branch 'nested/2023.2' of https://github.com/aristanetworks/tra…
tatanithin Nov 7, 2023
1eaf3b0
updated cl level 1-3 with containerlabs
tatanithin Nov 8, 2023
55508a3
The changes made in this commit include:
Nov 8, 2023
816e2ba
Merge pull request #18 from aristanetworks/Add-l2-configlets-from-Sasa
rparkinarista Nov 9, 2023
1563e4c
fix menu
Nov 9, 2023
0142c59
Merge pull request #19 from aristanetworks/Add-l2-configlets-from-Sasa
rparkinarista Nov 9, 2023
a5fb21c
add new configlets to L2 container labs
rparkinarista Nov 9, 2023
1dc5d7b
Merge pull request #20 from aristanetworks/Add-more-configlets
rparkinarista Nov 9, 2023
de3c3da
update lab names
rparkinarista Nov 13, 2023
88c781d
Merge pull request #21 from aristanetworks/update-lab-names
rparkinarista Nov 13, 2023
c22c3a5
fix typo
rparkinarista Nov 13, 2023
11ad85a
Merge pull request #22 from aristanetworks/update-lab-names
rparkinarista Nov 13, 2023
f9a2181
updates to lab menu
rparkinarista Nov 13, 2023
a56660c
Merge pull request #23 from aristanetworks/update-lab-names
rparkinarista Nov 13, 2023
47df134
The changes made in this commit include:
Nov 13, 2023
d7c3eb3
Merge pull request #24 from aristanetworks/fix-typo-in-lab-menu
rparkinarista Nov 13, 2023
9da2e33
The changes made in this commit include:
Nov 15, 2023
a850910
Merge pull request #25 from aristanetworks/update-l3-menu
rparkinarista Nov 15, 2023
ba0cbd7
Update ATD-INFRA
tatanithin Nov 15, 2023
43ddc28
Update ATD-INFRA
tatanithin Nov 15, 2023
676d657
The changes made in this commit include:
Nov 17, 2023
a6a7643
Merge pull request #26 from aristanetworks/add-reset-l3
rparkinarista Nov 17, 2023
ff0b221
added new folder to work with dual topo
tatanithin Nov 20, 2023
23638be
The changes made in this commit include:
Nov 30, 2023
78ee5ff
Merge pull request #29 from aristanetworks/fix-config-typos
rparkinarista Nov 30, 2023
0782859
Update uilanding.py
tatanithin Nov 30, 2023
3a7221a
Update uilanding.py
tatanithin Nov 30, 2023
bff505e
Update training-l3.yaml
rparkinarista Dec 4, 2023
8d35767
Update Leaf1-OSPFMultiaArea-Start
rparkinarista Dec 4, 2023
f2327fc
Update training-l3.yaml
rparkinarista Dec 4, 2023
a3a2f8d
- Add Multicast start to container labs
rparkinarista Dec 7, 2023
53d5804
Merge pull request #31 from aristanetworks/add-multicast-base
rparkinarista Dec 7, 2023
c0442d4
Update training-l3.yaml
rparkinarista Dec 12, 2023
3a352a7
added training-fxg topo
tatanithin Dec 21, 2023
4fe9f16
added folders for GUI in training-fxg
tatanithin Dec 21, 2023
491dfa5
fix topo_build file for taining_fxg
tatanithin Dec 21, 2023
5f670b0
updated img and added coords for training-fxg
tatanithin Dec 21, 2023
a270673
added ACCESS-2-BASE to cvp_info file
tatanithin Dec 21, 2023
ee1f2fe
added filed for training-fxf topology
tatanithin Dec 21, 2023
8c0b4e0
Update topo_build.yml
rparkinarista Dec 22, 2023
550bf9c
modified image maps for training fxg
tatanithin Dec 22, 2023
ee01847
updated image map
tatanithin Dec 22, 2023
5e64328
Update Access-1-BASE
sasakariz1 Dec 28, 2023
2e8808d
Update Access-2-BASE
sasakariz1 Dec 28, 2023
aa4efd1
Update Core-1-BASE
sasakariz1 Dec 28, 2023
3c87bf9
Update Core-2-BASE
sasakariz1 Dec 28, 2023
3e8814a
Update Router-1-BASE
sasakariz1 Dec 28, 2023
48123db
Update Router-2-BASE
sasakariz1 Dec 28, 2023
c9fcf73
Update Wan-1-BASE
sasakariz1 Dec 28, 2023
47e9dce
renamed folders as per nested-release
tatanithin Jan 3, 2024
d6ab872
rename folder to match expect folder in image for single instance dep…
rparkinarista Jan 9, 2024
d4f5d66
update L2 folder to match expected for single image instance
rparkinarista Jan 9, 2024
5278026
update L1 to match folder for single instance image
rparkinarista Jan 9, 2024
6408787
Update training-l3.yaml
rparkinarista Jan 9, 2024
37dad08
fixed uilanding timer issue
tatanithin Jan 15, 2024
96ac083
added support for labguides
tatanithin Jan 17, 2024
17a1015
updating labguides decker-compose
tatanithin Jan 17, 2024
5e2310f
renamed cl topo folders
tatanithin Jan 17, 2024
074ae8e
updated uilanding and docker compose to remove PDF from labguides menu
tatanithin Jan 18, 2024
8427c6c
Update - FXG with reset menu
rparkinarista Jan 19, 2024
38e7c1f
remove servers and replaces them with switches
rparkinarista Jan 22, 2024
7ea9f92
Merge pull request #32 from aristanetworks/update-FXG-base_topo
rparkinarista Jan 22, 2024
140c8de
Update training-l3.yaml
tatanithin Jan 22, 2024
782d82c
Update topo_build.yml
tatanithin Jan 22, 2024
8730716
Update topo_build.yml
rparkinarista Jan 22, 2024
984912c
added code in atdstartup to handle auto updation of labguides from go…
tatanithin Jan 22, 2024
56d13d3
Update topo_build.yml
rparkinarista Jan 22, 2024
2c86b85
added project functionality to differentiate between projects
tatanithin Jan 22, 2024
961746b
Merge branch 'nested/2023.2' of https://github.com/aristanetworks/tra…
tatanithin Jan 22, 2024
a74fb63
Update metadata.yml
tatanithin Jan 22, 2024
06e5526
added hosts for cvp configs
tatanithin Jan 22, 2024
980b778
Update Router-2-BASE
tatanithin Jan 23, 2024
0ae841f
Update host-11-BASE
sasakariz1 Jan 23, 2024
b5c56bb
Update host-12-BASE
sasakariz1 Jan 23, 2024
baa0a3a
Merge pull request #33 from aristanetworks/sasakariz1-patch-1
sasakariz1 Jan 23, 2024
9f1b820
Update host-1-BASE
sasakariz1 Jan 23, 2024
7d8e87f
Merge pull request #34 from aristanetworks/sasakariz1-patch-2
sasakariz1 Jan 23, 2024
3be991d
Changes related tacacs and syslog
tatanithin Jan 25, 2024
08e07df
updated syslog permission issue
tatanithin Jan 25, 2024
f981b30
fixes in syslog permission issue
tatanithin Jan 25, 2024
11e4fc3
added 172.18.0.1 folder to fix permission issue
tatanithin Jan 26, 2024
a819533
updated metadata.xml with new labguide zip details
tatanithin Jan 26, 2024
ed66449
adding new directory to fix issues with syslog
tatanithin Jan 26, 2024
616ba01
updating tacacs config file
tatanithin Jan 26, 2024
edf3738
updated atdstartuo.sh and metadat.xml for auto-updation of topo with …
tatanithin Jan 29, 2024
b43eb94
updated branch name for l1 for metadata.yml
tatanithin Jan 29, 2024
4bc9c04
testing latest branchname feature
tatanithin Jan 29, 2024
8bb92f8
updating metadata.yml for auto update
tatanithin Jan 29, 2024
90eb0fa
Update metadata.yml
tatanithin Jan 29, 2024
bef3694
Update metadata.yml
JNorden-Arista Jan 30, 2024
3c9f9ae
Update metadata.yml
JNorden-Arista Jan 30, 2024
bfdfb92
Update atdStartup.sh
tatanithin Jan 30, 2024
ed54758
fixing project variable
tatanithin Jan 31, 2024
c6db388
Update host-1-BASE
sasakariz1 Jan 31, 2024
ff39436
Merge pull request #35 from aristanetworks/sasakariz1-patch-3
sasakariz1 Jan 31, 2024
12666fd
changing labmenu response to
tatanithin Jan 31, 2024
247c115
Update docker-compose.yml
tatanithin Jan 31, 2024
9421794
fixing js for labmenu
tatanithin Feb 1, 2024
293bb75
Update training-l3.yaml
sasakariz1 Feb 5, 2024
23fc844
fix image mapping issues
tatanithin Feb 5, 2024
8803a4f
Update modules.yaml
tatanithin Feb 5, 2024
eebff59
Update modules.yaml
tatanithin Feb 5, 2024
69a38a9
Update modules.yaml
rparkinarista Feb 6, 2024
aa9932d
Update metadata.yml
JNorden-Arista Feb 6, 2024
6754813
Update metadata.yml
JNorden-Arista Feb 6, 2024
b730c2f
Update modules.yaml
rparkinarista Feb 7, 2024
9d828bc
updated l4-exam as per 2021.2
tatanithin Feb 7, 2024
6939dce
Update host-12-BASE
sasakariz1 Feb 8, 2024
b11cfd0
load Wan-1 config
rparkinarista Feb 9, 2024
665d7ca
Merge pull request #40 from aristanetworks/add-configlets
rparkinarista Feb 9, 2024
8234298
test no configlets
rparkinarista Feb 9, 2024
a8b84ed
Merge pull request #41 from aristanetworks/add-configlets
rparkinarista Feb 9, 2024
fa0531a
creating avd lab
tatanithin Feb 12, 2024
2061298
🛠️ ATD-INFRA -> NTP & RADIUS source changed to Management1
rparkinarista Feb 13, 2024
26e95f2
Update host-11-BASE
sasakariz1 Feb 13, 2024
1a73052
Update host-12-BASE
sasakariz1 Feb 13, 2024
b20f345
Update host-1-BASE
sasakariz1 Feb 13, 2024
6c805cc
Merge pull request #44 from aristanetworks/add-FXF
rparkinarista Feb 13, 2024
321c2fc
Merge pull request #45 from aristanetworks/sasakariz1-patch-7
rparkinarista Feb 13, 2024
4ba444e
Merge pull request #46 from aristanetworks/sasakariz1-patch-8
rparkinarista Feb 13, 2024
f574f2a
Merge pull request #47 from aristanetworks/sasakariz1-patch-9
rparkinarista Feb 13, 2024
f0ac1fa
added syslog and tacacs
tatanithin Feb 13, 2024
cbc148b
Update topo_build.yml
rparkinarista Feb 13, 2024
b0f2ec3
🛠️ topologies/training-fxf/topo_build.yml -> Renamed devices to host-…
rparkinarista Feb 13, 2024
eb1ed72
Merge branch 'nested/2023.2' into add-FXF
rparkinarista Feb 13, 2024
4def7f3
Merge pull request #48 from aristanetworks/add-FXF
rparkinarista Feb 13, 2024
54544ca
🛠️ topologies/training-fxf/configlets/host-12-BASE -> Updated IP and …
rparkinarista Feb 13, 2024
e7a03e4
Merge pull request #49 from aristanetworks/update-fxf
rparkinarista Feb 13, 2024
b4522c8
🛠️ topologies/training-fxf/files/cvp/cvp_info.yaml -> Updated host ma…
rparkinarista Feb 13, 2024
eb7d792
Merge pull request #50 from aristanetworks/update-fxf
rparkinarista Feb 13, 2024
87804bc
Update cvp_info.yaml
rparkinarista Feb 14, 2024
25e8ad3
Update docker-compose.yml
tatanithin Feb 14, 2024
226a8d8
Update host-11-BASE
sasakariz1 Feb 19, 2024
0168b22
Update host-12-BASE
sasakariz1 Feb 19, 2024
ff6ab0b
Update host-1-BASE
sasakariz1 Feb 19, 2024
bdd3227
Update host-1-BASE
sasakariz1 Feb 20, 2024
72e8ef6
Update host-12-BASE
sasakariz1 Feb 20, 2024
f69ea25
Update host-14-BASE
sasakariz1 Feb 20, 2024
0700e3c
Update host-11-BASE
sasakariz1 Feb 20, 2024
12fcb78
Update modules.yaml
tatanithin Feb 22, 2024
dbfbc3a
Update modules.yaml
tatanithin Feb 22, 2024
f3a9558
Update Wan-1-BASE
sasakariz1 Feb 23, 2024
09fcb42
created fxf-ceos folder
tatanithin Feb 26, 2024
ba3aaf1
Update topo_build.yml
sasakariz1 Feb 26, 2024
5e12f2d
Merge pull request #55 from aristanetworks/sasakariz1-patch-17
tatanithin Feb 26, 2024
7d69319
Update cvp_info.yaml
tatanithin Feb 26, 2024
511bb15
updated host GUI files
tatanithin Feb 26, 2024
3a8b446
Merge branch 'nested/2023.2' of https://github.com/aristanetworks/tra…
tatanithin Feb 26, 2024
efec86f
Update Access-1-BASE
sasakariz1 Feb 26, 2024
9e6c799
Update Access-2-BASE
sasakariz1 Feb 26, 2024
ac2833c
Update Core-1-BASE
sasakariz1 Feb 26, 2024
ac73471
Update Core-2-BASE
sasakariz1 Feb 26, 2024
4697ed2
Update Router-1-BASE
sasakariz1 Feb 26, 2024
5366c65
Update Router-2-BASE
sasakariz1 Feb 26, 2024
3db3060
Update Wan-1-BASE
sasakariz1 Feb 26, 2024
0ff71d8
Update ATD-INFRA
sasakariz1 Feb 26, 2024
5ed3ded
Delete topologies/training-fxf-ceos/configlets/host-1-BASE
sasakariz1 Feb 26, 2024
f7920db
Delete topologies/training-fxf-ceos/configlets/host-12-BASE
sasakariz1 Feb 26, 2024
98d1c88
Delete topologies/training-fxf-ceos/configlets/host-14-BASE
sasakariz1 Feb 26, 2024
356f8ae
Delete topologies/training-fxf-ceos/configlets/Wan-1-OSPF
sasakariz1 Feb 26, 2024
c555765
Update Wan-1-BASE
sasakariz1 Feb 26, 2024
eb5f15e
Update Wan-1-BASE
sasakariz1 Feb 29, 2024
d315738
Update Wan-1-BASE
sasakariz1 Feb 29, 2024
1f78bf0
Merge pull request #56 from aristanetworks/sasakariz1-patch-20
tatanithin Feb 29, 2024
85f7285
Update Wan-1-BASE
sasakariz1 Mar 1, 2024
c7b501e
Merge pull request #57 from aristanetworks/sasakariz1-patch-21
sasakariz1 Mar 1, 2024
df9fe2e
changed hosts as severs
tatanithin Mar 1, 2024
68088bc
Update atdStartup.sh
tatanithin Mar 1, 2024
df1000e
fixed server details in topobuild
tatanithin Mar 1, 2024
d7f7d5b
Update Router-2-BASE
tatanithin Mar 1, 2024
e65486f
Update Wan-1-BASE
sasakariz1 Mar 1, 2024
552a020
fixed host
tatanithin Mar 2, 2024
01fccd3
fixed fxf topology
tatanithin Mar 3, 2024
b4642d4
remove terminattr from configs
rparkinarista Mar 7, 2024
279477d
Merge pull request #59 from aristanetworks/Fix-l2-configlets
rparkinarista Mar 7, 2024
4db8a6f
Update metadata.yml
JNorden-Arista Mar 12, 2024
d720422
Update metadata.yml
JNorden-Arista Mar 12, 2024
55d193e
added training-level-part-2
tatanithin Mar 12, 2024
e6b75aa
add new L7-p2-test2 topology folder
rparkinarista Mar 13, 2024
22cc2d2
Merge pull request #60 from aristanetworks/added-P2-test1-and-test2
rparkinarista Mar 13, 2024
8d1b57d
L7Par2Topo1
sasakariz1 Mar 13, 2024
05a27e5
L7_Part2-top1
sasakariz1 Mar 13, 2024
9b9c78f
l7p2
sasakariz1 Mar 13, 2024
739d7f5
l7p2-top1
sasakariz1 Mar 13, 2024
b816940
L7p2-top1 build fix
sasakariz1 Mar 13, 2024
36f6170
L7-P2-Top1
sasakariz1 Mar 13, 2024
664ff5a
L7-Part3-top1
sasakariz1 Mar 13, 2024
719fef7
Create PE31-BASE
sasakariz1 Mar 13, 2024
b1ff98f
Update PE31-BASE
sasakariz1 Mar 13, 2024
8eae18b
Update PE31-BASE
sasakariz1 Mar 13, 2024
df77a65
L7-Part2-top1
sasakariz1 Mar 13, 2024
c865caf
Merge branch 'Sasa-L7-Part2' of github.com:aristanetworks/training-in…
sasakariz1 Mar 13, 2024
b7bba62
P31
sasakariz1 Mar 14, 2024
989bc2e
Cvp_info.yaml file deployed
sasakariz1 Mar 14, 2024
239127d
yaml infor file deployed
sasakariz1 Mar 14, 2024
530fae8
file deployed
sasakariz1 Mar 14, 2024
7c977fb
L7-Part2-Top2 cvp_yaml file defined
sasakariz1 Mar 14, 2024
37df4a0
L7-Part2-Top2 cvp_yaml file defined
sasakariz1 Mar 14, 2024
8d37de2
L7-Part2-Core-Top2
sasakariz1 Mar 14, 2024
e879b39
L7-Par2-Top2 Baselines Added
sasakariz1 Mar 15, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions nested-labvm/atd-docker/coder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ RUN sudo apt update && \

RUN sudo pip3 install --upgrade pip

RUN sudo pip3 install pyeapi jsonrpclib-pelix shyaml
RUN sudo pip3 install pyeapi jsonrpclib-pelix shyaml ansible-pylibssh

RUN wget --quiet https://raw.githubusercontent.com/aristanetworks/ansible-avd/devel/ansible_collections/arista/avd/requirements.txt

Expand All @@ -16,7 +16,7 @@ RUN wget --quiet https://raw.githubusercontent.com/aristanetworks/ansible-avd/de
RUN sudo pip3 install -r requirements-dev.txt

# Install arista.avd, community.general and ansible.posix ansible-galaxy collections with upgrade flag if already exists
RUN ansible-galaxy collection install arista.avd --upgrade
RUN ansible-galaxy collection install arista.avd --force

RUN ansible-galaxy collection install community.general --upgrade

Expand Down
5 changes: 3 additions & 2 deletions nested-labvm/atd-docker/cvpUpdater/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ RUN curl -SsL https://github.com/boxboat/fixuid/releases/download/v0.5/fixuid-0.
printf "user: arista\ngroup: arista\npaths:\n - /home/arista\n - /home/arista/CVP_DATA\n" > /etc/fixuid/config.yml

RUN pip install rcvpapi \
ruamel.yaml

ruamel.yaml \
cvprac paramiko scp

RUN mkdir -p /home/arista/CVP_DATA

WORKDIR /home/arista
Expand Down
36 changes: 33 additions & 3 deletions nested-labvm/atd-docker/cvpUpdater/src/cvpUpdater.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#!/usr/bin/env python


from cvprac.cvp_client import CvpClient
from ruamel.yaml import YAML
from rcvpapi.rcvpapi import *
import requests, json
from paramiko import SSHClient
from paramiko import AutoAddPolicy
from scp import SCPClient
from os import path, listdir, system
from sys import exit
from time import sleep
Expand All @@ -20,6 +22,7 @@
# Temporary file_path location for CVP Custom info
cvp_file = '/home/arista/cvp/cvp_info.yaml'


# ==================================
# Start of Global Functions
# ==================================
Expand Down Expand Up @@ -198,6 +201,9 @@ def main():
cvpPassword = atd_yaml['login_info']['jump_host']['pw']
while not cvp_clnt:
try:
cvprac_clnt = CvpClient()
cvprac_clnt.api.request_timeout = 180
cvprac_clnt.connect([atd_yaml['nodes']['cvp'][0]['ip']], cvpUsername, cvpPassword)
cvp_clnt = CVPCON(atd_yaml['nodes']['cvp'][0]['ip'], cvpUsername, cvpPassword)
pS("OK","Connected to CVP at {0}".format(atd_yaml['nodes']['cvp'][0]['ip']))
except:
Expand All @@ -220,6 +226,30 @@ def main():
pS("INFO", "CVP will be bare and no configuration.")
return(True)
if cvp_clnt:
# ==========================================
# Check the current version to see if a
# token needs to be generated
# ==========================================
_version = cvprac_clnt.api.get_cvp_info()
_version = _version['version'].split('.')
_version_major = float(f"{_version[0]}.{_version[1]}")
# Perform check if it is a cEOS based topo and 2022.2 or later CVP
if _version_major >= 2022.2 and (atd_yaml['eos_type'] == 'ceos' or atd_yaml['eos_type'] == 'container-labs'):
pS("INFO", "Generating a token for onboarding...")
_token_response = cvprac_clnt.api.create_enroll_token("24h")
_token_path = path.expanduser(f"~/token")
with open(f"{_token_path}", 'w') as token_out:
token_out.write(_token_response['data'])
for _node in eos_info:
with SSHClient() as ssh:
ssh.set_missing_host_key_policy(AutoAddPolicy())
ssh.connect(_node.ip, username=cvpUsername, password=cvpPassword,)
with SCPClient(ssh.get_transport()) as scp:
pS("INFO", f"Transferring token to {_node.hostname}")
scp.put(f"{_token_path}", "/tmp/token")
else:
pS("INFO", f"Version does not require a token for onboarding...")

# ==========================================
# Check to see how many nodes have connected
# ==========================================
Expand Down Expand Up @@ -391,4 +421,4 @@ def main():
else:
pS("OK","CVP is already configured")
while True:
sleep(600)
sleep(600)
43 changes: 36 additions & 7 deletions nested-labvm/atd-docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ services:
- /home/arista/arista-dir:/home/arista:rw
login:
container_name: atd-login
image: us.gcr.io/atd-testdrivetraining-dev/atddocker_login:1.0.5
image: us.gcr.io/atd-testdrivetraining-dev/atddocker_login:1.0.16
user: $ArID:$ArGD
restart: always
hostname: devbox
Expand All @@ -41,7 +41,7 @@ services:
- /var/run/libvirt/libvirt-sock:/var/run/libvirt/libvirt-sock:ro
cvpupdater:
container_name: atd-cvpupdater
image: us.gcr.io/atd-testdrivetraining-dev/atddocker_cvpupdater:1.0.0
image: us.gcr.io/atd-testdrivetraining-dev/atddocker_cvpupdater:2.0.2
user: $ArID:$ArGD
restart: always
environment:
Expand All @@ -53,7 +53,7 @@ services:
- cvp_dir:/home/arista/CVP_DATA:rw
gitconfigletsync:
container_name: atd-gitconfigletsync
image: us.gcr.io/atd-testdrivetraining-dev/atddocker_gitconfigletsync:1.0.0
image: us.gcr.io/atd-testdrivetraining-dev/atddocker_gitconfigletsync:2.0.0
user: $ArID:$ArGD
restart: always
environment:
Expand Down Expand Up @@ -85,25 +85,54 @@ services:
- /opt/ceos:/opt/ceos:rw
uilanding:
container_name: atd-uilanding
image: us.gcr.io/atd-testdrivetraining-dev/atddocker_uilanding:1.0.0
image: us.gcr.io/atd-testdrivetraining-dev/atddocker_uilanding:1.0.16
restart: always
environment:
- PYTHONUNBUFFERED=1
volumes:
- /etc/atd:/etc/atd:ro
- /opt/atd:/opt/atd:ro
- /home/arista/arista-dir/apps/uilanding:/opt/modules:ro
- /home/arista/arista-dir/menus:/opt/menus:rw
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- atd_nginx
labguides:
container_name: atd-labguides
image: us.gcr.io/atd-testdrivetraining-dev/atddocker_labguides:1.0.0
image: us.gcr.io/atd-testdrivetraining-dev/atddocker_labguides:1.0.1
restart: always
environment:
- PYTHONUNBUFFERED=1
volumes:
- /etc/atd:/etc/atd:ro
- /opt/atd:/opt/atd:ro
- /opt/labguides/web/:/root/labguides/web/:rw
networks:
- atd_nginx
syslog:
container_name: atd-syslog
image: us.gcr.io/atd-testdrivetraining-dev/atddocker_syslog:1.0.1
restart: always
environment:
- PYTHONUNBUFFERED=1
volumes:
- /home/arista/arista-dir/apps/syslog/:/var/log/remote/:rw
ports:
- "1514:1514"
- "1514:1514/udp"
networks:
- atd_nginx
tacacs:
container_name: atd-tacacs
image: us.gcr.io/atd-testdrivetraining-dev/atddocker_tacacs:1.0.0
restart: always
environment:
- PYTHONUNBUFFERED=1
volumes:
- /home/arista/arista-dir/apps/tacacs/config:/etc/tac_plus/tac_user.cfg:ro
- /home/arista/arista-dir/apps/tacacs/tac.log:/var/log/tac_plus.log:rw
ports:
- "49:49"
networks:
- atd_nginx
freerad:
Expand All @@ -117,7 +146,7 @@ services:
- "1813:1813/udp"
nginx:
container_name: atd-nginx
image: us.gcr.io/atd-testdrivetraining-dev/atddocker_nginx:1.0.2
image: us.gcr.io/atd-testdrivetraining-dev/atddocker_nginx:1.0.5
restart: always
depends_on:
- uilanding
Expand Down Expand Up @@ -158,7 +187,7 @@ services:
- ./jenkins/src/groovy/users.groovy.override:/usr/share/jenkins/ref/init.groovy.d/users.groovy.override:rw
coder:
container_name: atd-coder
image: us.gcr.io/atd-testdrivetraining-dev/atddocker_coder:1.0.1
image: us.gcr.io/atd-testdrivetraining-dev/atddocker_coder:1.0.2
restart: always
user: $ArID:$ArGD
command: /home/coder/project
Expand Down
5 changes: 5 additions & 0 deletions nested-labvm/atd-docker/docker_run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

echo "Starting one-time containers"

docker run -d --rm -e PYTHONUNBUFFERED=1 --name atd-vtepinfo -v /etc/atd:/etc/atd:rw us.gcr.io/atd-testdrivetraining-dev/atddocker_vtepinfo:0.1.9
5 changes: 3 additions & 2 deletions nested-labvm/atd-docker/gitConfigletSync/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ RUN curl -SsL https://github.com/boxboat/fixuid/releases/download/v0.5/fixuid-0.
RUN pip install rcvpapi \
cvprac \
Pyyaml \
ruamel.yaml

ruamel.yaml \
paramiko \
scp
RUN mkdir -p /home/arista/CVP_DATA

WORKDIR /home/arista
Expand Down
Loading