aboutsummaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-neutronclient/neutron-api-check.sh
blob: 160acd2b2ae4530e053f33c7fdc3567dc08ba09a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /bin/bash

CMD="neutron net-list"

data=$($CMD 2>&1)
res=$?
if [ ${res} -eq 127 ]; then
    exit 0
elif [ ${res} -ne 0 ]; then
    echo "OpenStack \"neutron api\" failed: "
    echo $data
    exit $res
fi
exit 0