diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2016-11-15 10:51:39 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2016-11-15 10:51:39 +0000 |
commit | 539471c966dd7ce7a279ba97731d5c6780a3f08a (patch) | |
tree | 53d7ae2ba4922f42608cec9c3768e9a58f7d53c6 /regress/sys/net/vxlan | |
parent | 625450552b9b38f54e68681bb15defb10b473aac (diff) |
Sync rdomain_is_used()
Diffstat (limited to 'regress/sys/net/vxlan')
-rw-r--r-- | regress/sys/net/vxlan/vxlan_subr | 4 |
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 |