From 7a2ec1ba3c526d02cefb38e280f38ab28a95208d Mon Sep 17 00:00:00 2001 From: Egor Zaitsev Date: Fri, 3 Jan 2025 20:14:14 +0000 Subject: [PATCH] chore: make `default_route_distance` required with `add_default_route` --- routeros/resource_interface_sstp_client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/routeros/resource_interface_sstp_client.go b/routeros/resource_interface_sstp_client.go index 8108f31d..b44a1277 100644 --- a/routeros/resource_interface_sstp_client.go +++ b/routeros/resource_interface_sstp_client.go @@ -65,6 +65,7 @@ func ResourceInterfaceSSTPClient() *schema.Resource { Optional: true, Description: "Sets distance value applied to auto created default route, if add-default-route is also selected.", DiffSuppressFunc: AlwaysPresentNotUserProvided, + RequiredWith: []string{"add_default_route"}, }, "mrru": { Type: schema.TypeString,