From 7be47642bd10d7425011de2feb34c6f31f8496dc Mon Sep 17 00:00:00 2001 From: Frank Shen Date: Wed, 21 Oct 2020 18:39:19 +0800 Subject: [PATCH] Make fortios_vpnipsec_phase1interface net_device optional #101 --- fortios/resource_vpnipsec_phase1interface.go | 3 ++- website/docs/r/fortios_vpnipsec_phase1interface.html.markdown | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/fortios/resource_vpnipsec_phase1interface.go b/fortios/resource_vpnipsec_phase1interface.go index fda0f3ecf..7ed6d8b43 100644 --- a/fortios/resource_vpnipsec_phase1interface.go +++ b/fortios/resource_vpnipsec_phase1interface.go @@ -184,7 +184,8 @@ func resourceVpnIpsecPhase1Interface() *schema.Resource { }, "net_device": &schema.Schema{ Type: schema.TypeString, - Required: true, + Optional: true, + Computed: true, }, "tunnel_search": &schema.Schema{ Type: schema.TypeString, diff --git a/website/docs/r/fortios_vpnipsec_phase1interface.html.markdown b/website/docs/r/fortios_vpnipsec_phase1interface.html.markdown index da17ba4ad..4540c1dd2 100644 --- a/website/docs/r/fortios_vpnipsec_phase1interface.html.markdown +++ b/website/docs/r/fortios_vpnipsec_phase1interface.html.markdown @@ -144,7 +144,7 @@ The following arguments are supported: * `monitor_hold_down_delay` - Time to wait in seconds before recovery once primary re-establishes. * `monitor_hold_down_weekday` - Day of the week to recover once primary re-establishes. * `monitor_hold_down_time` - Time of day at which to fail back to primary after it re-establishes. -* `net_device` - (Required) Enable/disable kernel device creation. +* `net_device` - Enable/disable kernel device creation. * `tunnel_search` - Tunnel search method for when the interface is shared. * `passive_mode` - Enable/disable IPsec passive mode for static tunnels. * `exchange_interface_ip` - Enable/disable exchange of IPsec interface IP address.