Commit graph

44 commits

Author SHA1 Message Date
Amin Ben Romdhane
880a7583ca libbbfdm-ubus: fix crash on large Get output 2025-11-24 14:01:18 +01:00
Amin Ben Romdhane
4855d91797
libbbfdm-ubus: free 'bbfdm_ctx' dynamic allocations only when 'ubus_ctx' is initialized 2025-10-28 17:45:23 +05:30
Amin Ben Romdhane
293474bf1f Operate: commit or revert only if modified UCI list is not empty 2025-10-23 21:04:12 +02:00
Amin Ben Romdhane
3e9faeff2b Delete the unnecessary sync timer 2025-10-20 13:23:20 +02:00
Amin Ben Romdhane
a332ebef29
libbbfdm-ubus: refactor ubus_ctx handling for greater flexibility 2025-10-17 22:04:52 +05:30
Amin Ben Romdhane
69134df069
Correct API name typo and deprecate old APIs 2025-10-15 16:14:01 +05:30
Suvendhu Hansa
ba2fc7dc21 execute sync handler on bbfdm.apply event 2025-09-17 19:52:11 +05:30
Vivek Kumar Dutta
252da0b834
Fix setting debug log level 2025-09-14 18:03:13 +05:30
Suvendhu Hansa
786863cf0e
Multiple updates
- Support to notify about external uci changes
- Call uci_to_dmmap sync function on uci changes notification
- Documentation update
2025-09-14 12:10:52 +05:30
Suvendhu Hansa
2cd0a1ef6b
Register external handler 2025-09-11 13:29:19 +05:30
Suvendhu Hansa
19db3c2d17
dmctx aware bbfdm api 2025-09-05 18:49:59 +05:30
Vivek Kumar Dutta
c9af4e50ce
Logging improvements 2025-08-27 14:28:28 +05:30
Amin Ben Romdhane
16ed3a79e3
Support multiple DM paths for the same UBUS event 2025-08-18 13:37:08 +05:30
Amin Ben Romdhane
a4f6108138
Improve references database 2025-07-21 15:28:45 +05:30
Amin Ben Romdhane
8d55820ed1 Refresh references db after calling delete method 2025-06-26 16:36:52 +02:00
Amin Ben Romdhane
928443c5c8 Make sure to refresh references db before calling set method to ensure that all references are stored in the database 2025-06-24 14:50:23 +02:00
Amin Ben Romdhane
22cc348d27 Added a mechanism to recover blacklisted services 2025-06-16 12:22:42 +00:00
Amin Ben Romdhane
a32a9a2bfc
Commit dmmap changes during reference DB refresh 2025-05-13 14:09:14 +00:00
Amin Ben Romdhane
c7e783aecd
Update pipeline to cover all micro-services 2025-05-08 17:34:23 +00:00
Amin Ben Romdhane
c4701f0968 Add support for data model schema 2025-05-06 15:24:40 +02:00
Amin Ben Romdhane
ccc15bd9e1
Fix tools to show available datamodel correctly 2025-05-01 17:24:36 +05:30
Amin Ben Romdhane
4a3a7ca0b1 Reference DB: add file lock to prevent race condition when updating reference DB file
Added an exclusive file locking mechanism using `flock()` to ensure that
only one process at a time can update the '/var/state/bbfdm_reference_db' file.
This prevents data loss or corruption caused by concurrent access.

This change improves robustness when `bbfdm_refresh_references()` is called
by multiple processes in parallel.
2025-04-25 12:13:20 +02:00
Amin Ben Romdhane
56937cd498
Update reference db refresh 2025-04-15 15:20:55 +00:00
Amin Ben Romdhane
4d520ceb62 Make refresh references API visible from micro-services 2025-04-11 13:17:51 +02:00
Amin Ben Romdhane
45a6d7e0c7 Redesign the handling of references based on uci reference_translation 2025-04-08 09:29:09 +02:00
Amin Ben Romdhane
e3757b5f37
Remove bbfdm.linker request and response events 2025-03-20 11:56:23 +00:00
Amin Ben Romdhane
948a3771c1 Operate: Fix JSON format output in case of output failure 2025-03-18 12:52:19 +01:00
Amin Ben Romdhane
f21814dd4e
Optimize bbfdmd
* All core Data Model move to core micro-service
* New bbfdmd daemon to use async call to optimize RPCs handling
2025-02-21 09:55:09 +00:00
Amin Ben Romdhane
c5ba89769d
Delete Instance refresh handler 2025-02-13 13:46:12 +00:00
Amin Ben Romdhane
b7e5e0de5a Introduce a new libbbfdm-api library version 2 2025-01-27 15:29:04 +01:00
Vivek Kumar Dutta
3725024ea0 Fix empty ubus output 2024-12-09 15:58:30 +05:30
Vivek Kumar Dutta
f08359f40d
Add support to filter micro-service ubus calls based on proto 2024-12-06 12:20:34 +00:00
Vivek Kumar Dutta
c715185237 Pre-register micro-services 2024-12-05 15:15:51 +05:30
Amin Ben Romdhane
67c094850f bbf.config: Skip checking 'bbf_configd' daemon and add logs for debugging 2024-11-05 19:31:58 +01:00
Vivek Kumar Dutta
7ebe4039ab Sync instances on bootstrap 2024-11-04 18:39:32 +05:30
Amin Ben Romdhane
5aa1298df5 Improve event handling 2024-10-22 04:17:05 +00:00
Vivek Kumar Dutta
52dd299af2 Added -g flag for debugging 2024-10-15 14:22:32 +05:30
Amin Ben Romdhane
e40c677444 Add support for init and clean module 2024-10-14 17:58:04 +02:00
Amin Ben Romdhane
af2b0c0203
Align with new code-analysis docker image 2024-09-20 06:18:52 +00:00
Amin Ben Romdhane
9a6dfdfe3e
Split 'bbfdmd' into two binaries: 'bbfdmd' (main tree) and 'dm-service' (micro-service tree) 2024-09-10 09:30:50 +00:00
Suvendhu Hansa
ebdb414e09 send addObj/delObj event for usp DM objects 2024-09-05 18:10:57 +05:30
Vivek Kumar Dutta
74283cbffc Updated max object for registration to 7 2024-09-04 19:35:06 +05:30
Suvendhu Hansa
c9c4fd2d8a Validate datatype on set request 2024-09-02 21:03:15 +05:30
Amin Ben Romdhane
1537993fc8
Introduce a new library: libbbfdm-ubus 2024-08-29 10:11:30 +00:00