Commit the OVS switch topology after restarting the VMs
This commit is contained in:
7
pristine
7
pristine
@ -1,10 +1,17 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
BUILD=${BUILD:=default}
|
||||||
LAB=${LAB:=0}
|
LAB=${LAB:=0}
|
||||||
|
|
||||||
## Do not touch below this line
|
## Do not touch below this line
|
||||||
|
LABDIR=/var/lab
|
||||||
|
STAGING=$LABDIR/staging
|
||||||
HVN="hvn${LAB}.lab.ipng.ch"
|
HVN="hvn${LAB}.lab.ipng.ch"
|
||||||
|
|
||||||
## Bring back into pristine state
|
## Bring back into pristine state
|
||||||
echo "* Restarting VMs from pristine snapshot"
|
echo "* Restarting VMs from pristine snapshot"
|
||||||
ssh root@$HVN "set -x; for node in 0 1 2 3; do VM=vpp${LAB}-\${node}; virsh destroy \$VM; zfs rollback ssd-vol0/\${VM}@pristine; virsh start \$VM; done"
|
ssh root@$HVN "set -x; for node in 0 1 2 3; do VM=vpp${LAB}-\${node}; virsh destroy \$VM; zfs rollback ssd-vol0/\${VM}@pristine; virsh start \$VM; done"
|
||||||
|
|
||||||
|
echo "* Committing OVS config"
|
||||||
|
scp overlays/$BUILD/ovs-config.sh root@$HVN:$LABDIR
|
||||||
|
ssh root@$HVN "set -x; $LABDIR/ovs-config.sh"
|
||||||
|
Reference in New Issue
Block a user