diff options
author | Florin Coras <fcoras@cisco.com> | 2016-08-16 23:37:40 +0200 |
---|---|---|
committer | Filip Tehlar <ftehlar@cisco.com> | 2016-08-23 11:56:02 +0200 |
commit | 4543d2821b1ab69579a525d83497ff84e9084bed (patch) | |
tree | ad2d08bcbafb69042be12633a852fb800c07036e /tests/data_plane/vpp_lite_topo/odl_utils.sh | |
parent | 4cf0fc0cc463e294eab3f727d811e2a11ecadcae (diff) |
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 <fcoras@cisco.com>
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'tests/data_plane/vpp_lite_topo/odl_utils.sh')
-rw-r--r-- | tests/data_plane/vpp_lite_topo/odl_utils.sh | 7 |
1 files changed, 7 insertions, 0 deletions
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 +} |