Fix onos-setup-karaf IP parsing
Change-Id: If996c10396aecf39ab6d950178d1f6724976cdc2
diff --git a/tools/dev/bin/onos-setup-karaf b/tools/dev/bin/onos-setup-karaf
index 5ff7279..bef263a 100755
--- a/tools/dev/bin/onos-setup-karaf
+++ b/tools/dev/bin/onos-setup-karaf
@@ -17,7 +17,7 @@
# Validates the specified IP regular expression against existing adapters.
# Excludes local-loopback.
function validateIp {
- ifconfig | sed -ne 's:inet[^6][ adr:]*\([0-9.]*\).*:\1: p' | grep $1
+ ifconfig | sed -ne 's:[[:space:]]*inet[^6][ adr:]*\([0-9.]*\).*:\1: p' | grep $1
}
# Parse optional arguments