Closed kostopravby closed 1 year ago
Thanks for feedback sounds like multiple problems. The plugin should be compatible with Ros7. Let me quickly verify the problems
Disabled rate - Confirmed there is a bug with disabled rate. Will fix shortly.
Block list - this appear to be working - address is added to block list when lease is acquired
Description - Is it possible to send screenshot of description after custom attributes were added
Thanks
Ok release has been updated with disabled rate fix.
Have verified block list on ROS 7.10 and it works, but client needs to acquire lease.
Will wait for more info on the bad lease description
Thanks
Thanks for the update reviewing the problems indicated.
Hi,
Thanks for valuable feedback. The problems indicated have be fixed in reupped version. https://github.com/MadaMzandu/uisp-ros-plugin/releases/tag/2.0.2.3
thank you.
so in our case then better to use fixed ip attribute. got it
hi
first of all - lease time setting is working correctly now. thx.
i assigned to all existing customers fixed ips. leases are active and waiting. my test connection have Dynamic lease now. do i have to make static lease or plugin should do it by itself? as i see by log last one. but for some reason plugin trying to use used ip. serivice already Suspended added to attributes mac and router name. dynamic ip 10.20.0.54. trying to assign 10.20.0.47 which already assigned to another customer. 2023-06-19 23:21:54.682: mt write error: [{"batch":95226,"path":"\/ip\/dhcp-server\/lease","address":"10.20.0.47","mac-address":"74:4D:28:4E:BF:14","insert-queue-before":"bottom","address-lists":"block_clients","lease-time":"10m","comment":"2638 - CUSTOMER NAME - 11752"},{"!trap":[{"message":"failure: already have static lease with this IP address"}]}] and this error is coming to Jobs also
When i remove suspension - this dynamic lease was deleted from router. wait when it come back, edit/save service: 2023-06-19 23:33:42.207: mt write error: [{"batch":174999,"path":"\/ip\/dhcp-server\/lease","address":"10.20.0.47","mac-address":"74:4D:28:4E:BF:14","insert-queue-before":"bottom","address-lists":"active_clients","lease-time":"10m","comment":"2638 - CUSTOMER NAME - 11752"},{"!trap":[{"message":"failure: can not change dynamic lease"}]}]
when i add fixed ip to attribute, same as dynamic lease: 2023-06-19 23:35:29.775: mt write error: [{"batch":109879,"path":"\/ip\/dhcp-server\/lease","address":"10.20.0.54","mac-address":"74:4D:28:4E:BF:14","insert-queue-before":"bottom","address-lists":"active_clients","lease-time":"10m","comment":"2638 - CUSTOMER NAME - 11752"},{"!trap":[{"message":"failure: can not change dynamic lease"}]}]
changed manually lease to static. edit/save service - no any errors or new messages in log.
Suspend the service. plugin delete static lease. add new static lease with same ip/mac and Server field - ALL. lease is not active - waiting. this ip has been added to disabled address list when customer's router renewed dhcp lease.
Unsuspend the service. plugin delete static lease again. add new static lease with same ip/mac and Server field - ALL. lease is not active - waiting. this ip has been removed from disabled address list.
My question is - is it possible do not delete lease and add/remove ip to/from disabled list? bcs need to wait renew of lease. with 10minutes its not a problem. with higher lease time - problem. or is this behavior expected?
Thank you
Thanks for feedback again. These are all very good observations.
Otherwise it is recommended to use a short lease time to ensure that the client is updated quickly the mikrotik default of 10 minutes is a good setting.
I will update when a new build is ready for you to test
Hi The suggested improvements have been applied, please test and update.
https://github.com/MadaMzandu/uisp-ros-plugin/releases/tag/2.0.2.4
hi sorry for delay
All cleared. again same router as a "new" customer. Dynamic lease 10.20.0.54. add just MAC and NAS name, without Fixed IP first:
All cleared again Dynamic lease 10.20.0.54. add MAC and NAS name and Fixed IP 10.20.0.65:
Suspend/Unsuspend:
End Service:
in general I have some doubts which is not for this "issue"
Thank you
Thank you for the update. I think for (1) this normal behavior, the plugin will not reuse the mikrotik assigned address. This means if you have a /24 you can let the mikrotik use a /25 and the plugin use another /25 without conflicts.
Let me know if there are other issues.
does this plugin works with mikrotik ros7? block list is empty when I suspend service. the plugin removes dhcp lease and shaping, but doesn't add to block list and also adds shaping with the same speed(not with speed from settings for blocked clients). also static lease doesn't have correct description when I added Mac address and Nas(custom attribute for device name)attributes to service.