summaryrefslogtreecommitdiff
path: root/docker/neutron/neutron-agents/check-scripts/check-linuxbridge-agent.sh
blob: 4485fc1ec915bda80e5fa0cdf47cf7a23eb52a44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

RES=0

check=$(/usr/bin/neutron agent-list | awk '/ Linux / {print $10}')
error="ERROR: Neutron Linux Bridge agent is not alive."

if [[ $check != ":-)" ]]; then
    echo $error >&2
    RES=1
fi

exit $RES