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
7953a350b4
Device.NAT.PortMapping.{i}.Protocol: fix get/set according to TR-181 standard
2020-12-02 13:37:23 +01:00
vdutta
823183c11e
Save uci changes in place of commit
2020-12-01 11:38:14 +05:30
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
da60243b30
Ticket refs #3629 : TR-181: Device.DHCPv4.Server.Pool.{i}.StaticAddress. implementation has incorrect behavior
...
Fix multiple issues in StaticAddress implementation
- "StaticAddress.{i}.Yiaddr" accepting any IP address -> According to standard, It should accept IP address from DHCP IP pool
- Same IP address can be assigned to multiple MAC address -> According to standard, Once a IP got bind to a MAC, it should not get bind to other MAC
- Able to create multiple entry for same MAC -> According to standard, It should accept only one entry for one MAC
- Able to create multiple object with same Alias -> According to standard, Alias should be unique
2020-11-26 11:06:56 +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
Sukru Senli
38e1aef3af
deviceinfo: convert Linux priority to a value between 0 and 99
2020-11-23 11:51:25 +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
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
Amin Ben Ramdhane
e24f7bf8ac
Ticket refs #3813 : TR-181: Incorrect implementation of some of Device.DHCPv4.and Device.DHCPv6. objects/parameters
...
Fix Get/Set value of these parameters which has a hexbinary encoded value according to the TR-181 standard
- Device.DHCPv4.Server.Pool.{i}.Option.{i}.Value
- Device.DHCPv4.Client.{i}.SentOption.{i}.Value
- Device.DHCPv4.Relay.Forwarding.{i}.UserClassID
- Device.DHCPv6.Server.Pool.{i}.VendorClassID
- Device.DHCPv6.Server.Pool.{i}.UserClassID
- Device.DHCPv6.Server.Pool.{i}.Option.{i}.Value
2020-11-18 20:02:31 +01:00
Shubham Sharma
34f9f678f9
TR-181: Check for -ve value under dm_validate_unsignedInt
2020-11-18 13:03:56 +01:00
vdutta
991fb4a74d
Extended fault code mapping for usp
2020-11-18 09:57:40 +01:00
Omar Kallel
3d740e4a66
Segmentation fault fix
2020-11-18 09:54:08 +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
d1d60dfbe0
Ticket refs #3805 : TR-181: Device.DHCPv4.Server.Pool.{i}.Client.{i}.Option.{i}.
...
- Implement Device.DHCPv4.Server.Pool.{i}.Client.{i}.Option.{i}. object
- Implement Device.DHCPv4.Server.Pool.{i}.Client.{i}.IPv4AddressNumberOfEntries parameter
- Implement Device.DHCPv4.Server.Pool.{i}.Client.{i}.OptionNumberOfEntries parameter
2020-11-17 15:06:42 +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
143afb5f2b
bbf: check and create a new dmmap file if not there when adding a new section
2020-10-23 17:33:54 +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
5839164c29
TR-181: Fixed invalid int && unsignedInt && hexBinary parameter values
2020-10-17 14:08:40 +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
Amin Ben Ramdhane
c395e8dd51
DHCPv4: fix SentOption segfault issue
...
- Device.DHCPv4.Client.{i}.SentOption.1.Enable : fix get/set segfault issue
- Device.DHCPv4.Client.{i}.SentOption.1.Tag : fix get/set segfault issue
- Device.DHCPv4.Client.{i}.SentOption.1.Value : fix get/set segfault issue
- Device.DHCPv4.Client.{i}.SentOption.: fix add/del segfault issue
2020-10-10 12:46:34 +01:00
Amin Ben Ramdhane
608bb009c9
DHCPv4: fix MaxAddress param value
2020-10-10 12:41:05 +01:00
Amin Ben Ramdhane
c6602debdd
Revert "DHCPv4: fix segfault issue"
...
This reverts commit 893e27b7f9 .
2020-10-10 12:35:42 +01:00
Amin Ben Ramdhane
893e27b7f9
DHCPv4: fix segfault issue
...
- Device.DHCPv4.Server.Pool.{i}.MaxAddress: fix its value
- Device.DHCPv4.Client.{i}.SentOption.1.Enable : fix get/set segfault issue
- Device.DHCPv4.Client.{i}.SentOption.1.Tag : fix get/set segfault issue
- Device.DHCPv4.Client.{i}.SentOption.1.Value : fix get/set segfault issue
- Device.DHCPv4.Client.{i}.ReqOption.: fix add/del segfault issue
2020-10-08 19:19:27 +01:00
Amin Ben Ramdhane
a8dc2edcfa
WiFi: fix some issues
...
- Device.WiFi.Radio.1.SupportedStandards : fix its value
- Device.WiFi.EndPoint.1.WPS.ConfigMethodsEnabled : fix its set value
- Device.WiFi.EndPoint.1.WPS.PIN : fix its set value
- Device.WiFi.EndPoint. : fix segfault when calling delete_obj all
2020-10-08 19:19:18 +01:00
Omar Kallel
0b0e8a9bdc
Extract end_session_flag from bbf to icwmp
2020-10-08 18:59:33 +01:00
Omar Kallel
3505476fa7
Fix warnings
2020-10-08 18:45:14 +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
895c6d6e88
bbf: use dmuci_init_bbfdm function when allocating uci_ctx_bbfdm
2020-09-28 13:11: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
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
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
8da2fd3564
db config: get config path in init call
2020-09-11 15:32:40 +01:00
Amin Ben Ramdhane
e087f42404
db config: use '/lib/db/config' if exists else '/etc/board-db/config' path
2020-09-11 14:55:25 +01:00
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
8d721664e6
db config: move /lib/db -> /etc/board-db due to changes in targets
2020-09-08 12:24:55 +01:00
Amin Ben Ramdhane
99705ac5f9
bbf: fix compiler warnings
2020-09-03 21:47:26 +01: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