Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force option missing from DHCP option schema #376

Closed
unknownconstant opened this issue Mar 17, 2024 · 3 comments · Fixed by #383
Closed

Force option missing from DHCP option schema #376

unknownconstant opened this issue Mar 17, 2024 · 3 comments · Fixed by #383
Labels
bug Something isn't working released

Comments

@unknownconstant
Copy link

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

@unknownconstant unknownconstant added the bug Something isn't working label Mar 17, 2024
@vaerh
Copy link
Collaborator

vaerh commented Mar 17, 2024

What version of ROS are you using?

@unknownconstant
Copy link
Author

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
Copy link
Collaborator

vaerh commented Mar 18, 2024

🎉 This issue has been resolved in version 1.37.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@vaerh vaerh added the released label Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants