periodicstats: align with datamodel microservice

This commit is contained in:
Vivek Kumar Dutta 2024-03-12 17:50:45 +05:30
parent 0faae8cfad
commit b598e31ca3
3 changed files with 5 additions and 11 deletions

View file

@ -5,7 +5,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=periodicstats
PKG_VERSION:=1.5.4
PKG_VERSION:=1.5.5
LOCAL_DEV:=0
ifneq ($(LOCAL_DEV),1)

View file

@ -1,15 +1,17 @@
{
"daemon": {
"config": {
"loglevel": "1"
},
"input": {
"type": "DotSo",
"name": "/etc/periodicstats/libperiodicstats.so"
},
"output": {
"type": "UBUS",
"name": "bbfdm.periodicstats",
"parent_dm": "Device.",
"object": "PeriodicStatistics",
"root_obj": "bbfdm"
}
}
}
}

View file

@ -1,8 +0,0 @@
#!/bin/sh
if ! uci -q get bbfdm.periodicstats >/dev/null; then
uci set bbfdm.periodicstats=micro_service
uci set bbfdm.periodicstats.enable=1
uci set bbfdm.periodicstats.input_json="/etc/periodicstats/input.json"
uci set bbfdm.periodicstats.loglevel=1
fi