Commit graph

174 commits

Author SHA1 Message Date
Amin Ben Ramdhane
cdad11d92d Ticket refs #4386: dm_validate_string in libbbf_api requires length of enumeration and pattern arrays to be hardcoded at caller
- use NULL-terminated arrays instead of providing length by the caller
2021-02-15 21:13:18 +01:00
Amin Ben Ramdhane
679083337d move get_net_device_status function to dmcommon.c file 2021-02-11 19:17:58 +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
9c70a16884 bbf: add the missing pattern => "^$" 2021-02-01 15:55:51 +01:00
Amin Ben Ramdhane
ed06627492 Ticket refs #3890: Device.IP.Interface.{i}.IPv6Address.{i}. object is not listing Link-Local addresses 2021-01-21 14:47:51 +01:00
Jomily K Joseph
26c684593c bbf : #3969 TR-181: Add Device.Bridging.ProviderBridge.{i} support (REBASE)
- Add support for provider bridge on devel
2021-01-17 17:05:59 +00:00
Amin Ben Ramdhane
764fff3088 Device.DHCPv4.Relay.Forwarding.{i}.: Improve browse function 2021-01-11 12:08:47 +01:00
Amin Ben Ramdhane
8a369fda5d DHCP: fix a crash when dhcp_option has a wrong value 2021-01-06 23:01:38 +01:00
Amin Ben Ramdhane
eef08e0770 bbf: remove the call to icwmp shell script 2021-01-04 10:22:12 +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
80839e0903 ubus: increase the timeout to 5 seconds 2020-12-15 09:47:09 +01:00
Amin Ben Ramdhane
d5bf04b6a2 bbf: Fix some transaction issues and improve the code 2020-12-07 22:20:12 +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
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
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
026b527588 DHCPv4: fix some issues under DHCPv4.Server.Pool. object and enhance the code
- Fix get/set of LeaseTime, StaticAddressNumberOfEntries parameters
 - Fix an issue in add object of DHCPv4.Server.Pool.{i}. object
 - enhance get/set of some parameters: Enable, Status, SubnetMask, DomainName, IPRouters. so get the value from data instead of the mapping for all the sections and get the corresponding section based on its section name
2020-12-04 11:36:02 +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
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