Browse Source

Small improvement on the default gateway(s) detection

Change-Id: I98cc39bc909b63b57e366cbb787f655097dfe254
changes/08/727108/2
Cédric Jeanneret 3 months ago
committed by Cédric Jeanneret (Tengu)
parent
commit
0a27ab493b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      validation-scripts/all-nodes.sh

+ 1
- 1
validation-scripts/all-nodes.sh View File

@@ -59,7 +59,7 @@ function ping_controller_ips() {
# all of them should some manual network config have
# multiple gateways.
function ping_default_gateways() {
DEFAULT_GW=$(ip r | grep ^default | cut -d " " -f 3)
DEFAULT_GW=$(ip ro | awk '/^default/ {print $3}')
set +e
for GW in $DEFAULT_GW; do
echo -n "Trying to ping default gateway ${GW}..."


Loading…
Cancel
Save