1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Fix interface in OMR-Quota

This commit is contained in:
Ycarus (Yannick Chabanois) 2024-05-13 11:41:13 +02:00
parent 140649c2eb
commit 367ea040f2
2 changed files with 4 additions and 2 deletions

View file

@ -18,8 +18,9 @@ _validate_section() {
_launch_quota() {
local txquota rxquota ttquota interval enabled interface
_validate_section "interface" "$1"
interface=$(ifstatus "$1" | jsonfilter -q -e '@["l3_device"]')
[ -n "$(echo $interface | grep '@')" ] && interface=$(ifstatus "$1" | jsonfilter -q -e '@["device"]')
interface=$1
#interface=$(ifstatus "$1" | jsonfilter -q -e '@["l3_device"]')
#[ -n "$(echo $interface | grep '@')" ] && interface=$(ifstatus "$1" | jsonfilter -q -e '@["device"]')
[ -z "$interface" ] && return