diff --git a/civo/network/resource_network.go b/civo/network/resource_network.go index 29b58c9..725150e 100644 --- a/civo/network/resource_network.go +++ b/civo/network/resource_network.go @@ -70,10 +70,10 @@ func ResourceNetwork() *schema.Resource { Optional: true, Description: "Gateway IP for VLAN IPv4", }, - "vlan_hardware_addr": { + "vlan_physical_interface": { Type: schema.TypeString, Optional: true, - Description: "Hardware address for VLAN", + Description: "Physical interface for VLAN", }, "vlan_allocation_pool_v4_start": { Type: schema.TypeString, @@ -108,7 +108,7 @@ func resourceNetworkCreate(ctx context.Context, d *schema.ResourceData, m interf log.Printf("[INFO] creating the new network %s", d.Get("label").(string)) vlanConfig := civogo.VLANConnectConfig{ VlanID: d.Get("vlan_id").(int), - HardwareAddr: d.Get("vlan_hardware_addr").(string), + PhysicalInterface: d.Get("vlan_physical_interface").(string), CIDRv4: d.Get("vlan_cidr_v4").(string), GatewayIPv4: d.Get("vlan_gateway_ip_v4").(string), AllocationPoolV4Start: d.Get("vlan_allocation_pool_v4_start").(string), diff --git a/docs/resources/network.md b/docs/resources/network.md index a8dccd7..1505a32 100644 --- a/docs/resources/network.md +++ b/docs/resources/network.md @@ -34,7 +34,7 @@ resource "civo_network" "custom_net" { - `vlan_allocation_pool_v4_start` (String) Start of the IPv4 allocation pool for VLAN - `vlan_cidr_v4` (String) CIDR for VLAN IPv4 - `vlan_gateway_ip_v4` (String) Gateway IP for VLAN IPv4 -- `vlan_hardware_addr` (String) Hardware address for VLAN +- `vlan_physical_interface` (String) Physical interface for VLAN - `vlan_id` (Number) VLAN ID for the network ### Read-Only diff --git a/go.mod b/go.mod index fbd4c38..c82941e 100644 --- a/go.mod +++ b/go.mod @@ -1,7 +1,7 @@ module github.com/civo/terraform-provider-civo require ( - github.com/civo/civogo v0.3.69 + github.com/civo/civogo v0.3.70 github.com/google/uuid v1.3.1 github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 github.com/hashicorp/terraform-plugin-sdk/v2 v2.31.0 diff --git a/go.sum b/go.sum index fcb6040..26896a5 100644 --- a/go.sum +++ b/go.sum @@ -12,8 +12,8 @@ github.com/apparentlymart/go-textseg/v15 v15.0.0/go.mod h1:K8XmNZdhEBkdlyDdvbmms github.com/bufbuild/protocompile v0.4.0 h1:LbFKd2XowZvQ/kajzguUp2DC9UEIQhIq77fZZlaQsNA= github.com/bufbuild/protocompile v0.4.0/go.mod h1:3v93+mbWn/v3xzN+31nwkJfrEpAUwp+BagBSZWx+TP8= github.com/bwesterb/go-ristretto v1.2.3/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0= -github.com/civo/civogo v0.3.69 h1:Not+F3Z1mxtXjMvDhUD5Nwi/1ql3uBT0ioRfhKXYhOA= -github.com/civo/civogo v0.3.69/go.mod h1:7UCYX+qeeJbrG55E1huv+0ySxcHTqq/26FcHLVelQJM= +github.com/civo/civogo v0.3.70 h1:QPuFm5EmpkScbdFo5/6grcG2xcvd/lgdolOtENT04Ac= +github.com/civo/civogo v0.3.70/go.mod h1:7UCYX+qeeJbrG55E1huv+0ySxcHTqq/26FcHLVelQJM= github.com/cloudflare/circl v1.3.3 h1:fE/Qz0QdIGqeWfnwq0RE0R7MI51s0M2E4Ga9kq5AEMs= github.com/cloudflare/circl v1.3.3/go.mod h1:5XYMA4rFBvNIrhs50XuiBJ15vF2pZn4nnUKZrLbUZFA= github.com/cyphar/filepath-securejoin v0.2.4 h1:Ugdm7cg7i6ZK6x3xDF1oEu1nfkyfH53EtKeQYTC3kyg=