Skip to content

Commit

Permalink
fix: Update the routeros_ovpn_server resource to handle default val…
Browse files Browse the repository at this point in the history
…ues correctly
  • Loading branch information
dokmic committed Jul 5, 2024
1 parent 668ef09 commit f377a26
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion routeros/resource_ovpn_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ func ResourceOpenVPNServer() *schema.Resource {
},
"certificate": {
Type: schema.TypeString,
Required: true,
Optional: true,
Description: "Name of the certificate that the OVPN server will use.",
DiffSuppressFunc: AlwaysPresentNotUserProvided,
},
"cipher": {
Type: schema.TypeSet,
Expand All @@ -73,6 +74,7 @@ func ResourceOpenVPNServer() *schema.Resource {
"enable_tun_ipv6": {
Type: schema.TypeBool,
Optional: true,
Default: false,
Description: "Specifies if IPv6 IP tunneling mode should be possible with this OVPN server.",
},
KeyEnabled: PropEnabled("Defines whether the OVPN server is enabled or not."),
Expand Down Expand Up @@ -169,12 +171,14 @@ func ResourceOpenVPNServer() *schema.Resource {
"require_client_certificate": {
Type: schema.TypeBool,
Optional: true,
Default: false,
Description: "If set to yes, then the server checks whether the client's certificate belongs to the " +
"same certificate chain.",
},
"tls_version": {
Type: schema.TypeString,
Optional: true,
Default: "any",
Description: "Specifies which TLS versions to allow.",
ValidateFunc: validation.StringInSlice([]string{"any", "only-1.2"}, false),
},
Expand Down

0 comments on commit f377a26

Please sign in to comment.