aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTodd Malsbary <todd.malsbary@intel.com>2021-10-14 13:35:31 -0700
committerTodd Malsbary <todd.malsbary@intel.com>2021-10-22 10:33:51 -0700
commit9f9680f11d37a8499f20b839d8413d459c9bdb6d (patch)
treeb9456ef5e8ac9a36be0d88525c6d4dd5379af944
parenta6729589f63719580a404513db4846b98c16b455 (diff)
Remove usage of deprecated route command
Issue-ID: MULTICLOUD-1412 Signed-off-by: Todd Malsbary <todd.malsbary@intel.com> Change-Id: I33fd716f64e04bd214002ccbbd53e1c1e2af234a
-rwxr-xr-xkud/tests/multus.sh4
1 files 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}