From e2a85a97f81c8bf13340e9cbce4e49f29fc4195f Mon Sep 17 00:00:00 2001 From: Kobi Samoray Date: Thu, 18 Apr 2024 19:37:20 +0300 Subject: [PATCH] Remove port validation from edge syslog config validateSinglePort() validates a string value and therefore unsuitable for use in this case. NSX will validate the port in any case. Fixes: #1186 Signed-off-by: Kobi Samoray --- nsxt/resource_nsxt_edge_transport_node.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/nsxt/resource_nsxt_edge_transport_node.go b/nsxt/resource_nsxt_edge_transport_node.go index 2c6d5df7b..8af98defe 100644 --- a/nsxt/resource_nsxt_edge_transport_node.go +++ b/nsxt/resource_nsxt_edge_transport_node.go @@ -388,11 +388,10 @@ func getEdgeNodeSettingsSchema() *schema.Schema { Optional: true, }, "port": { - Type: schema.TypeInt, - Optional: true, - Default: 514, - ValidateFunc: validateSinglePort(), - Description: "Syslog server port", + Type: schema.TypeInt, + Optional: true, + Default: 514, + Description: "Syslog server port", }, "protocol": { Type: schema.TypeString,