terraform-routeros / terraform-provider-routeros

Terraform Provider for Mikrotik RouterOS
Mozilla Public License 2.0
165 stars 46 forks source link

Add ability to configure the bandwidth test server #474

Closed mirceanton closed 1 month ago

mirceanton commented 1 month ago

Is your feature request related to a problem? Please describe.

I would like the ability to configure the bandwidth test server on my Mikrotik RB5009.

Describe the solution you'd like

Similar to how we can configure the MAC server:

resource "routeros_tool_mac_server" "test" {
  allowed_interface_list = "LAN"
}

I would like to be able to configure the bandwidth test server:


resource "routeros_tool_bandwidth_test_server" "test" {
  enabled = true
  authenticate = false
  max_sessions = 100
  allocate_udp_ports_from = 2000
}

Additional context

Here are the commands to do this via the CLI:

[admin@MikroTik-RB5009] > /tool/bandwidth-server/set authenticate=no
[admin@MikroTik-RB5009] > /tool/bandwidth-server/set enabled=yes    
[admin@MikroTik-RB5009] > /tool/bandwidth-server/set authenticate=no
[admin@MikroTik-RB5009] > /tool/bandwidth-server/set max-sessions=100
[admin@MikroTik-RB5009] > /tool/bandwidth-server/set allocate-udp-ports-from=2000
mirceanton commented 1 month ago

As described in this doc page, it is recommended to disable it, which is exactly what I am trying to do: image

mirceanton commented 1 month ago

More details can be found here: https://help.mikrotik.com/docs/display/ROS/Bandwidth+Test

vaerh commented 1 month ago

:tada: This issue has been resolved in version 1.54.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: