From f09a4a13e8cd8811e9e6cd1ae453ebb833408873 Mon Sep 17 00:00:00 2001 From: Frank Muller Date: Tue, 30 Mar 2021 15:44:49 +0200 Subject: [PATCH] Change default value to 'defaultTcpipStack' as the 'default' value does not exist. The test uses the correct value to test, which is why this probably went unnoticed. --- vsphere/resource_vsphere_vnic.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/vsphere/resource_vsphere_vnic.go b/vsphere/resource_vsphere_vnic.go index dceea65bf..b4e9a7081 100644 --- a/vsphere/resource_vsphere_vnic.go +++ b/vsphere/resource_vsphere_vnic.go @@ -3,15 +3,16 @@ package vsphere import ( "context" "fmt" + "log" + "strconv" + "strings" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-provider-vsphere/vsphere/internal/helper/hostsystem" "github.com/vmware/govmomi" "github.com/vmware/govmomi/object" "github.com/vmware/govmomi/vim25/mo" "github.com/vmware/govmomi/vim25/types" - "log" - "strconv" - "strings" ) func resourceVsphereNic() *schema.Resource { @@ -262,8 +263,8 @@ func BaseVMKernelSchema() map[string]*schema.Schema { "netstack": { Type: schema.TypeString, Optional: true, - Description: "TCP/IP stack setting for this interface. Possible values are 'default', 'vmotion', 'provisioning'", - Default: "default", + Description: "TCP/IP stack setting for this interface. Possible values are 'defaultTcpipStack', 'vmotion', 'provisioning'", + Default: "defaultTcpipStack", ForceNew: true, }, }