Skip to content

Commit

Permalink
fix: ip_route (bfd not supported)
Browse files Browse the repository at this point in the history
  • Loading branch information
vaerh committed Oct 3, 2023
1 parent 812aef0 commit f3a13ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions routeros/resource_ip_route.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (

// ResourceIPRoute https://wiki.mikrotik.com/wiki/Manual:IP/Route
func ResourceIPRoute() *schema.Resource {
checkGateway := []string{"arp", "bfd", "none", "ping", "bfd-multihop"}
checkGateway := []string{"arp", "none", "ping", "bfd", "bfd-multihop"}

if ROSVersion >= v7_10 {
// bfd-multihop removed
checkGateway = checkGateway[:4]
// bfd, bfd-multihop removed
checkGateway = checkGateway[:3]
}

resSchema := map[string]*schema.Schema{
Expand Down
2 changes: 1 addition & 1 deletion routeros/resource_ip_route_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func testAccIpRouteConfig(ver rosVersionType) string {
distance = 1
dst_address = "10.0.0.0/24"
gateway = "192.168.103.1"
check_gateway = "bfd"
check_gateway = "ping"
}
`
Expand Down

0 comments on commit f3a13ad

Please sign in to comment.