Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename field HarwareAddr to PhysicalInterface #214

Merged
merged 1 commit into from
Jun 6, 2024
Merged
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions civo/network/resource_network.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/network.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
Loading