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

add pingcheck, LLDP and gitignore #26

Merged
merged 4 commits into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions containers/host-ubuntu/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down
4 changes: 2 additions & 2 deletions containers/host-ubuntu/.devcontainer/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
19 changes: 19 additions & 0 deletions containers/host-ubuntu/.devcontainer/pingcheck
Original file line number Diff line number Diff line change
@@ -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
120 changes: 120 additions & 0 deletions labs/techlib-vxlan-domain-a/.gitignore
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions labs/techlib-vxlan-domain-a/clab/topology.clab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
###############################################################
Expand Down
24 changes: 24 additions & 0 deletions labs/techlib-vxlan-domain-a/pingcheck/dualstack_list_vrf_dev
Original file line number Diff line number Diff line change
@@ -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
26 changes: 26 additions & 0 deletions labs/techlib-vxlan-domain-a/pingcheck/dualstack_list_vrf_prod
Original file line number Diff line number Diff line change
@@ -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
12 changes: 12 additions & 0 deletions labs/techlib-vxlan-domain-a/pingcheck/ipv4_list_vrf_dev
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions labs/techlib-vxlan-domain-a/pingcheck/ipv4_list_vrf_prod
Original file line number Diff line number Diff line change
@@ -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
7 changes: 7 additions & 0 deletions labs/techlib-vxlan-domain-a/pingcheck/ipv6_list_vrf_dev
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions labs/techlib-vxlan-domain-a/pingcheck/ipv6_list_vrf_prod
Original file line number Diff line number Diff line change
@@ -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
Loading