Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions cloudstack/resource_cloudstack_vpc_offering.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ package cloudstack
import (
"fmt"
"log"
"strings"

"github.com/apache/cloudstack-go/v2/cloudstack"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
Expand Down Expand Up @@ -82,6 +83,9 @@ func resourceCloudStackVPCOffering() *schema.Resource {
Computed: true,
Description: "The internet protocol of the VPC offering. Options are ipv4 and dualstack. Default is ipv4. dualstack will create a VPC offering that supports both IPv4 and IPv6",
ForceNew: true,
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
return strings.EqualFold(old, new)
},
Comment on lines +86 to +88
},
"network_mode": {
Type: schema.TypeString,
Expand All @@ -96,6 +100,9 @@ func resourceCloudStackVPCOffering() *schema.Resource {
Computed: true,
Description: "the routing mode for the VPC offering. Supported types are: Static or Dynamic.",
ForceNew: true,
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
return strings.EqualFold(old, new)
},
Comment on lines +103 to +105
},
"specify_as_number": {
Type: schema.TypeBool,
Expand Down
Loading