| ... | ... |
@@ -121,8 +121,8 @@ IP=`nova show $VM_UUID | grep "private network" | get_field 2` |
| 121 | 121 |
die_if_not_set IP "Failure retrieving IP address" |
| 122 | 122 |
|
| 123 | 123 |
# for single node deployments, we can ping private ips |
| 124 |
-MULTI_HOST=${MULTI_HOST:-0}
|
|
| 125 |
-if [ "$MULTI_HOST" = "0" ]; then |
|
| 124 |
+MULTI_HOST=`trueorfalse False $MULTI_HOST` |
|
| 125 |
+if [ "$MULTI_HOST" = "False" ]; then |
|
| 126 | 126 |
# sometimes the first ping fails (10 seconds isn't enough time for the VM's |
| 127 | 127 |
# network to respond?), so let's ping for a default of 15 seconds with a |
| 128 | 128 |
# timeout of a second for each ping. |
| ... | ... |
@@ -255,8 +255,8 @@ function ping_vms {
|
| 255 | 255 |
export OS_PASSWORD=nova |
| 256 | 256 |
PUBLIC_IP2=`nova show $VM_UUID2 | grep public-net1 | awk '{print $5}'`
|
| 257 | 257 |
|
| 258 |
- MULTI_HOST=${MULTI_HOST:-0}
|
|
| 259 |
- if [ "$MULTI_HOST" = "0" ]; then |
|
| 258 |
+ MULTI_HOST=`trueorfalse False $MULTI_HOST` |
|
| 259 |
+ if [ "$MULTI_HOST" = "False" ]; then |
|
| 260 | 260 |
# sometimes the first ping fails (10 seconds isn't enough time for the VM's |
| 261 | 261 |
# network to respond?), so let's ping for a default of 15 seconds with a |
| 262 | 262 |
# timeout of a second for each ping. |
| ... | ... |
@@ -97,8 +97,8 @@ IP=`nova show $VM_UUID | grep "private network" | get_field 2` |
| 97 | 97 |
die_if_not_set IP "Failure retrieving IP address" |
| 98 | 98 |
|
| 99 | 99 |
# for single node deployments, we can ping private ips |
| 100 |
-MULTI_HOST=${MULTI_HOST:-0}
|
|
| 101 |
-if [ "$MULTI_HOST" = "0" ]; then |
|
| 100 |
+MULTI_HOST=`trueorfalse False $MULTI_HOST` |
|
| 101 |
+if [ "$MULTI_HOST" = "False" ]; then |
|
| 102 | 102 |
# sometimes the first ping fails (10 seconds isn't enough time for the VM's |
| 103 | 103 |
# network to respond?), so let's ping for a default of 15 seconds with a |
| 104 | 104 |
# timeout of a second for each ping. |
| ... | ... |
@@ -341,7 +341,7 @@ TEST_FLOATING_RANGE=${TEST_FLOATING_RANGE:-192.168.253.0/29}
|
| 341 | 341 |
# **MULTI_HOST** is a mode where each compute node runs its own network node. This |
| 342 | 342 |
# allows network operations and routing for a VM to occur on the server that is |
| 343 | 343 |
# running the VM - removing a SPOF and bandwidth bottleneck. |
| 344 |
-MULTI_HOST=${MULTI_HOST:-False}
|
|
| 344 |
+MULTI_HOST=`trueorfalse False $MULTI_HOST` |
|
| 345 | 345 |
|
| 346 | 346 |
# If you are using FlatDHCP on multiple hosts, set the ``FLAT_INTERFACE`` |
| 347 | 347 |
# variable but make sure that the interface doesn't already have an |