You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/bin/sh
|
|
#
|
|
# Copyright 2018 rosysong@rosinson.com
|
|
#
|
|
|
|
. /lib/nft-qos/monitor.sh
|
|
|
|
logger -t nft-qos-monitor "ACTION=$ACTION, MACADDR=$MACADDR, IPADDR=$IPADDR, HOSTNAME=$HOSTNAME"
|
|
|
|
case "$ACTION" in
|
|
add | update)
|
|
qosdef_init_env
|
|
qosdef_init_monitor
|
|
qosdef_monitor_add $MACADDR $IPADDR $HOSTNAME
|
|
;;
|
|
remove)
|
|
qosdef_init_env
|
|
qosdef_init_monitor
|
|
qosdef_monitor_del $MACADDR $IPADDR $HOSTNAME
|
|
;;
|
|
esac
|