Skip to content

Commit

Permalink
Fixed bug in bridge where Arp was wrongly assigned a bool type in the…
Browse files Browse the repository at this point in the history
… Get method
  • Loading branch information
gfenn-newbury committed Dec 21, 2021
1 parent 97edeed commit 372199e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions routeros/resource_interface_bridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ func resourceInterfaceBridgeRead(d *schema.ResourceData, m interface{}) error {
}

actual_mtu, _ := strconv.Atoi(res.ActualMtu)
arp, _ := strconv.ParseBool(res.Arp)
auto_mac, _ := strconv.ParseBool(res.AutoMac)
dhcp_snooping, _ := strconv.ParseBool(res.DhcpSnooping)
disabled, _ := strconv.ParseBool(res.Disabled)
Expand All @@ -248,7 +247,7 @@ func resourceInterfaceBridgeRead(d *schema.ResourceData, m interface{}) error {
d.Set("actual_mtu", actual_mtu)
d.Set("admin_mac", res.AdminMac)
d.Set("ageing_time", res.AgeingTime)
d.Set("arp", arp)
d.Set("arp", res.Arp)
d.Set("arp_timeout", res.ArpTimeout)
d.Set("auto_mac", auto_mac)
d.Set("comment", res.Comment)
Expand Down

0 comments on commit 372199e

Please sign in to comment.