vdutta
4231b2cfa5
Added dm_debug_browse_path API to get last access path
2021-06-04 17:06:26 +05:30
Amin Ben Ramdhane
8c85cf9059
Dynamic library: add support for input and output arguments
2021-04-23 10:33:30 +01:00
Amin Ben Ramdhane
5e97bdb5e4
bbf: add support for vendor extension
2021-03-25 16:06:31 +01:00
Amin Ben Ramdhane
92d1f62cab
bbf: cleanup
...
- fix flawfinder and cppcheck issues
- remove all unused functions
2021-02-10 17:31:55 +01:00
Amin Ben Ramdhane
eef08e0770
bbf: remove the call to icwmp shell script
2021-01-04 10:22:12 +01:00
Omar Kallel
e73024d706
remove the use of dm_enabled_notify file && other cleanup
2020-12-17 12:34:34 +01:00
Amin Ben Ramdhane
b9a12b057b
remove tr064 feature and cleanup
2020-12-16 10:03:25 +01:00
Amin Ben Ramdhane
3906faa12d
Ticket refs #3730 : bbf: fix Static Code Analysis
2020-12-16 10:00:19 +01:00
Omar Kallel
3d4ac802c2
Delete some unused functions && get ip_version from cwmp uci config
2020-12-15 15:25:43 +01:00
Omar Kallel
2155d06e3d
Change CMD_INIT_NOTIFY to CMD_LIST_NOTIFY
2020-12-07 18:14:58 +01:00
Omar Kallel
8b433b79cf
Add CMD_INIT_NOTIFY: add nodtify parameters to list_parameter of dmctx
2020-12-07 16:07:27 +01:00
Amin Ben Ramdhane
15d02b20fa
bbf: commit uci changes under bbfdm repo when calling get_value, get_name, etc...
...
- commit uci changes under '/etc/bbfdm' when calling all methods except set/add/delete
- align icwmp cli with bbf changes
- remove unused functions
2020-12-02 22:37:40 +01:00
Amin Ben Ramdhane
c738c9a122
bbf: parameters notification: save them under /etc/bbfdm/.dm_enabled_notify instead of /etc/icwmpd/.dm_enabled_notify
2020-11-23 12:54:42 +01:00
Amin Ben Ramdhane
18643f29b3
bbf: enhance the code
...
- remove unused argument from dmuci_add_section() and dmuci_add_section_bbfdm() functions
- use snprintf instead of dmasptintf
- change function name: add_list_paramameter -> add_list_parameter
2020-11-23 10:58:48 +01:00
Omar Kallel
d8eb9efa72
Get forced notifications from a struct dm_parameter array && enhance the function check_instance_wildcard_parameter_by_regex
2020-11-21 01:55:21 +01:00
Amin Ben Ramdhane
50b9d73af7
Align bbf tools with latest changes
...
- Update the generator of source code
- Fix the generator of data model in XML format (generate_xml.sh/generate_xml_bbf.sh)
- Update README.md file
2020-11-18 22:00:12 +01:00
vdutta
991fb4a74d
Extended fault code mapping for usp
2020-11-18 09:57:40 +01:00
Omar Kallel
c8de221c11
Ticket refs #3725 : bbf: remove unnecessary arguments from object/parameter definition
2020-11-17 16:21:11 +01:00
Amin Ben Ramdhane
6da9750f96
bbf: Fixed crash on QEMU
2020-10-23 12:17:40 +01:00
Amin Ben Ramdhane
a83984d914
Ticket refs #3539 : bbf: the setting of Interface param has no effect on diagnostic objects
2020-10-19 23:06:05 +01:00
Amin Ben Ramdhane
8ba74d624b
bbf: add unique_keys argument to the comment
...
- change (const char *[]) -> LIST_KEY
2020-10-17 14:54:33 +01:00
Amin Ben Ramdhane
c4c10e2b9c
WiFi.DataElements: fix some issues
2020-10-14 11:50:45 +01:00
sverma
4b47c9feab
bbf: Added 'base64' datatype
2020-10-14 11:27:08 +05:30
Shubham Sharma
a9fc190ed1
get_schema: Get unique keys from multi instance objects
...
- As per TR181, there could be one or more unique keys for each
multi-instance object. Added support to get the unique keys
associated with the multi-instance object.
- Changes for generate_source_code.sh to have unique keys as
extra object parameter.
2020-10-13 10:51:47 +01:00
Omar Kallel
0b0e8a9bdc
Extract end_session_flag from bbf to icwmp
2020-10-08 18:59:33 +01:00
Omar Kallel
718b1504c7
cleanup: remove unused notification functions
2020-10-08 18:41:33 +01:00
Omar Kallel
69a7acef3f
Add entry get_value function for full path parameter
2020-10-08 18:41:07 +01:00
Amin Ben Ramdhane
027d8fb599
bbf: save diagnostics data under '/etc/bbfdm/dmmap_diagnostics' instead of '/vat/state/cwmp'
2020-09-28 10:08:13 +01:00
Daniel Danzberger
5fe7af87d4
dmoperate: Add arguments to operate helpers
...
Adds input and output arguments for each operate call
Arguments are stored in the data field on USP_LIST_OPERATE
NOTE: Dynamic operates need to be recomplied when running libbbf
with this commit, hence the op_cmd struct has changed
Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
2020-09-11 17:33:09 +02:00
Amin Ben Ramdhane
9b2fdc3562
Ticket refs #2845 : fix add object issues
2020-08-31 10:22:31 +01:00
Daniel Danzberger
0e46e0630b
operate: fix memory issues
...
- Fix memleak of not free'd json_tokener_parse memory
- Make read-only memory const
Note that this commit changes the operation input argument from
'char *' to 'json_object *', which breaks older dynamic_operate
implementations from outisde the bbf source tree.
Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
2020-08-27 12:43:48 +02:00
Amin Ben Ramdhane
bbecdd7444
Ticket refs #2845 : bbf: add support the case uci config is updated manually
2020-08-22 16:37:32 +01:00
Daniel Danzberger
164250ca8e
Add CMD_GET_INSTANCES
...
This new command will return all instances on a given path
Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
2020-08-06 10:34:41 +02:00
vdutta
bfd4f7bae5
obuspa: Get data model schema present in DUT
...
- Obuspa required to register the schema present in DUT, in the
current methods, for multi-instance objects the instance is only
visible if at-least one object/instance present, this leads to
anomaly in obuspa, when some objects getting created in run-time.
e.g: Device.WiFi.AccessPoint.1.AssociatedDevice.
- This change will dump the complete schema irrespective of that node/object
availability.
2020-07-08 13:51:42 +02:00
vdutta
57ae1244cc
obuspa: List supported operate commands
2020-06-29 12:50:01 +05:30
Omar Kallel
9b8c23ee30
Enhance separation between libbbf_api and libbbfdm for list_enabled_lw_notify variable && fix warnings
2020-06-23 11:39:55 +01:00
Omar Kallel
856d4de5df
enhance separation between libbbf_api and libbbfdm (functions: dm_update_file_enabled_notify, copy_temporary_file_to_original_file, del_list_fault_param, json functions)
2020-06-23 10:47:57 +01:00
Omar Kallel
ca758fd9f3
Enhance bbf libs separation: upnp_in_user_mask, list_execute_end_session, apply_end_session, cwmp_set_end_session
2020-06-23 10:47:46 +01:00
Omar Kallel
b6be5bdaa0
Enhance separation between libbbf_api and libbbfdm: apply for end_session_flag variable
2020-06-23 10:47:28 +01:00
Omar Kallel
4266617b1b
extract add_list_value_change and send_active_value_change from dmctx
2020-06-04 17:06:23 +01:00
Omar Kallel
c97f46910d
Fix uspd crash
2020-05-30 14:16:53 +01:00
Omar Kallel
2bf36bbbda
Ticket refs #2673 : TR069: No '4 value change' sent in case of active passive notification
2020-05-28 14:37:32 +01:00
Amin Ben Ramdhane
3f4a97c1af
Ticket refs#2512: libbbf: an object should not be presented if the uci file or ubus object it depends on does not exist
2020-05-27 08:55:07 +01:00
Amin Ben Ramdhane
3dd66344b3
Ticket refs #2511 : libbbf: JSON schema support for Alias and Link
2020-05-12 00:59:17 +01:00
Amin Ben Ramdhane
f1a7b2cbaf
VLANTermination: remove vlan_method option
2020-03-25 16:18:57 +01:00
Amin Ben Ramdhane
ff14c27fc3
clean up the source code
...
- remove unused variables
- fix coding style of most function (Indentation, Tabulation, ..)
- check the source code using cppcheck tool
- change sprintf by snprintf
2020-02-12 19:08:49 +01:00
Amin Ben Ramdhane
4ab526b9f2
Ticket refs#1598: libbbfdm: plug-in based with support for dynamic loading of libraries + separate libbbfdm into two libraries: libbbf_api (API) and libbbfdm (data model)
2020-01-21 22:43:37 +01:00