Skip to content

Commit

Permalink
enabler: renames
Browse files Browse the repository at this point in the history
  • Loading branch information
sbyrnes committed Mar 14, 2024
1 parent a70296a commit 21f9db4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
10 changes: 10 additions & 0 deletions internal-lab-setup-assets/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
NOTE: This folder contains assets that were used to deploy the Containerlab environment that hosts 30 labs used in this workshop. It is included in this repo for any curious minds.

# Prerequisites

The `internet2/getting_started` is used for the lab Ubuntu hosts and must be locally built via Docker.

To build locally, use `sudo docker build -t internet2/getting_started -f Containerfile .`

Images for emulated network devices must also be available. See ./images/README.md for more information.

# ContainerLab

Tune host settings https://hmntsharma.github.io/cisco-xrd/base_setup/#clone-the-xrd-tools-repository

Set mgmt address in the config (instead of automatically assigning) as XRd has a bug and a container keeps its old address if it's been assigned a new address. containerlab is non-deterministic when assigning mgmt IPs.
Expand Down
8 changes: 7 additions & 1 deletion internal-lab-setup-assets/workshop-init.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
#!/bin/bash

echo "clab:$CX23_LAB_PASSWORD" | chpasswd
# Set password for the user via environment variable. This allows each
# unix container to have their own password passed in by clab, helping
# to avoid one user from accidentally signing into another's container.
echo "clab:$LONI_LAB_PASSWORD" | chpasswd

# Give users root of their own unix containers because we're nice
echo "clab ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/clab
chmod 0440 /etc/sudoers.d/clab

# Enable highlighting in vim
echo "syntax on" > /home/clab/.vimrc

# Required in some environments, like ours, to make clab happy
/sbin/sysctl -w net.ipv6.conf.all.disable_ipv6=1
/sbin/sysctl -w net.ipv6.conf.default.disable_ipv6=1
/sbin/sysctl -w net.ipv6.conf.lo.disable_ipv6=1
Expand Down
2 changes: 1 addition & 1 deletion internal-lab-setup-assets/workshop.clab.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ topology:
image: internet2/getting_started
{{- shared_node_settings(x) }}
env:
CX23_LAB_PASSWORD: Self-Nose-Reasonable-Dust-{{"%02d" % id}}
LONI_LAB_PASSWORD: Self-Nose-Reasonable-Dust-{{"%02d" % id}}

links:
- endpoints: ["cisco1:Gi0-0-0-0", "cisco3:Gi0-0-0-0"]
Expand Down

0 comments on commit 21f9db4

Please sign in to comment.