Commit graph

502 commits

Author SHA1 Message Date
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
906840a5c2 Device.IP.Interface.{i}.(IPv6Address & IPv6Prefix): get parameters from network/interface section instead of ubus when adding a new object 2020-12-06 19:53:33 +01:00
Amin Ben Ramdhane
b8e4c61479 bbf: init context before commit cwmp changes 2020-12-04 14:39:46 +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
e33a424611 Ticket refs #3848: TR-181: Incorrect DHCP pool definition behaviour
- Device.DHCPv4.Server.Pool.{i}.MaxAddress value might go out of DHCP pool range => calculate and set limit option when setting start option
2020-12-04 11:35:38 +01:00
Amin Ben Ramdhane
6e2eee9c51 Device.DHCPv4.Server.Pool.{i}.StaticAddress.{i}.: show only unreserved hosts 2020-12-04 11:35:09 +01:00
Amin Ben Ramdhane
daa673dd56 bbf: commit cwmp changes without restarting its service 2020-12-03 21:37:32 +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
423dcafe48 Device.IP.Interface.{i}.IPv4Address.: get IPv4Address parameters from network/interface section instead of ubus when adding a new object 2020-12-02 19:59:16 +01:00
Amin Ben Ramdhane
ce52920f2e Device.Bridging.Bridge.{i}.VLAN.: set VLANID parameter when adding a new object 2020-12-02 19:32:22 +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
b2464f0a47 Revert uci changes only on 'dm_entry_revert_changes' 2020-12-02 13:26:11 +05:30
vdutta
823183c11e Save uci changes in place of commit 2020-12-01 11:38:14 +05:30
Sukru Senli
2e3a7f30ad wifi: adapt OperatingChannelBandwidth get value to WiFi6 2020-11-29 22:16:53 +00:00
Amin Ben Ramdhane
57c1a3372e Ticket refs #3769: bbf: add support for dynamic obj/param when generating excel file
- improve the generator excel
 - add support for dynamic obj/param when generating xml data model tree
2020-11-29 23:07:42 +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
e3b313ef8d Ticket refs #3535: TR-181: Device.DHCPv4.Server.Pool.{i}.ReservedAddresses is not working as expected
- Get: show only hosts that have a name option "_reserved"
 - Set: remove hosts that have the name "_reserved" when they are removed from the list value
2020-11-29 21:29:33 +01:00
Amin Ben Ramdhane
370bad0724 TR-104: Fix indentation and default value 2020-11-26 11:46:22 +01:00
Hemlata Bhatt
44824549b6 3847 Fix: Asterisk: Remote Configuration of Asterisk can't enable TLS 2020-11-26 10:31:26 +00: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
09d21a9d51 Ticket refs #3535: TR-181: Device.DHCPv4.Server.Pool.{i}.ReservedAddresses is not working as expected
add the option name under dhcp/host section to be considered by dnsmasq
2020-11-23 13:57:35 +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
e40d1142a9 IP.Interface: don't remove Ethernet.Link object when calling delete IP.Interface object
According to the standard, each object deletion should have no effect on other objects, so we remove the deletion of Ethernet.Link when calling delete object of the IP.Interface object
2020-11-20 21:38:39 +01:00
Amin Ben Ramdhane
7ad896fcef Ethernet.VLANTermination: set LowerLayers has no effect on the IP.Interface section related to it
if we have an IP.Interface.{i}. links to -> Ethernet.VLANTermination.{i}. which link to -> Ethernet.Link.1. and we need to update Ethernet.VLANTermination.{i}.LowerLayers to Ethernet.Link.2.

the issue is IP.Interface.{i}. was not updated when setting Ethernet.VLANTermination.{i}.LowerLayers to Ethernet.Link.2.

So this commit fixes this issue
2020-11-20 21:36:26 +01:00
Amin Ben Ramdhane
14cbdf225d WiFi: Fix some parameters that have invalid values
- Device.WiFi.AccessPoint.{i}.AssociatedDevice.{i}.LastDataDownlinkRate => should be unsignedInt[1000:] //fixed by multiplying its value * 1000
 - Device.WiFi.AccessPoint.{i}.AssociatedDevice.{i}.LastDataUplinkRate => should be  unsignedInt[1000:] //fixed by multiplying its value * 1000
 - Device.WiFi.AccessPoint.{i}.AssociatedDevice.{i}.Retransmissions => it's not supported for now, comment it out
2020-11-19 14:07:57 +01:00
Amin Ben Ramdhane
d63278a4c5 TR-181: Device.WiFi.Radio.{i}.RegulatoryDomain returns an incorrect value
Currently, RegulatoryDomain only returns the first two characters but it should be 3 characters according to the standard, the solution is to
 save the third character under dmmap_wireless
2020-11-19 12:15:35 +01:00
Amin Ben Ramdhane
954c8d0bbd Device.USB.USBHosts.Host.{i}.Device.{i}.VendorID: converts its value from hex to unsigned int 2020-11-19 11:25:31 +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
8e9336a5b0 QoS: Fixed Get/Set value of some parameters that have a hexbinary encoded value
- Device.QoS.Classification.{i}.SourceClientID
 - Device.QoS.Classification.{i}.DestClientID
 - Device.QoS.Classification.{i}.SourceUserClassID
 - Device.QoS.Classification.{i}.DestUserClassID
2020-11-18 20:07:51 +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
Omar Kallel
7d8eb62868 DHCPv6: Set field is missing 2020-11-18 16:31:16 +01:00
Daniel Danzberger
4197e72cf7 openwrt: remove empty default config
This file has been removed by previous commits

Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
2020-11-18 14:29:56 +01:00
Jani Juvan
d5a8f440c8 DSL line and channel indexes now start from 1 on ubus 2020-11-18 13:38:54 +01:00
vdutta
420f0b1873 Map specific cwmp faults to general failure for usp proto 2020-11-18 13:31:32 +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
Yalu Zhang
001b7800ee TR104: convert CallLog.{i}.Start to ISO 8601 date-time format 2020-11-16 15:17:53 +01:00
Amin Ben Ramdhane
91879726a6 TR-181: Remove deprecated Device.Hosts.Host.{i}. parameters: AddressSource, LeaseTimeRemaining
- These parameters are obsolete in TR-181 2.14
2020-11-16 10:15:03 +01:00
Amin Ben Ramdhane
63f866e4de gitlab-ci: Trigger uspd test on non-protected branch
- From now on, trigger uspd test on bbf_pipeline branch
2020-11-15 19:46:36 +01:00
Sukru Senli
b49dff1ecb wifi: remove deprecated Device.WiFi.AccessPoint.{i}.MaxAssociatedDevices parameter 2020-11-15 18:52:25 +01:00
Amin Ben Ramdhane
1495c4277e Update json files: remove space from the end of each line 2020-11-13 19:56:46 +01:00