Skip to content

Commit

Permalink
fix script and move IP list, enable LLDP
Browse files Browse the repository at this point in the history
  • Loading branch information
ankudinov committed Aug 28, 2024
1 parent 9061e3f commit b8627f8
Show file tree
Hide file tree
Showing 16 changed files with 24 additions and 45 deletions.
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

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion labs/techlib-vxlan-domain-a/clab/topology.clab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ topology:
linux:
image: ghcr.io/aristanetworks/aclabs/host-ubuntu:latest
binds:
- scripts:/users/admin/home:ro
- /techlib-vxlan-domain-a:/workspace:ro

nodes:
###############################################################
Expand Down

0 comments on commit b8627f8

Please sign in to comment.