summaryrefslogtreecommitdiff
path: root/docker/neutron/neutron-server/check.sh
blob: 2a44cda9123f764ca808c4d88732f30a860f8048 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

RES=0

. /openrc
if ! keystone token-get > /dev/null; then
    echo "ERROR: keystone token-get failed" >&2
    RES=1
else
    if ! neutron ext-list > /dev/null; then
        echo "ERROR: neutron ext-list failed" >&2
        RES=1
    fi
fi

exit $RES