From 9f9680f11d37a8499f20b839d8413d459c9bdb6d Mon Sep 17 00:00:00 2001 From: Todd Malsbary Date: Thu, 14 Oct 2021 13:35:31 -0700 Subject: Remove usage of deprecated route command Issue-ID: MULTICLOUD-1412 Signed-off-by: Todd Malsbary Change-Id: I33fd716f64e04bd214002ccbbd53e1c1e2af234a --- kud/tests/multus.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kud/tests/multus.sh b/kud/tests/multus.sh index 4f94791f..24c5314f 100755 --- a/kud/tests/multus.sh +++ b/kud/tests/multus.sh @@ -41,7 +41,7 @@ NET function generate_CRD_for_macvlan_cni { local csar_id=$1 - local master_name=$(ssh_cluster route | grep 'default' | awk '{print $8}' |head -n 1) + local master_name=$(ssh_cluster ip route | grep 'default' | awk '{print $5}' |head -n 1) _checks_args $csar_id pushd ${CSAR_DIR}/${csar_id} @@ -67,7 +67,7 @@ NET function generate_CRD_for_ipvlan_cni { local csar_id=$1 - local master_name=$(ssh_cluster route | grep 'default' | awk '{print $8}' |head -n 1) + local master_name=$(ssh_cluster ip route | grep 'default' | awk '{print $5}' |head -n 1) _checks_args $csar_id pushd ${CSAR_DIR}/${csar_id} -- cgit 1.2.3-korg