Skip to content

Commit

Permalink
Fix tabs/spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
sbyrnes committed Jan 30, 2025
1 parent 37c8565 commit e2746f8
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions internal-lab-setup-assets/Makefile
Original file line number Diff line number Diff line change
@@ -1,51 +1,51 @@
clab-install:
dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
dnf config-manager --add-repo https://yum.fury.io/netdevops/
dnf update
dnf install docker-ce docker-ce-cli containerd.io -y
dnf install containerlab -y --nogpgcheck
containerlab version upgrade
dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
dnf config-manager --add-repo https://yum.fury.io/netdevops/
dnf update
dnf install docker-ce docker-ce-cli containerd.io -y
dnf install containerlab -y --nogpgcheck
containerlab version upgrade

gen: clean
python3 gen-topo.py
python3 gen-topo.py

deploy: gen
for name in workshop[0-9]*.clab.yml; do\
containerlab deploy --reconfigure -t $${name};\
sleep 10;\
done
for name in workshop[0-9]*.clab.yml; do\
containerlab deploy --reconfigure -t $${name};\
sleep 10;\
done

deploy-lab:
# Use like `make deploy-lab num=1`
containerlab deploy --reconfigure --topo workshop$(num).clab.yml
# Use like `make deploy-lab num=1`
containerlab deploy --reconfigure --topo workshop$(num).clab.yml

destroy:
for name in workshop[0-9]*.clab.yml; do\
containerlab destroy --cleanup -t $${name};\
done
rm -rf $(wildcard clab-automation-workshop-[0-9]*)
for name in workshop[0-9]*.clab.yml; do\
containerlab destroy --cleanup -t $${name};\
done
rm -rf $(wildcard clab-automation-workshop-[0-9]*)

destroy-lab:
containerlab destroy --cleanup --topo workshop$(num).clab.yml
containerlab destroy --cleanup --topo workshop$(num).clab.yml

inspect:
for name in workshop[0-9]*.clab.yml; do\
containerlab inspect -t $${name};\
done
for name in workshop[0-9]*.clab.yml; do\
containerlab inspect -t $${name};\
done

inspect-all:
containerlab inspect --all
containerlab inspect --all

docker-stop-all:
# This allows the destruction of all running docker containers, regardless of if clab topology file exists
docker stop $(docker ps -a -q)
# This allows the destruction of all running docker containers, regardless of if clab topology file exists
docker stop $(docker ps -a -q)

docker-remove-all:
# This allows the removal of all running docker containers, regardless of if clab topology file exists
docker rm $(docker ps -a -q)
# This allows the removal of all running docker containers, regardless of if clab topology file exists
docker rm $(docker ps -a -q)

container:
docker build -t internet2/getting_started -f Containerfile .
docker build -t internet2/getting_started -f Containerfile .

clean:
rm -rf $(FILES)
rm -rf $(FILES)

0 comments on commit e2746f8

Please sign in to comment.