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:
parent
6d095c479a
commit
4f4f66fd17
1 changed files with 1 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue