X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=tests%2Fdata_plane%2Fvpp_lite_topo%2Fodl_utils.sh;h=44064c047f728ea66f60e7755d2f78602296a28b;hb=4543d2821b1ab69579a525d83497ff84e9084bed;hp=8a2b8bc817a62029bd33b046a27ca4c2533e87c4;hpb=4cf0fc0cc463e294eab3f727d811e2a11ecadcae;p=one.git 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 +}