dnsmngr: align with datamodel microservice

This commit is contained in:
Vivek Kumar Dutta 2024-03-12 18:50:36 +05:30
parent 7abe44c412
commit e21a57e76c
3 changed files with 5 additions and 11 deletions

View file

@ -5,7 +5,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=dnsmngr
PKG_VERSION:=1.0.1
PKG_VERSION:=1.0.2
LOCAL_DEV:=0
ifneq ($(LOCAL_DEV),1)
@ -42,9 +42,9 @@ endef
endif
define Package/dnsmngr/install
$(CP) ./files/* $(1)/
$(INSTALL_DIR) $(1)/etc/dnsmngr
$(CP) $(PKG_BUILD_DIR)/src/libdnsmngr.so $(1)/etc/dnsmngr
$(call BbfdmInstallMicroServiceInputFile,$(1),./files/etc/dnsmngr/input.json)
endef
$(eval $(call BuildPackage,dnsmngr))

View file

@ -1,12 +1,14 @@
{
"daemon": {
"config": {
"loglevel": "1"
},
"input": {
"type": "DotSo",
"name": "/etc/dnsmngr/libdnsmngr.so"
},
"output": {
"type": "UBUS",
"name": "bbfdm.dns.",
"parent_dm": "Device.",
"object": "DNS",
"root_obj": "bbfdm"

View file

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