Commit graph

190 commits

Author SHA1 Message Date
jjoseph
800d216222 bbf : Fix Inconsistent MACAddress case 2021-06-29 11:00:37 +05:30
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
Amin Ben Ramdhane
1c9316e665 IEEE1905: Align with new ubus object 2021-06-04 16:20:04 +01:00
vdutta
4231b2cfa5 Added dm_debug_browse_path API to get last access path 2021-06-04 17:06:26 +05:30
Amin Ben Ramdhane
27cd8b3518 Add missing dependencies for objects and enhancement the code 2021-06-03 10:18:33 +01:00
vdutta
f2eebc829d Update base64 default value 2021-05-27 12:28:54 +05:30
Amin Ben Ramdhane
c21c955236 Ticket refs #3467: Device.WiFi.Radio.{i}. object OperatingStandards and OperatingChannelBandwidth Set handling is wrong 2021-05-26 19:09:28 +01:00
Amin Ben Ramdhane
a82500080a Device.DeviceInfo.FirmwareImage: add support for Download() and Activate() commands 2021-05-25 10:49:17 +01:00
Amin Ben Ramdhane
9290c10b63 RouterAdvertisement: add support for Device.RouterAdvertisement.InterfaceSetting.{i}.AdvMobileAgentFlag parameter 2021-05-20 12:54:57 +01:00
Amin Ben Ramdhane
e9fb75eb97 bbf: implement unit and functional tests 2021-05-03 18:29:28 +01:00
Amin Ben Ramdhane
f27fe021d1 Ticket #4939: Implement Device.RouterAdvertisement. object 2021-05-03 13:50:23 +01:00
Amin Ben Ramdhane
8c85cf9059 Dynamic library: add support for input and output arguments 2021-04-23 10:33:30 +01:00
Amin Ben Ramdhane
5717e55ac7 save dmmap files under '/etc/bbfdm/dmmap' instead of '/etc/bbfdm' 2021-03-25 19: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
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