terraform-routeros / terraform-provider-routeros

Terraform Provider for Mikrotik RouterOS
Mozilla Public License 2.0
191 stars 55 forks source link

Force option missing from DHCP option schema #376

Closed unknownconstant closed 6 months ago

unknownconstant commented 6 months ago

Describe the bug When importing an option from routeros the schema does not expect the 'force' field.


Import successful!

The resources that were imported are shown above. These resources are now in
your Terraform state and will henceforth be managed by Terraform.

╷
│ Warning: Field 'force' not found in the schema
│ 
│ [MikrotikResourceDataToTerraform] The field was lost during the Schema development: ▷ 'force': 'true' ◁
╵

To Reproduce Import a option resource, e.g.

# main.tf
resource "routeros_ip_dhcp_server_option" "unifi" {
  code    = 66
  name    = "tftpserver-66"
  value   = "s'10.10.10.22'"
}

# bash
$ terraform import routeros_ip_dhcp_server_option.unifi "*1"

Expected behavior The import should be successful without warning

Stack Trace If applicable, add the stack trace the crash produced.

Additional context Likely cannot force the sending of DHCP options via terraform

vaerh commented 6 months ago

What version of ROS are you using?

unknownconstant commented 6 months ago

Hi I'm running

RouterOS v7.14.1 and provider is 1.34.0

The issue isn't a blocker for me, but clocked it when tinkering with some unifi bits. The error only seems to show up if force had been set to 'true' via webfig

vaerh commented 6 months ago

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

The release is available on GitHub release

Your semantic-release bot :package::rocket: