From 4543d2821b1ab69579a525d83497ff84e9084bed Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Tue, 16 Aug 2016 23:37:40 +0200 Subject: Small improvements - update function to check if odl is up - add global function (and option) to clean test sate - fix test driver script Change-Id: I80e4908d3a266ce064e5823f310f7a2302c10577 Signed-off-by: Florin Coras Signed-off-by: Filip Tehlar --- tests/data_plane/vpp_lite_topo/odl_utils.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/data_plane/vpp_lite_topo/odl_utils.sh') diff --git a/tests/data_plane/vpp_lite_topo/odl_utils.sh b/tests/data_plane/vpp_lite_topo/odl_utils.sh index 8a2b8bc..44064c0 100644 --- a/tests/data_plane/vpp_lite_topo/odl_utils.sh +++ b/tests/data_plane/vpp_lite_topo/odl_utils.sh @@ -14,3 +14,10 @@ function odl_clear_all { curl -X DELETE "http://${ODL_IP}:${ODL_PORT}/restconf/config/odl-mappingservice:mapping-database" \ -u ${ODL_USER}:${ODL_PASSWD} } + +function check_odl_running { + if [ -z "`netstat -tunlp | grep 8181`" ] ; then + echo "ODL is not running!" + exit 1 + fi +} -- cgit 1.2.3-korg