terraform-routeros / terraform-provider-routeros

Terraform Provider for Mikrotik RouterOS
Mozilla Public License 2.0
206 stars 60 forks source link

rx/tx_*_checksum_error schema warning on routeros_interface_ethernet #574

Closed bennysp closed 1 month ago

bennysp commented 1 month ago

Describe the bug Getting the following errosr on combo port on routeros_interface_ethernet.

│ Warning: Field 'rx_tcp_checksum_error' not found in the schema
│ 
│   with routeros_interface_ethernet.combo1,
│   on int_ethernet.tf line 1, in resource "routeros_interface_ethernet" "combo1":
│    1: resource "routeros_interface_ethernet" "combo1" {
│ 
│ [MikrotikResourceDataToTerraform] The field was lost during the Schema development: ▷ 'rx_tcp_checksum_error': '0' ◁
│ 
│ (and one more similar warning elsewhere)
╵
╷
│ Warning: Field 'rx_udp_checksum_error' not found in the schema
│ 
│   with routeros_interface_ethernet.combo1,
│   on int_ethernet.tf line 1, in resource "routeros_interface_ethernet" "combo1":
│    1: resource "routeros_interface_ethernet" "combo1" {
│ 
│ [MikrotikResourceDataToTerraform] The field was lost during the Schema development: ▷ 'rx_udp_checksum_error': '0' ◁
│ 
│ (and one more similar warning elsewhere)
╵
╷
│ Warning: Field 'rx_ip_header_checksum_error' not found in the schema
│ 
│   with routeros_interface_ethernet.combo1,
│   on int_ethernet.tf line 1, in resource "routeros_interface_ethernet" "combo1":
│    1: resource "routeros_interface_ethernet" "combo1" {
│ 
│ [MikrotikResourceDataToTerraform] The field was lost during the Schema development: ▷ 'rx_ip_header_checksum_error': '0' ◁
│ 
│ (and one more similar warning elsewhere)
╵
╷
│ Warning: Field 'tx_carrier_sense_error' not found in the schema
│ 
│   with routeros_interface_ethernet.combo1,
│   on int_ethernet.tf line 1, in resource "routeros_interface_ethernet" "combo1":
│    1: resource "routeros_interface_ethernet" "combo1" {
│ 
│ [MikrotikResourceDataToTerraform] The field was lost during the Schema development: ▷ 'tx_carrier_sense_error': '0' ◁
│ 
│ (and one more similar warning elsewhere)

To Reproduce Have a combo interface that you are managing in the provider and run a terraform apply on it.

Expected behavior No warnings

Debug Information NA

Stack Trace NA

Additional context I believe these are simple schema updates, similar to how this one was fixed: https://github.com/terraform-routeros/terraform-provider-routeros/pull/422

I don't have the experience with compiling/testing GO, but I have opened this PR on what I believe is the fix based on the above PR. https://github.com/terraform-routeros/terraform-provider-routeros/pull/573

vaerh commented 1 month ago

Hi! Your edits are absolutely correct, thank you very much! The only thing is, I will release an update next week. Please wait a bit.

vaerh commented 1 month ago

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

The release is available on GitHub release

Your semantic-release bot :package::rocket: