From 97586c38e85548166b852ab8ee23a891bd49457d Mon Sep 17 00:00:00 2001 From: Vaerh Date: Tue, 30 Jul 2024 08:27:49 +0300 Subject: [PATCH] fix(ospf_interface_template): RouterOS 7.x & OSPF Interface Template Auth Key Fixes #510 --- .../resource_routing_ospf_interface_template.go | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/routeros/resource_routing_ospf_interface_template.go b/routeros/resource_routing_ospf_interface_template.go index 06ae7f33..3831feda 100644 --- a/routeros/resource_routing_ospf_interface_template.go +++ b/routeros/resource_routing_ospf_interface_template.go @@ -56,10 +56,18 @@ func ResourceRoutingOspfInterfaceTemplate() *schema.Resource { ValidateFunc: validation.IntBetween(0, 255), }, "authentication_key": { - Type: schema.TypeString, - Optional: true, - Sensitive: true, - Description: "The authentication key to be used, should match on all the neighbors of the network segment.", + Type: schema.TypeString, + Optional: true, + Sensitive: true, + Description: "The authentication key to be used, should match on all the neighbors of the network segment " + + "(for versions before RouterOS 7.x).", + }, + "auth_key": { + Type: schema.TypeString, + Optional: true, + Sensitive: true, + Description: "The authentication key to be used, should match on all the neighbors of the network segment " + + "(available since RouterOS 7.x).", }, KeyComment: PropCommentRw, "cost": {