diff --git a/routeros/resource_ip_route.go b/routeros/resource_ip_route.go index 76dab7ec..62c63b66 100644 --- a/routeros/resource_ip_route.go +++ b/routeros/resource_ip_route.go @@ -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{ diff --git a/routeros/resource_ip_route_test.go b/routeros/resource_ip_route_test.go index 4dddaf91..ca6359d8 100644 --- a/routeros/resource_ip_route_test.go +++ b/routeros/resource_ip_route_test.go @@ -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" } `