mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: Update ifAlias script to deal with GRE interfaces (#5546)
This commit is contained in:
@ -38,7 +38,7 @@ if [ "$1" = "-n" ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
IFACE=$(grep "^${ID}: " <<<"$cache" | sed 's/[:@]\s/ /g'| cut -d " " -f 2)
|
||||
IFACE=$(grep "^${ID}: " <<<"$cache" | sed 's/[:@]\s/ /g'| cut -d " " -f 2 | cut -d @ -f 1)
|
||||
|
||||
echo ${BASE}.${ID}
|
||||
if [ "X${IFACE}" = "X" ]; then
|
||||
|
Reference in New Issue
Block a user