terraform-routeros / terraform-provider-routeros

Terraform Provider for Mikrotik RouterOS
Mozilla Public License 2.0
190 stars 54 forks source link

Fix unintended plan diff from unspecified defaults #465

Closed OJFord closed 4 months ago

OJFord commented 4 months ago

The default value for auto_mac is false, and lease_time 30m, but if unspecified they're assumed true and 10m respectively; so a plan with them unspecified and having imported the default configuration from a freshly reset routeros wants to change them.

OJFord commented 4 months ago

Hm, I just noticed in doing that that auto_mac already has it. But if I:

resource "routeros_interface_bridge" "bridge" {
  name = "bridge"

  comment = "defconf"
  #auto_mac = false
}

and terraform import it, it wants to change auto_mac = false -> true unless I uncomment that line.

vaerh commented 4 months ago

:tada: This PR is included in version 1.52.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

vaerh commented 4 months ago

:tada: This PR is included in version 1.52.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: