From b85ab65fb5759972b571dc9e1813c14a9c6a0bb2 Mon Sep 17 00:00:00 2001 From: Pim van Pelt Date: Wed, 19 Oct 2022 14:40:36 +0200 Subject: [PATCH] Commit the OVS switch topology after restarting the VMs --- pristine | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pristine b/pristine index ea176d6..bab3e7a 100755 --- a/pristine +++ b/pristine @@ -1,10 +1,17 @@ #!/bin/sh +BUILD=${BUILD:=default} LAB=${LAB:=0} ## Do not touch below this line +LABDIR=/var/lab +STAGING=$LABDIR/staging HVN="hvn${LAB}.lab.ipng.ch" ## Bring back into pristine state 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" + +echo "* Committing OVS config" +scp overlays/$BUILD/ovs-config.sh root@$HVN:$LABDIR +ssh root@$HVN "set -x; $LABDIR/ovs-config.sh"