test:update common.sh to get port IP in Ubuntu system
The get_available_rdma_ips function can't get port IP in ubuntu system. Update the function to fix this issue. Change-Id: I1b8a0b1159ce7919f883a21067de78d5166954b2 Signed-off-by: Liang Yan <liang.z.yan@intel.com> Reviewed-on: https://review.gerrithub.io/390613 Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
ba3d96e855
commit
c1352c2147
@ -120,7 +120,7 @@ function get_rdma_if_list()
|
|||||||
function get_ip_address()
|
function get_ip_address()
|
||||||
{
|
{
|
||||||
interface=$1
|
interface=$1
|
||||||
ifconfig $interface | grep "inet " | awk '{print $2}'
|
ifconfig $interface | grep "inet " | awk '{print $2}' | sed 's/[^0-9\.]//g'
|
||||||
}
|
}
|
||||||
|
|
||||||
function nvmfcleanup()
|
function nvmfcleanup()
|
||||||
|
Loading…
Reference in New Issue
Block a user