summaryrefslogtreecommitdiff
path: root/regress/sys/net/vxlan/vxlan_subr
diff options
context:
space:
mode:
Diffstat (limited to 'regress/sys/net/vxlan/vxlan_subr')
-rw-r--r--regress/sys/net/vxlan/vxlan_subr4
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/sys/net/vxlan/vxlan_subr b/regress/sys/net/vxlan/vxlan_subr
index a32f21f0b18..4ae2a31f9c5 100644
--- a/regress/sys/net/vxlan/vxlan_subr
+++ b/regress/sys/net/vxlan/vxlan_subr
@@ -25,8 +25,8 @@ iface_exists()
rdomain_is_used()
{
- _rdomains=$(ifconfig | sed -n '/^[a-z].* rdomain \([0-9]*\).*/s//\1/p' \
- | sort | uniq)
+ _rdomains=$(ifconfig |grep -v ^lo$1 | \
+ sed -n '/^[a-z].* rdomain \([0-9]*\).*/s//\1/p' | sort | uniq)
for _r in $_rdomains; do
if [ $_r = $1 ]; then
return 1