From 5c9828db7dbff5a18913f576c2ede3ea23a0ef4c Mon Sep 17 00:00:00 2001 From: Hugo Trippaers Date: Mon, 3 Jun 2013 10:52:41 +0200 Subject: [PATCH] CLOUDSTACK-2804 getEthByIp function in vpc_func.sh can return the wrong network interface --- patches/systemvm/debian/config/opt/cloud/bin/vpc_func.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/systemvm/debian/config/opt/cloud/bin/vpc_func.sh b/patches/systemvm/debian/config/opt/cloud/bin/vpc_func.sh index 17cb078b34f..2f8835120e4 100755 --- a/patches/systemvm/debian/config/opt/cloud/bin/vpc_func.sh +++ b/patches/systemvm/debian/config/opt/cloud/bin/vpc_func.sh @@ -22,7 +22,7 @@ getEthByIp (){ local ip=$1 for dev in `ls -1 /sys/class/net | grep eth` do - sudo ip addr show dev $dev | grep $ip > /dev/null + sudo ip addr show dev $dev | grep $ip\/ > /dev/null if [ $? -eq 0 ] then echo $dev