Skip to content

Commit

Permalink
ethmonitor: fix for VLAN interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
oalbrigt committed Aug 25, 2017
1 parent 520784f commit 5fae126
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions heartbeat/ethmonitor
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,9 @@ is_interface() {
#
# List interfaces but exclude FreeS/WAN ipsecN virtual interfaces
#
local iface=`$IP2UTIL -o -f link addr show | grep " $1:" \
local iface=`$IP2UTIL -o -f link addr show | grep " $1\(@[A-Za-z0-9\.]*\)\?:" \
| cut -d ' ' -f2 | sort -u | grep -v '^ipsec[0-9][0-9]*$' \
| sed -e 's/:$//'`
| sed -e 's/\(@.*\)\?:$//'`
[ "$iface" != "" ]
}

Expand Down

0 comments on commit 5fae126

Please sign in to comment.