feat(deployment): Added code to cleanup the testbed setup
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
ip -all netns delete
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
WEDGE_PASS="sudopasswordforwedge"
|
||||
WEDGE_PASS="TheWedgePassword"
|
||||
USER_PASS="asdf1234"
|
||||
|
||||
run_script_via_ssh() {
|
||||
@@ -40,6 +40,7 @@ wedge_setup() {
|
||||
ssh ncs-wedge "echo $WEDGE_PASS | sudo -S systemctl daemon-reload"
|
||||
ssh ncs-wedge "echo $WEDGE_PASS | sudo -S systemctl start l1switch.service"
|
||||
|
||||
# We could probably wait on port 9999 opening on the wedge
|
||||
echo "WAITING FOR BFSHELL..."
|
||||
sleep 30
|
||||
|
||||
@@ -74,3 +75,9 @@ ssh ncs-node2 "echo $USER_PASS | sudo -S timeout $TIMEOUT ip netns exec tb_node2
|
||||
|
||||
# Get log
|
||||
scp ncs-node1:timestamps_30123 .
|
||||
|
||||
# Cleanup
|
||||
|
||||
ssh ncs-wedge "echo $WEDGE_PASS | sudo -S systemctl stop l1switch.service"
|
||||
ssh ncs-node1 "echo $USER_PASS | sudo -S ip -all netns delete "
|
||||
ssh ncs-node2 "echo $USER_PASS | sudo -S ip -all netns delete "
|
||||
|
||||
Reference in New Issue
Block a user