Rename the LAB to chbtl0.net.ipng.ch

This commit is contained in:
Pim van Pelt
2023-04-03 10:33:04 +00:00
parent 9b9961e40c
commit 20b518e298
4 changed files with 4 additions and 4 deletions

2
create
View File

@ -22,7 +22,7 @@ LAB=${LAB:=0}
## Do not touch below this line ## Do not touch below this line
LABDIR=/var/lab LABDIR=/var/lab
STAGING=$LABDIR/staging STAGING=$LABDIR/staging
HVN="hvn${LAB}.lab.ipng.ch" HVN="hvn${LAB}-lab.chbtl0.net.ipng.ch"
echo "* Cloning base" echo "* Cloning base"
ssh root@$HVN "set -x; for node in 0 1 2 3; do VM=vpp${LAB}-\${node}; mkdir -p $STAGING/\$VM; zfs clone $BASE ssd-vol0/\$VM; done" ssh root@$HVN "set -x; for node in 0 1 2 3; do VM=vpp${LAB}-\${node}; mkdir -p $STAGING/\$VM; zfs clone $BASE ssd-vol0/\$VM; done"

View File

@ -13,7 +13,7 @@ BASE=${BASE:=ssd-vol0/hvn0.chbtl0.ipng.ch/ssd-vol0/vpp-proto-disk0@20221018-rele
LAB=${LAB:=0} LAB=${LAB:=0}
## Do not touch below this line ## Do not touch below this line
HVN="hvn${LAB}.lab.ipng.ch" HVN="hvn${LAB}-lab.chbtl0.net.ipng.ch"
echo "* Destroying VMs" echo "* Destroying VMs"
ssh root@$HVN "set -x; for node in 0 1 2 3; do VM=vpp${LAB}-\${node}; virsh destroy \$VM; done" ssh root@$HVN "set -x; for node in 0 1 2 3; do VM=vpp${LAB}-\${node}; virsh destroy \$VM; done"

View File

@ -3,7 +3,7 @@
LAB=${LAB:=0} LAB=${LAB:=0}
## Do not touch below this line ## Do not touch below this line
HVN="hvn${LAB}.lab.ipng.ch" HVN="hvn${LAB}-lab.chbtl0.net.ipng.ch"
## Destroy the VMs and bring them back into pristine state ## Destroy the VMs and bring them back into pristine state
echo "* Restarting VMs from pristine snapshot" echo "* Restarting VMs from pristine snapshot"

View File

@ -5,7 +5,7 @@ LAB=${LAB:=0}
## Do not touch below this line ## Do not touch below this line
LABDIR=/var/lab LABDIR=/var/lab
STAGING=$LABDIR/staging STAGING=$LABDIR/staging
HVN="hvn${LAB}.lab.ipng.ch" HVN="hvn${LAB}-lab.chbtl0.net.ipng.ch"
CMD=$1 CMD=$1
[ "$CMD" != "start" -a "$CMD" != "shutdown" -a "$CMD" != "destroy" ] && { [ "$CMD" != "start" -a "$CMD" != "shutdown" -a "$CMD" != "destroy" ] && {