
linuxbridge check.sh script got wrong value of status. Change-Id: I975562a62c9ebf7afc22289dc96e672ed877537c Closes-Bug: #1452626
14 lines
219 B
Bash
Executable File
14 lines
219 B
Bash
Executable File
#!/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
|