Skip to content

Commit

Permalink
Remove port validation from edge syslog config
Browse files Browse the repository at this point in the history
validateSinglePort() validates a string value and therefore unsuitable
for use in this case.
NSX will validate the port in any case.

Fixes: #1186
  • Loading branch information
ksamoray committed Apr 18, 2024
1 parent 8e5b83d commit ef3ea2c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions nsxt/resource_nsxt_edge_transport_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ef3ea2c

Please sign in to comment.