parent
8e658634c9
commit
d10c0d1dbc
|
@ -28,7 +28,8 @@ TestServiceStatus() {
|
|||
|
||||
eOneStatus() {
|
||||
[ "$1" = "STOPPED" -o "$1" = "UNKNOWN" ] && EchoRouge "$1" && return
|
||||
[ "$1" = "ACTIVE" ] && EchoVert "$1" && return
|
||||
[ "$1" = "off" ] && EchoRouge "$1" && return
|
||||
[ "$1" = "ACTIVE" -o "$1" = "on" ] && EchoVert "$1" && return
|
||||
EchoOrange "$1"
|
||||
}
|
||||
|
||||
|
@ -48,7 +49,6 @@ TestService "Proxy VNC" $(CreoleGet "ip_sunstone"):$(CreoleGet "vnc_proxy_port_s
|
|||
if [ "$(CreoleGet 'activer_oneflow' 'non')" == 'oui' ]; then
|
||||
TestService "OneFlow" $(CreoleGet "ip_oneflow"):$(CreoleGet "port_oneflow")
|
||||
fi
|
||||
echo ""
|
||||
TestServiceStatus "OpenVswitch" openvswitch-switch
|
||||
echo ""
|
||||
|
||||
|
@ -76,6 +76,7 @@ VMs=$( one 'onevm list -l ID,NAME,STAT' | tail -n +2 | grep -ve '\-TEST ' | awk
|
|||
if [[ -z ${VMs} ]]
|
||||
then
|
||||
printf ". %${len_pf}s " "Pas de machines virtuelles instanciées"
|
||||
echo ""
|
||||
else
|
||||
for VM in $VMs ; do
|
||||
NAME=$( one "onevm show $VM" | grep 'NAME' | cut -d: -f2 )
|
||||
|
|
Loading…
Reference in New Issue