ponmngr: add Device.XPON. bbf object as a micro service

add Device.XPON. object as a bbf micro service instead of a plugin
as is done currently
This commit is contained in:
Mohd Husaam Mehdi 2024-04-09 12:39:31 +05:30
parent 1ec66d5732
commit b10d8e0ec6
3 changed files with 19 additions and 1 deletions

View file

@ -40,7 +40,8 @@ ifneq ($(CONFIG_TARGET_brcmbca),)
else ifneq ($(CONFIG_TARGET_airoha),)
$(CP) ./files/airoha/* $(1)/
endif
$(call BbfdmInstallPlugin,$(1),./files/etc/bbfdm/json/xpon.json)
$(call BbfdmInstallPluginInMicroservice,$(1)/etc/ponmngr,./files/etc/ponmngr/xpon.json)
$(call BbfdmInstallMicroServiceInputFile,$(1),./files/etc/ponmngr/input.json)
endef
$(eval $(call BuildPackage,ponmngr))

View file

@ -0,0 +1,17 @@
{
"daemon": {
"config": {
"loglevel": "1"
},
"input": {
"type": "JSON",
"name": "/etc/ponmngr/xpon.json"
},
"output": {
"type": "UBUS",
"parent_dm": "Device.",
"object": "XPON",
"root_obj": "bbfdm"
}
}
}