1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-16 12:23:59 +02:00

nft-qos: fix monitor duplicates

nft command syntax is incorrect

rearrange parameter order

Signed-off-by: Imran Khan <gururug@gmail.com>
This commit is contained in:
Imran Khan 2021-12-17 04:09:35 +11:00 committed by Rosen Penev
parent 6d095c479a
commit 4f4f66fd17

View File

@ -6,7 +6,7 @@
. /lib/nft-qos/core.sh
qosdef_monitor_get_ip_handle() { # <family> <chain> <ip>
echo $(nft list chain $1 nft-qos-monitor $2 -a 2>/dev/null | grep $3 | awk '{print $11}')
echo $(nft -a list chain $1 nft-qos-monitor $2 2>/dev/null | grep $3 | awk '{print $11}')
}
qosdef_monitor_add() { # <mac> <ip> <hostname>