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

Sasa l7 part2 v3 files added #75

Open
wants to merge 472 commits into
base: nested-release
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
472 commits
Select commit Hold shift + click to select a range
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
fb49a81
Merge pull request #61 from aristanetworks/Sasa-L7-Part2
sasakariz1 Mar 13, 2024
2241ac0
Update topo_build.yml
tatanithin Mar 13, 2024
4ba9fe3
Update topo_build.yml
tatanithin Mar 13, 2024
739d7f5
l7p2-top1
sasakariz1 Mar 13, 2024
65622d0
Merge pull request #62 from aristanetworks/Sasa-L7-Part2
sasakariz1 Mar 13, 2024
4f27556
Update topo_build.yml
tatanithin Mar 13, 2024
f0a5612
Update topo_build.yml
tatanithin Mar 13, 2024
b816940
L7p2-top1 build fix
sasakariz1 Mar 13, 2024
7ebf57a
Merge pull request #63 from aristanetworks/Sasa-L7-Part2
sasakariz1 Mar 13, 2024
36f6170
L7-P2-Top1
sasakariz1 Mar 13, 2024
082f3c6
Merge pull request #64 from aristanetworks/Sasa-L7-Part2
sasakariz1 Mar 13, 2024
664ff5a
L7-Part3-top1
sasakariz1 Mar 13, 2024
3b690fd
Merge pull request #65 from aristanetworks/Sasa-L7-Part2
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
aba3697
Merge pull request #66 from aristanetworks/Sasa-L7-Part2
tatanithin Mar 14, 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
a44a278
Merge pull request #67 from aristanetworks/Sasa-L7-Part2
sasakariz1 Mar 14, 2024
55aeaf4
Update ISP references
rparkinarista Mar 14, 2024
9bf0880
Fix case - again!
rparkinarista Mar 14, 2024
530fae8
file deployed
sasakariz1 Mar 14, 2024
5c7901f
Merge pull request #68 from aristanetworks/Sasa-L7-Part2
sasakariz1 Mar 14, 2024
7c977fb
L7-Part2-Top2 cvp_yaml file defined
sasakariz1 Mar 14, 2024
f113338
Merge pull request #69 from aristanetworks/Sasa-L7-Part2
sasakariz1 Mar 14, 2024
37df4a0
L7-Part2-Top2 cvp_yaml file defined
sasakariz1 Mar 14, 2024
5dccc91
Merge pull request #70 from aristanetworks/Sasa-L7-Part2
sasakariz1 Mar 14, 2024
8d37de2
L7-Part2-Core-Top2
sasakariz1 Mar 14, 2024
84e8cae
Merge pull request #71 from aristanetworks/Sasa-L7-Part2
sasakariz1 Mar 14, 2024
2c0fe78
adding training-level-cvp lab
tatanithin Mar 15, 2024
b28a898
Update PE22-BASE
tatanithin Mar 15, 2024
e879b39
L7-Par2-Top2 Baselines Added
sasakariz1 Mar 15, 2024
9318279
Merge pull request #72 from aristanetworks/Sasa-L7-Part2
sasakariz1 Mar 15, 2024
0c4919a
add l1-me labs
rparkinarista Mar 15, 2024
9fc8ecf
Merge pull request #73 from aristanetworks/l1-me
rparkinarista Mar 15, 2024
57bbce9
Update metadata.yml
JNorden-Arista Mar 18, 2024
0cc49a2
Update metadata.yml
JNorden-Arista Mar 18, 2024
a70b111
Update kvm-topo-builder.py
tatanithin Mar 19, 2024
a0582ea
updated cvp_ram: 32
tatanithin Mar 19, 2024
9314907
created labguides v-2 container
tatanithin Mar 27, 2024
ed1c774
updated topos with cvp_ram : 32
tatanithin Mar 27, 2024
6bef1c2
Update lgbuild.py
JNorden-Arista Mar 27, 2024
25dd269
Update docker-compose.yml
tatanithin Mar 28, 2024
c16f0ff
fixing docker version errors
tatanithin Mar 28, 2024
0da4935
added training-level7-part2-v3
tatanithin Apr 2, 2024
a213f8f
Update topo_build.yml
sasakariz1 Apr 2, 2024
2eab85c
L7-Par2-version3 files
sasakariz1 Apr 2, 2024
2d4c011
L7-Part2-Version3 new files
sasakariz1 Apr 2, 2024
fdd5d65
L7-Part2-Version3 new files
sasakariz1 Apr 3, 2024
56918c2
L7 Part2-Version 3 yaml file fixes
sasakariz1 Apr 3, 2024
07cce96
Delete topologies/training-level7-part2-v3/atd-topo.png
sasakariz1 Apr 3, 2024
568b5aa
Add files via upload
sasakariz1 Apr 3, 2024
ab3e6fe
L7 Part 2 Yaml
sasakariz1 Apr 3, 2024
21a1b41
Merge branch 'sasa-l7-part2-v3' of https://github.com/aristanetworks/…
sasakariz1 Apr 3, 2024
5cd66f2
GW31
sasakariz1 Apr 3, 2024
3d94d47
Delete topologies/training-level7-part2-v3/atd-topo.png
sasakariz1 Apr 4, 2024
897d612
Add files via upload
sasakariz1 Apr 4, 2024
051387b
GW31
sasakariz1 Apr 4, 2024
4e301bf
Create leaf1-DC1-PRECONFIG
sasakariz1 Apr 4, 2024
338ce0b
Create leaf2-DC1-PRECONFIG
sasakariz1 Apr 4, 2024
bf1976c
Create leaf3-DC1-PRECONFIG
sasakariz1 Apr 4, 2024
7f469c0
Create leaf4-DC1-PRECONFIG
sasakariz1 Apr 4, 2024
fa6b79f
Create spine1-DC1-PRECONFIG
sasakariz1 Apr 4, 2024
7f41801
Create spine2-DC1-PRECONFIG
sasakariz1 Apr 4, 2024
d5b0eae
Create spine3-DC1-PRECONFIG
sasakariz1 Apr 4, 2024
f5dc834
Update cvp_info.yaml with new PRECONFIG files for L7 PArt2 v3
sasakariz1 Apr 4, 2024
4ab1272
Update leaf1-DC1-PRECONFIG
sasakariz1 Apr 4, 2024
09378da
Update leaf2-DC1-PRECONFIG
sasakariz1 Apr 4, 2024
a917819
Update leaf3-DC1-PRECONFIG
sasakariz1 Apr 4, 2024
56040fa
Update leaf4-DC1-PRECONFIG
sasakariz1 Apr 4, 2024
d817205
Update spine1-DC1-PRECONFIG
sasakariz1 Apr 4, 2024
15e935e
Update spine2-DC1-PRECONFIG
sasakariz1 Apr 4, 2024
e2220c8
Update spine3-DC1-PRECONFIG
sasakariz1 Apr 4, 2024
ec090f1
Create leaf2-DC3-PRECONFIG
sasakariz1 Apr 4, 2024
f6ab68c
Create leaf1-DC3-PRECONFIG
sasakariz1 Apr 4, 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)
58 changes: 51 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,69 @@ 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

labguides-v2:
container_name: atd-labguides-v2
image: us.gcr.io/atd-testdrivetraining-dev/atddocker_labguides-v2:1.0.2
restart: on-failure
environment:
- PYTHONUNBUFFERED=1
volumes:
- /etc/atd:/etc/atd:ro
- /opt/atd:/opt/atd:ro
- /opt/labguides/web/:/html/:rw
- /etc/atd/ACCESS_INFO.yaml:/ACCESS_INFO.yaml:ro
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 +161,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 +202,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