From 98516b07f1dbf99b9fa444f95b4a04ed61b5dcec Mon Sep 17 00:00:00 2001 From: vaerh <64400271+vaerh@users.noreply.github.com> Date: Wed, 9 Oct 2024 12:42:10 +0300 Subject: [PATCH] fix(ipsec): Fix `auth_method` attribute validation (#582) Fixes #581 --- routeros/resource_ip_ipsec_identity.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routeros/resource_ip_ipsec_identity.go b/routeros/resource_ip_ipsec_identity.go index 37440711..5dd6f2fe 100644 --- a/routeros/resource_ip_ipsec_identity.go +++ b/routeros/resource_ip_ipsec_identity.go @@ -36,7 +36,7 @@ func ResourceIpIpsecIdentity() *schema.Resource { "in keys menu. Only supported in IKEv1; `pre-shared-key-xauth` - authenticate by a password (pre-shared " + "secret) string shared between the peers + XAuth username and password. Only supported in IKEv1; `rsa-signature-hybrid` " + "- responder certificate authentication with initiator XAuth. Only supported in IKEv1.", - ValidateFunc: validation.StringInSlice([]string{"digital-signature", "eap", "eap-radius", "`pre-shared-key`", + ValidateFunc: validation.StringInSlice([]string{"digital-signature", "eap", "eap-radius", "pre-shared-key", "pre-shared-key-xauth", "rsa-key", "rsa-signature-hybrid"}, false), DiffSuppressFunc: AlwaysPresentNotUserProvided, },