You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
routeros_interfaces datasource logs a warning when there are dynamic interfaces present (such as when using CAPsMAN).
for example with this datasource:
data"routeros_interfaces""wlan_dynamic" {}
And dynamic interfaces present, a plan/apply includes this warning at the end of the run:
│ Warning: Field 'dynamic' not found in the schema
│
│ with module.rb_lounge.data.routeros_interfaces.wlan_dynamic,
│ on modules/routerboard/data.tf line 1, in data "routeros_interfaces" "wlan_dynamic":
│ 1: data "routeros_interfaces" "wlan_dynamic" {
│
│ [MikrotikResourceDataToTerraformDatasource] the field was lost during the Schema development: ▷ 'dynamic': 'true' ◁
To Reproduce
enable CAPsMAN (or use some other method to create dynamic interfaces)
run a terraform plan that contains a data "routeros_interfaces" "wlan_dynamic" {} declaration
Expected behavior
No warnings should be thrown
Debug Information
I suspect the reason for this is that the dynamic property only exists on dynamic interfaces in the rest API. static intefaces do not have dynamic = "false" in the REST response. Example (with the tx/rx metrics removed for brevity) below:
Describe the bug
routeros_interfaces datasource logs a warning when there are dynamic interfaces present (such as when using CAPsMAN).
for example with this datasource:
And dynamic interfaces present, a plan/apply includes this warning at the end of the run:
To Reproduce
data "routeros_interfaces" "wlan_dynamic" {}
declarationExpected behavior
No warnings should be thrown
Debug Information
I suspect the reason for this is that the
dynamic
property only exists on dynamic interfaces in the rest API. static intefaces do not havedynamic = "false"
in the REST response. Example (with the tx/rx metrics removed for brevity) below:Stack Trace
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: