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