Stop keepalived after the test

Stopping keepalived on all nodes prevents it from interfering with tests
run after it.
This commit is contained in:
Markus Mäkelä
2018-10-08 10:04:01 +03:00
parent a0d12191da
commit 13d0c818f3
4 changed files with 11 additions and 0 deletions

View File

@ -65,3 +65,11 @@ void configure_keepalived(TestConnections* Test, char* keepalived_file)
Test->maxscales->ssh_node(i, "sudo service keepalived restart", true);
}
}
void stop_keepalived(TestConnections* Test)
{
for (i = 0; i < Test->maxscales->N; i++)
{
Test->maxscales->ssh_node(i, "sudo service keepalived stop", true);
}
}