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
Signed-off-by: Kobi Samoray <[email protected]>
  • Loading branch information
ksamoray committed Apr 18, 2024
1 parent 8e5b83d commit e2a85a9
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 e2a85a9

Please sign in to comment.