Rename the LAB to chbtl0.net.ipng.ch
This commit is contained in:
2
create
2
create
@ -22,7 +22,7 @@ LAB=${LAB:=0}
|
||||
## Do not touch below this line
|
||||
LABDIR=/var/lab
|
||||
STAGING=$LABDIR/staging
|
||||
HVN="hvn${LAB}.lab.ipng.ch"
|
||||
HVN="hvn${LAB}-lab.chbtl0.net.ipng.ch"
|
||||
|
||||
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"
|
||||
|
2
destroy
2
destroy
@ -13,7 +13,7 @@ BASE=${BASE:=ssd-vol0/hvn0.chbtl0.ipng.ch/ssd-vol0/vpp-proto-disk0@20221018-rele
|
||||
LAB=${LAB:=0}
|
||||
|
||||
## Do not touch below this line
|
||||
HVN="hvn${LAB}.lab.ipng.ch"
|
||||
HVN="hvn${LAB}-lab.chbtl0.net.ipng.ch"
|
||||
|
||||
echo "* Destroying VMs"
|
||||
ssh root@$HVN "set -x; for node in 0 1 2 3; do VM=vpp${LAB}-\${node}; virsh destroy \$VM; done"
|
||||
|
2
pristine
2
pristine
@ -3,7 +3,7 @@
|
||||
LAB=${LAB:=0}
|
||||
|
||||
## 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
|
||||
echo "* Restarting VMs from pristine snapshot"
|
||||
|
Reference in New Issue
Block a user