diff --git a/containers/host-ubuntu/.devcontainer/Dockerfile b/containers/host-ubuntu/.devcontainer/Dockerfile index 56af1b03..28f09308 100644 --- a/containers/host-ubuntu/.devcontainer/Dockerfile +++ b/containers/host-ubuntu/.devcontainer/Dockerfile @@ -48,6 +48,8 @@ RUN apt-get update \ COPY ./entrypoint.sh /bin/entrypoint.sh RUN chmod +x /bin/entrypoint.sh +COPY ./pingcheck /bin/pingcheck +RUN chmod +x /bin/pingcheck USER ${USERNAME} diff --git a/containers/host-ubuntu/.devcontainer/entrypoint.sh b/containers/host-ubuntu/.devcontainer/entrypoint.sh index 1e46b0ca..05d29e82 100644 --- a/containers/host-ubuntu/.devcontainer/entrypoint.sh +++ b/containers/host-ubuntu/.devcontainer/entrypoint.sh @@ -12,8 +12,8 @@ fi echo "admin:${SSH_PASSWORD}" | sudo chpasswd -# start SSH server -sudo service ssh start +# start SSH server and LLDP +sudo service ssh start && sudo lldpd UPLINK='eth1' diff --git a/containers/host-ubuntu/.devcontainer/pingcheck b/containers/host-ubuntu/.devcontainer/pingcheck new file mode 100644 index 00000000..953b7637 --- /dev/null +++ b/containers/host-ubuntu/.devcontainer/pingcheck @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +set +e + +if [ -f "$1" ]; then + + while true + do + echo "fpinging the targets..." + fping -f $1 + sleep 2 + clear + done + +else + + echo "You must provide a valid filename with target IP address list." + +fi diff --git a/labs/techlib-vxlan-domain-a/.gitignore b/labs/techlib-vxlan-domain-a/.gitignore new file mode 100644 index 00000000..0cd6d280 --- /dev/null +++ b/labs/techlib-vxlan-domain-a/.gitignore @@ -0,0 +1,120 @@ +# File created using '.gitignore Generator' for Visual Studio Code: https://bit.ly/vscode-gig +# Created by https://www.toptal.com/developers/gitignore/api/visualstudiocode,macos,ansible,linux,windows +# Edit at https://www.toptal.com/developers/gitignore?templates=visualstudiocode,macos,ansible,linux,windows + +### Ansible ### +*.retry + +### Linux ### +*~ + +# temporary files which can be created if a process still has a handle open of a deleted file +.fuse_hidden* + +# KDE directory preferences +.directory + +# Linux trash folder which might appear on any partition or disk +.Trash-* + +# .nfs files are created when an open file is removed but is still being accessed +.nfs* + +### macOS ### +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +### macOS Patch ### +# iCloud generated files +*.icloud + +### VisualStudioCode ### +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +!.vscode/*.code-snippets + +# Local History for Visual Studio Code +.history/ + +# Built Visual Studio Code Extensions +*.vsix + +### VisualStudioCode Patch ### +# Ignore all local history of files +.history +.ionide + +### Windows ### +# Windows thumbnail cache files +Thumbs.db +Thumbs.db:encryptable +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msix +*.msm +*.msp + +# Windows shortcuts +*.lnk + +# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,macos,ansible,linux,windows + +# Custom rules (everything added below won't be overriden by 'Generate .gitignore File' if you use 'Update' option) + +# ignore clab files +clab-* +*.bak + +# ignore cv onboarding token +clab/cv-onboarding-token + +# discard all config backups as we don't need them +avd_inventory/config_backup/ + +# gitignore downloaded cEOS-lab images +cEOS-lab-* + +# ingnore images and other files not to be uploaded to GitHub +.gitignored/* +!.gitignored/.gitkeep diff --git a/labs/techlib-vxlan-domain-a/clab/topology.clab.yml b/labs/techlib-vxlan-domain-a/clab/topology.clab.yml index 0c3cb01a..c94b379f 100644 --- a/labs/techlib-vxlan-domain-a/clab/topology.clab.yml +++ b/labs/techlib-vxlan-domain-a/clab/topology.clab.yml @@ -22,6 +22,8 @@ topology: image: arista/ceos:4.32.1F linux: image: ghcr.io/aristanetworks/aclabs/host-ubuntu:latest + binds: + - /techlib-vxlan-domain-a:/workspace:ro nodes: ############################################################### diff --git a/labs/techlib-vxlan-domain-a/pingcheck/dualstack_list_vrf_dev b/labs/techlib-vxlan-domain-a/pingcheck/dualstack_list_vrf_dev new file mode 100644 index 00000000..6d523308 --- /dev/null +++ b/labs/techlib-vxlan-domain-a/pingcheck/dualstack_list_vrf_dev @@ -0,0 +1,24 @@ +10.50.50.101 +10.50.50.102 +10.50.50.103 +10.60.60.101 +10.60.60.102 +10.60.60.103 +10.70.70.101 +10.70.70.102 +10.70.70.103 +10.80.80.101 +10.90.90.101 +10.90.90.102 +2001:db8:50:50::101 +2001:db8:50:50::102 +2001:db8:50:50::103 +2001:db8:60:60::101 +2001:db8:60:60::102 +2001:db8:60:60::103 +2001:db8:70:70::101 +2001:db8:70:70::102 +2001:db8:70:70::103 +2001:db8:80:80::101 +2001:db8:90:90::101 +2001:db8:90:90::102 diff --git a/labs/techlib-vxlan-domain-a/pingcheck/dualstack_list_vrf_prod b/labs/techlib-vxlan-domain-a/pingcheck/dualstack_list_vrf_prod new file mode 100644 index 00000000..d65217ef --- /dev/null +++ b/labs/techlib-vxlan-domain-a/pingcheck/dualstack_list_vrf_prod @@ -0,0 +1,26 @@ +10.10.10.101 +10.10.10.102 +10.10.10.103 +10.10.10.104 +10.10.10.105 +10.10.10.106 +10.20.20.101 +10.20.20.102 +10.20.20.103 +10.30.30.101 +10.30.30.102 +10.40.40.101 +10.40.40.102 +2001:db8:10:10::101 +2001:db8:10:10::102 +2001:db8:10:10::103 +2001:db8:10:10::104 +2001:db8:10:10::105 +2001:db8:10:10::106 +2001:db8:20:20::101 +2001:db8:20:20::102 +2001:db8:20:20::103 +2001:db8:30:30::101 +2001:db8:30:30::102 +2001:db8:40:40::101 +2001:db8:40:40::102 diff --git a/labs/techlib-vxlan-domain-a/pingcheck/ipv4_list_vrf_dev b/labs/techlib-vxlan-domain-a/pingcheck/ipv4_list_vrf_dev new file mode 100644 index 00000000..97a4fd00 --- /dev/null +++ b/labs/techlib-vxlan-domain-a/pingcheck/ipv4_list_vrf_dev @@ -0,0 +1,12 @@ +10.50.50.101 +10.50.50.102 +10.50.50.103 +10.60.60.101 +10.60.60.102 +10.60.60.103 +10.70.70.101 +10.70.70.102 +10.70.70.103 +10.80.80.101 +10.90.90.101 +10.90.90.102 diff --git a/labs/techlib-vxlan-domain-a/pingcheck/ipv4_list_vrf_prod b/labs/techlib-vxlan-domain-a/pingcheck/ipv4_list_vrf_prod new file mode 100644 index 00000000..aebc63b0 --- /dev/null +++ b/labs/techlib-vxlan-domain-a/pingcheck/ipv4_list_vrf_prod @@ -0,0 +1,13 @@ +10.10.10.101 +10.10.10.102 +10.10.10.103 +10.10.10.104 +10.10.10.105 +10.10.10.106 +10.20.20.101 +10.20.20.102 +10.20.20.103 +10.30.30.101 +10.30.30.102 +10.40.40.101 +10.40.40.102 diff --git a/labs/techlib-vxlan-domain-a/pingcheck/ipv6_list_vrf_dev b/labs/techlib-vxlan-domain-a/pingcheck/ipv6_list_vrf_dev new file mode 100644 index 00000000..57e7c0d3 --- /dev/null +++ b/labs/techlib-vxlan-domain-a/pingcheck/ipv6_list_vrf_dev @@ -0,0 +1,7 @@ +2001:db8:50:50::103 +2001:db8:60:60::101 +2001:db8:70:70::102 +2001:db8:70:70::103 +2001:db8:80:80::101 +2001:db8:90:90::101 +2001:db8:90:90::102 diff --git a/labs/techlib-vxlan-domain-a/pingcheck/ipv6_list_vrf_prod b/labs/techlib-vxlan-domain-a/pingcheck/ipv6_list_vrf_prod new file mode 100644 index 00000000..bf5d84e5 --- /dev/null +++ b/labs/techlib-vxlan-domain-a/pingcheck/ipv6_list_vrf_prod @@ -0,0 +1,6 @@ +2001:db8:10:10::103 +2001:db8:10:10::105 +2001:db8:10:10::106 +2001:db8:20:20::101 +2001:db8:40:40::101 +2001:db8:40:40::102