Skip to content

Commit

Permalink
fix: Change l2mtu property
Browse files Browse the repository at this point in the history
Fixes: #326
  • Loading branch information
vaerh committed Jan 25, 2024
1 parent 89ee0ea commit 1eae5c3
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions routeros/resource_interface_ethernet.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func ResourceInterfaceEthernet() *schema.Resource {
resSchema := map[string]*schema.Schema{
MetaResourcePath: PropResourcePath("/interface/ethernet"),
MetaId: PropId(Id),
MetaSkipFields: PropSkipFields(
MetaSkipFields: PropSkipFields(
`"factory_name","driver_rx_byte","driver_rx_packet","driver_tx_byte","driver_tx_packet",` +
`"rx_64","rx_65_127","rx_128_255","rx_256_511","rx_512_1023","rx_1024_1518","rx_1519_max",` +
`"tx_64","tx_65_127","tx_128_255","tx_256_511","tx_512_1023","tx_1024_1518","tx_1519_max",` +
Expand Down Expand Up @@ -134,12 +134,7 @@ func ResourceInterfaceEthernet() *schema.Resource {
Description: `Defines whether the transmission of data appears in two directions simultaneously, only applies when auto-negotiation is disabled.`,
DiffSuppressFunc: AlwaysPresentNotUserProvided,
},
KeyL2Mtu: {
Type: schema.TypeInt,
Optional: true,
Description: "Layer2 Maximum transmission unit. " +
"[See](https://wiki.mikrotik.com/wiki/Maximum_Transmission_Unit_on_RouterBoards).",
},
KeyL2Mtu: PropL2MtuRo,
KeyLoopProtect: PropLoopProtectRw,
KeyLoopProtectDisableTime: PropLoopProtectDisableTimeRw,
KeyLoopProtectSendInterval: PropLoopProtectSendIntervalRw,
Expand Down

0 comments on commit 1eae5c3

Please sign in to comment.