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

Nested/2023.2 dual #94

Open
wants to merge 336 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
336 commits
Select commit Hold shift + click to select a range
37b59ce
fix topobuild for cisco labs
tatanithin Aug 10, 2023
3e6bdb6
fixing border leaf cisco labs
tatanithin Aug 10, 2023
e2a0899
fixing border leaf cisco labs
tatanithin Aug 10, 2023
918d26d
fix cisco topo_buold file
tatanithin Aug 10, 2023
7173d86
fix topobuild for ciscolabs
tatanithin Aug 10, 2023
bc42b17
fix for ciscolabs
tatanithin Aug 10, 2023
ef705c5
update L7 based on 2021.3
Aug 16, 2023
618d2a4
modified coder dockerfile for avd4
tatanithin Aug 16, 2023
a537d51
Merge branch 'nested/2022.3' of https://github.com/aristanetworks/tra…
tatanithin Aug 16, 2023
0129caf
updated coder docker image version
tatanithin Aug 16, 2023
2f55d3d
fixing file names for base configs
tatanithin Aug 20, 2023
189cf97
fixing file names for base configs
tatanithin Aug 20, 2023
f2b5fd0
fixing IP conflict issue
tatanithin Aug 23, 2023
e0ad607
updated CVP and hosts yaml
tatanithin Aug 23, 2023
ab18bcf
Update cvp_info.yaml
tatanithin Aug 28, 2023
61d2130
Update cvp_info.yaml
tatanithin Aug 28, 2023
aa39fd4
Update topo_build.yml
tatanithin Aug 28, 2023
33f7e46
Rename Borderleaf1-base to borderleaf1-base
tatanithin Aug 28, 2023
d650b1e
Rename Borderleaf2-base to borderleaf2-base
tatanithin Aug 28, 2023
2df7e36
Update cvp_info.yaml
tatanithin Aug 28, 2023
b9d558f
Update borderleaf1-base
tatanithin Aug 28, 2023
32cc0ef
Update ATD-INFRA
tatanithin Aug 30, 2023
12632e8
Update spine1-DC1-BASE
tatanithin Aug 30, 2023
62be293
Update ATD-INFRA
tatanithin Aug 30, 2023
f0afa80
modified management1 to management0
tatanithin Aug 31, 2023
01b4671
Update borderleaf1-base
sasakariz1 Sep 21, 2023
80b7c19
Update borderleaf2-base
sasakariz1 Sep 21, 2023
88b3a66
Update host1-base
sasakariz1 Sep 21, 2023
2c7485f
Update host10-base
sasakariz1 Sep 21, 2023
8fa8d62
Update host2-base
sasakariz1 Sep 21, 2023
c162679
Update host3-base
sasakariz1 Sep 21, 2023
2b77b1a
Update host4-base
sasakariz1 Sep 21, 2023
0781e48
Update leaf3-base
sasakariz1 Sep 21, 2023
94113a2
Update leaf4-base
sasakariz1 Sep 21, 2023
989cfd4
Update spine1-base
sasakariz1 Sep 21, 2023
911ca47
Update spine2-base
sasakariz1 Sep 21, 2023
1dd5a18
Update spine3-base
sasakariz1 Sep 21, 2023
69f9537
Update spine4-base
sasakariz1 Sep 21, 2023
988f45a
Update borderleaf1-base
sasakariz1 Sep 21, 2023
c0b2268
Update borderleaf2-base
sasakariz1 Sep 21, 2023
7fa8923
Update host1-base
sasakariz1 Sep 21, 2023
6f57a85
Update host2-base
sasakariz1 Sep 21, 2023
2b65c93
Update host3-base
sasakariz1 Sep 21, 2023
46906ba
Update host4-base
sasakariz1 Sep 21, 2023
c557144
Update leaf1-base
sasakariz1 Sep 21, 2023
8e35a8a
Update leaf2-base
sasakariz1 Sep 21, 2023
8d521ab
Update leaf3-base
sasakariz1 Sep 21, 2023
dfa8eec
Update leaf4-base
sasakariz1 Sep 21, 2023
31288c0
Update spine1-base
sasakariz1 Sep 21, 2023
96d86aa
Update spine2-base
sasakariz1 Sep 21, 2023
f59a13e
Update spine3-base
sasakariz1 Sep 21, 2023
af409ef
Update spine4-base
sasakariz1 Sep 21, 2023
3097c38
Update borderleaf1-base
sasakariz1 Sep 22, 2023
85ef25c
Update borderleaf2-base
sasakariz1 Sep 22, 2023
fc64cfd
Update host1-base
sasakariz1 Sep 22, 2023
0da1cd9
Update host2-base
sasakariz1 Sep 22, 2023
072f2e1
Update host3-base
sasakariz1 Sep 22, 2023
3b4ae6c
Update host4-base
sasakariz1 Sep 22, 2023
8c4cc03
Update leaf1-base
sasakariz1 Sep 22, 2023
2f7b5b5
Update leaf2-base
sasakariz1 Sep 22, 2023
41bbc98
Update leaf3-base
sasakariz1 Sep 22, 2023
ee1a62f
Update leaf4-base
sasakariz1 Sep 22, 2023
061a876
Update spine1-base
sasakariz1 Sep 22, 2023
f144f66
Update spine2-base
sasakariz1 Sep 22, 2023
b804980
Update spine3-base
sasakariz1 Sep 22, 2023
ab2ee78
Update spine4-base
sasakariz1 Sep 22, 2023
241b0ad
Update borderleaf1-base
sasakariz1 Sep 22, 2023
50ce11c
Update borderleaf2-base
sasakariz1 Sep 22, 2023
7f37d1e
Update host1-base
sasakariz1 Sep 22, 2023
0196a85
Update host10-base
sasakariz1 Sep 22, 2023
312c433
Update host2-base
sasakariz1 Sep 22, 2023
e404f85
Update host3-base
sasakariz1 Sep 22, 2023
5ff9e09
Update host4-base
sasakariz1 Sep 22, 2023
3c8993b
Update leaf3-base
sasakariz1 Sep 22, 2023
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
44e92ad
modified CPU details for dual topo
tatanithin Nov 27, 2023
e3b1f95
updated docker compose to fix dual topo
tatanithin Nov 30, 2023
d98dfe2
Update training-l3.yaml
rparkinarista Dec 4, 2023
b82504e
Update Leaf1-OSPFMultiaArea-Start
rparkinarista Dec 4, 2023
e9570cc
Update training-l3.yaml
rparkinarista Dec 4, 2023
61beebf
modified folder names as per standard
tatanithin Jan 3, 2024
d745216
updated cvp ram details
tatanithin Jan 5, 2024
1d8def9
updated uilanding runtime
tatanithin Jan 15, 2024
3554475
🟢 BorderLeaf1-Multicast-Start -> New network config
rparkinarista Feb 1, 2024
6a68d0e
Merge pull request #36 from aristanetworks/menus-and-configlets
rparkinarista Feb 1, 2024
d944ed1
changes related to labguides, labmenu uilanding
tatanithin Feb 1, 2024
b3938ae
Merge pull request #37 from aristanetworks/2023.2-dual-02012024
tatanithin Feb 1, 2024
08dc291
matching with 2023.2
tatanithin Apr 30, 2024
81c2c96
Update eosStartup.sh
tatanithin May 3, 2024
e01f1b8
updated as per 2023.2
tatanithin May 15, 2024
175318d
added l5-cl
tatanithin May 16, 2024
dba7be7
Update docker-compose.yml to use latest container for UIlanding
tatanithin May 17, 2024
00783f6
Update docker-compose.yml
tatanithin Jun 7, 2024
c63babc
added level-x
tatanithin Jun 10, 2024
d54e188
Update topo_build.yml
tatanithin Jun 10, 2024
d559c5f
added training-level-path-finder
tatanithin Jul 3, 2024
a70956d
Add files via upload
sasakariz1 Jul 3, 2024
ae6b212
Update topo_build-SK2.yml
rparkinarista Jul 4, 2024
74e9eb1
Merge pull request #92 from aristanetworks/Add-platform-tags
sasakariz1 Jul 4, 2024
af87c70
Update topo_build-SK2.yml
rparkinarista Jul 4, 2024
87e87bd
Merge pull request #93 from aristanetworks/update-ip-and-mac
sasakariz1 Jul 4, 2024
f126e35
Delete topologies/training-level-path-finder/configlets/spine2-base
sasakariz1 Jul 4, 2024
8f6fb25
Delete topologies/training-level-path-finder/configlets/spine1-base
sasakariz1 Jul 4, 2024
2e304fc
Delete topologies/training-level-path-finder/configlets/leaf4-base
sasakariz1 Jul 4, 2024
dc8800f
Delete topologies/training-level-path-finder/configlets/leaf3-base
sasakariz1 Jul 4, 2024
1653a33
Delete topologies/training-level-path-finder/configlets/leaf2-base
sasakariz1 Jul 4, 2024
271baa7
Delete topologies/training-level-path-finder/configlets/leaf1-base
sasakariz1 Jul 4, 2024
1a438b1
Delete topologies/training-level-path-finder/configlets/host3-base
sasakariz1 Jul 4, 2024
fd10912
Delete topologies/training-level-path-finder/configlets/host2-base
sasakariz1 Jul 4, 2024
5647670
Delete topologies/training-level-path-finder/configlets/host1-base
sasakariz1 Jul 4, 2024
0e748bb
Delete topologies/training-level-path-finder/configlets/borderleaf1-base
sasakariz1 Jul 4, 2024
52b4648
Add files via upload
sasakariz1 Jul 4, 2024
59b085a
deleted configlets and old topobuild file
tatanithin Jul 4, 2024
3f972af
Merge branch 'nested/2023.2-dual' of https://github.com/aristanetwork…
tatanithin Jul 4, 2024
989d73c
Rename topo_build-SK2.yml to topo-build.yml
sasakariz1 Jul 4, 2024
d1d1380
Delete topologies/training-level-path-finder/atd-topo.png
sasakariz1 Jul 4, 2024
2192bfa
Add files via upload
sasakariz1 Jul 4, 2024
67778b8
Update cvp_info.yaml
rparkinarista Jul 4, 2024
e086c04
add reset menu and remove txt from BASE files
rparkinarista Jul 4, 2024
4fc2578
Merge pull request #95 from aristanetworks/cvp-info
rparkinarista Jul 4, 2024
c520811
updated MGMT interface and added ATD-INFRA
rparkinarista Jul 5, 2024
b1d6435
fixed indentation
rparkinarista Jul 5, 2024
1851dd8
update screen rc and hosts file
rparkinarista Jul 5, 2024
c46f1c7
Rename topo-build.yml to topo_build.yml
tatanithin Jul 5, 2024
33a0fbc
fix link mismatch
rparkinarista Jul 5, 2024
83fe223
fix more mismatch links
rparkinarista Jul 5, 2024
aac86a9
fix more mismatches
rparkinarista Jul 5, 2024
841520e
more mismatches
rparkinarista Jul 5, 2024
eacec63
Last one, hopefully
rparkinarista Jul 5, 2024
0cb619f
updating kvmbuilder
tatanithin Jul 5, 2024
dd9cd65
updated kvm builder
tatanithin Jul 5, 2024
18d6790
fix node ID's
rparkinarista Jul 6, 2024
1fb4934
fix duplicate IP addresses
rparkinarista Jul 6, 2024
0e6c3e5
fix macs
rparkinarista Jul 6, 2024
3056d21
fix H22
rparkinarista Jul 7, 2024
eb17580
fixed edge12-base
rparkinarista Jul 7, 2024
0af5608
Update atdStartup.sh
tatanithin Jul 7, 2024
d2e07f0
Update Edge12-BASE
tatanithin Jul 8, 2024
2617a71
Update topo_build.yml
rparkinarista Jul 8, 2024
d8d1d88
Delete topologies/training-level-path-finder/atd-topo.png
sasakariz1 Jul 9, 2024
61828d3
Add files via upload
sasakariz1 Jul 9, 2024
33ccddf
moved changed from 2023.2 to dual
tatanithin Jul 16, 2024
b507f3f
Update atdStartup.sh
tatanithin Jul 17, 2024
5b50fc0
Delete topologies/training-level-path-finder/atd-topo.png
sasakariz1 Jul 18, 2024
406eebc
Add files via upload
sasakariz1 Jul 18, 2024
ce9cb8a
update based on diagram changed
rparkinarista Jul 18, 2024
7362fbb
Delete topologies/training-level-path-finder/atd-topo.png
sasakariz1 Jul 18, 2024
fd774b1
Add files via upload
sasakariz1 Jul 18, 2024
8342101
Update and rename P2-BASE to P6-BASE
sasakariz1 Jul 18, 2024
d384f18
Update and rename P1-BASE to P5-BASE
sasakariz1 Jul 18, 2024
aa104ed
Update and rename PE1-BASE to R1-PE1-BASE
sasakariz1 Jul 18, 2024
2307a23
Update and rename PE2-BASE to R2-PE2-BASE
sasakariz1 Jul 18, 2024
ddd465a
Update and rename R1-P11-BASE to PE1-BASE
sasakariz1 Jul 18, 2024
f32d013
Update and rename R1-P12-BASE to PE2-BASE
sasakariz1 Jul 18, 2024
e872748
Update and rename R2-P31-BASE to PE3-BASE
sasakariz1 Jul 18, 2024
8e3c1f6
Update and rename R2-P32-BASE to PE4-BASE
sasakariz1 Jul 18, 2024
ddb9e14
Update and rename PE11-BASE to P1-BASE
sasakariz1 Jul 18, 2024
f3864ff
Update and rename PE12-BASE to P2-BASE
sasakariz1 Jul 18, 2024
5f28cc8
Update and rename PE21-BASE to P3-BASE
sasakariz1 Jul 18, 2024
988d9d8
Update and rename PE22-BASE to P4-BASE
sasakariz1 Jul 18, 2024
9c13db1
Update cvp_info.yaml
sasakariz1 Jul 18, 2024
36f01b8
Update training-l2.yaml
sasakariz1 Jul 18, 2024
ae85a5d
Update hosts
sasakariz1 Jul 18, 2024
817e780
Delete topologies/training-level-path-finder/atd-topo.png
sasakariz1 Jul 18, 2024
7be1473
Add files via upload
sasakariz1 Jul 18, 2024
33b3340
Update topo_build.yml
sasakariz1 Jul 18, 2024
f2bf5ad
Update topo_build.yml
sasakariz1 Jul 18, 2024
851af76
Update topo_build.yml
sasakariz1 Jul 18, 2024
dfe92c6
Update topo_build.yml
sasakariz1 Jul 18, 2024
8817a30
Update cvp_info.yaml
sasakariz1 Jul 18, 2024
a3d52a3
Update cvp_info.yaml
sasakariz1 Jul 18, 2024
ca4b578
Delete topologies/network-to-code/test
sasakariz1 Jul 21, 2024
2a8de9e
Update ATD-INFRA
sasakariz1 Aug 30, 2024
92867ce
Update topo_build.yml
sasakariz1 Sep 5, 2024
74b4009
Add files via upload
sasakariz1 Sep 6, 2024
9f820f7
Delete topologies/training-level-path-finder/atd-topo.png
sasakariz1 Sep 16, 2024
1ca9f1c
Add files via upload
sasakariz1 Sep 16, 2024
5f41b30
added change latency for tools
tatanithin Oct 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)
58 changes: 50 additions & 8 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.19
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 All @@ -64,7 +64,7 @@ services:
- cvp_dir:/home/arista/CVP_DATA:rw
kvmbuilder:
container_name: atd-kvmbuilder
image: us.gcr.io/atd-testdrivetraining-dev/atddocker_kvmbuilder:1.0.0
image: us.gcr.io/atd-testdrivetraining-dev/atddocker_kvmbuilder:1.0.1
user: $AtID:$AtGD
restart: on-failure
environment:
Expand All @@ -85,27 +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.21
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.3
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
- /home/arista/arista-dir/menus/:/menus/: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"
freerad:
container_name: atd-freeradius
image: us.gcr.io/atd-testdrivetraining-dev/atddocker_freerad:1.0.0
Expand All @@ -117,7 +159,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 +200,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