Commit graph

61 commits

Author SHA1 Message Date
Amin Ben Ramdhane
b37728698f Device.DeviceInfo.BootFirmwareImage: return error in case the set method does not work properly 2021-06-22 15:21:43 +01:00
Vivek Kumar Dutta
e0d497f2ac Revert "Added default value for hexbin type"
This reverts commit 5d7d8d86a2
2021-06-10 10:58:52 +00:00
vdutta
5d7d8d86a2 Added default value for hexbin type 2021-06-08 17:53:34 +05:30
vdutta
4231b2cfa5 Added dm_debug_browse_path API to get last access path 2021-06-04 17:06:26 +05:30
vdutta
f2eebc829d Update base64 default value 2021-05-27 12:28:54 +05:30
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
Omar Kallel
301cbd0bed Fix libbbf_api warning 2020-12-17 12:50:20 +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
Amin Ben Ramdhane
44b6c08273 Fix add method based on the latest changes
update_instance: read config and type section from the passed section
2020-12-07 21:59:00 +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
5d10fba083 bbf: improve and cleanup the code
- update_instance_alias: read config and type section from the passed section in handle_update_instance
 - remove append_dot_to_string() function
2020-12-06 22:18:18 +01:00
Amin Ben Ramdhane
d27c4137f7 bbf: accept dateTime type with microsecond precision
Some parameters must be specified with microsecond precision such as:
 - Device.IP.Diagnostics.DownloadDiagnostics.(ROMTime, BOMTime, EOMTime, TCPOpenResponseTime, etc)
 - Device.IP.Diagnostics.UploadDiagnostics.(ROMTime, BOMTime, EOMTime, TCPOpenResponseTime, etc)
2020-11-29 22:57:22 +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
vdutta
b8bd13a367 Dump only available schema 2020-11-23 12:35:14 +05:30
Amin Ben Ramdhane
67730997cb Ticket refs #3879: bbf: dmtype check missing for all parameters 2020-11-21 13:43:54 +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
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
437273a254 Ticket refs #3489: TR181: Invalid enumeration parameter values 2020-11-11 11:32:14 +01:00
Amin Ben Ramdhane
38bbb5e455 Ticket refs #2920: TR-181: Device.IP.Interface.{i}. IPv4Address, IPv6Address and IPv6Prefix multi-instance objects are treated as single-instance 2020-11-07 19:12:29 +01:00
Amin Ben Ramdhane
6da9750f96 bbf: Fixed crash on QEMU 2020-10-23 12:17:40 +01:00
Amin Ben Ramdhane
c4c10e2b9c WiFi.DataElements: fix some issues 2020-10-14 11:50:45 +01:00
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
Omar Kallel
c549dad741 add dmjson_get_string && fix segfault: add tests case ptr != NULL 2020-09-21 17:48:39 +01:00
vdutta
ab26cfaea6 get_instances: Added next-level support in instances 2020-09-14 15:56:14 +05:30
Amin Ben Ramdhane
95d1440650 get_instance: return err if find_param=0 2020-09-11 10:53:25 +01:00
vdutta
31db6dab25 instance: Fix instances for all paths 2020-09-11 11:15:33 +02:00
Amin Ben Ramdhane
bc400a368d Ticket refs#3005: fix issue in get schema method 2020-08-31 14:59:37 +01:00
Amin Ben Ramdhane
9b2fdc3562 Ticket refs #2845: fix add object issues 2020-08-31 10:22:31 +01:00
Amin Ben Ramdhane
f9d2c345f1 Ticket refs #2974: Referenced objects have trailing dot 2020-08-26 11:26:33 +01: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
Amin Ben Ramdhane
b408257e35 Enhance code structure 2020-07-08 18:38:08 +01: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
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
vdutta
ca77ff8d68 obuspa: Added object_type in GET_NAME method 2020-06-19 09:49:37 +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
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
Daniel Danzberger
4d67121a68 Revert "change strcat->strncat"
This reverts commit c0a476dec0.
2020-04-22 10:08:39 +02:00
Daniel Danzberger
a3113301be Fix compile error on 64 bit systems
Fixes casting pointers of invallid size to int.

Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
2020-04-22 10:07:30 +02:00