Commit graph

392 commits

Author SHA1 Message Date
Amin Ben Ramdhane
eb6cfb5418 Device.DHCPv6.Server.Pool.{i}. list includes dhcp sections which are ignored by dnsmasq 2020-12-29 13:57:59 +01:00
Amin Ben Ramdhane
87abe6584e Ticket refs #4077: Device.Users.User.{i}.Username can be set to Empty value 2020-12-29 13:43:42 +01:00
Amin Ben Ramdhane
e87fa6b703 Tikcet refs #4075: Device.DHCPv4.Server.Pool.{i}. list includes dhcp sections which are ignored by dnsmasq 2020-12-29 13:42:54 +01:00
Amin Ben Ramdhane
0a9402b179 Ticket refs #4072: Device.DHCPv4.Client.{i}. object IPRouters and SubnetMask parameters are not implemented correctly 2020-12-29 10:33:15 +01:00
Sukru Senli
53f1c84119 dhcpv4: using _ in option name causing dnsmasq not to start 2020-12-27 11:30:42 +01:00
Amin Ben Ramdhane
15ed15c476 Device.IP.Interface.{i}.IPv6Prefix.{i}.Origin: fix its invalid value DHCPv6 -> PrefixDelegation 2020-12-23 17:10:23 +01:00
Amin Ben Ramdhane
75759e1c6e Device.FAST.Line.{i}.UPBOKLE: fix its type 2020-12-23 16:05:59 +01:00
Amin Ben Ramdhane
9526c01615 Device.DeviceInfo.Processor.{i}.Architecture: add aarch64 as arm architecture 2020-12-23 16:05:09 +01:00
Amin Ben Ramdhane
7b308da4d7 Device.WiFi.SSID.{i}.MACAddress: read the value from sysfs instead of ubus 2020-12-23 15:29:04 +01:00
Amin Ben Ramdhane
8d293b4b3f Device.DeviceInfo.ProcessStatus.Process.{i}.State: change the value to 'Idle' if the state is unknown 2020-12-23 15:15:46 +01:00
Amin Ben Ramdhane
d73e353113 FAST: Fix some invalid enumeration values
Device.FAST.Line.{i}.AllowedProfiles ==> show only the value allowed by the standard ["106a", "212a"]
Device.FAST.Line.{i}.CurrentProfile ==> change the value to empty if the profile is unknown
2020-12-23 15:12:18 +01:00
Amin Ben Ramdhane
e34475382f DSL: update index to 1 for dsl.line/dsl.channel and fix the current value of CurrentProfile parameter 2020-12-23 14:56:29 +01:00
Amin Ben Ramdhane
de422c013a IEEE1905: Fix some invalid enumeration values
- Device.IEEE1905.Version ==> set the default value to '1905.1' if its ubus is empty
- Device.IEEE1905.AL.Status ==> set the default value to 'Disabled' if its ubus is empty
- Device.IEEE1905.AL.RegistrarFreqBand ==> set the default value to '802.11 5 GHz' if its ubus is empty
- Device.IEEE1905.AL.NetworkTopology.Status ==> change the 'available' value to the correct enum name 'Available'
- Device.IEEE1905.AL.NetworkTopology.ChangeLog.{i}.EventType ==> the value is 'NewNeighbor' if its ubus value is 'add' otherwise 'LostNeighbor'
2020-12-23 14:24:38 +01:00
Amin Ben Ramdhane
8c25b2ff87 Device.Routing.Router.1.IPv6Forwarding.{}.Origin: set it to DHCPv6 if the route is dynamic 2020-12-23 09:48:38 +01:00
Amin Ben Ramdhane
ae196c5459 SoftwareModules: move it from TR157 to TR181 folder 2020-12-21 20:47:04 +01:00
vdutta
85e1965ab9 Array out of bound check 2020-12-18 15:29:38 +05:30
Omar Kallel
e73024d706 remove the use of dm_enabled_notify file && other cleanup 2020-12-17 12:34:34 +01:00
Amin Ben Ramdhane
2933c82ea8 Fast: fix Static Code Analysis 2020-12-17 11:24:26 +01:00
Jani Juvan
ae432c536d bbf: #902 - Add G.fast support to TR-181 2020-12-16 17:25:57 +01:00
Omar Kallel
ce28fb9ed5 Enhance the function network_get_ipaddr 2020-12-16 11:32:36 +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
Sukru Senli
0e78372bbc ip: add Device.IP.Interface.{i}.ULAEnable parameter support 2020-12-08 08:44:04 +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
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
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
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
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
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
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
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
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