Skip to content

Conversation

@zliang-akamai
Copy link
Member

📝 Description

  1. The subnet_id cannot be updated, but it always appears in requests built with VPCInterfaceCreateOptions. To address this, create a dedicated VPCInterfaceUpdateOptions for updates.
  2. VLAN interfaces cannot be updated at all, so remove them from the update options.

@zliang-akamai zliang-akamai requested a review from a team as a code owner September 15, 2025 14:13
@zliang-akamai zliang-akamai added the breaking-change for breaking changes in the changelog. label Sep 15, 2025
@zliang-akamai zliang-akamai requested review from Copilot, jriddle-linode and yec-akamai and removed request for a team September 15, 2025 14:13
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds a dedicated VPCInterfaceUpdateOptions struct to handle VPC interface updates without the subnet_id field that cannot be updated, and removes VLAN interface update support.

  • Creates new VPCInterfaceUpdateOptions type without the subnet_id field
  • Updates LinodeInterfaceUpdateOptions to use the new VPC update options and removes VLAN field
  • Updates test to use the new VPCInterfaceUpdateOptions type

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
interfaces.go Adds VPCInterfaceUpdateOptions struct and updates LinodeInterfaceUpdateOptions to use it while removing VLAN support
test/unit/interface_test.go Updates test to use new VPCInterfaceUpdateOptions type

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@zliang-akamai zliang-akamai changed the title Add VPCInterfaceUpdateOptions Fix LinodeInterfaceUpdateOptions Sep 15, 2025
Copy link
Contributor

@lgarber-akamai lgarber-akamai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

Copy link
Contributor

@yec-akamai yec-akamai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

@zliang-akamai zliang-akamai merged commit 5a81d98 into main Sep 19, 2025
10 checks passed
@zliang-akamai zliang-akamai added the bugfix for any bug fixes in the changelog. label Sep 19, 2025
srbhaakamai pushed a commit to srbhaakamai/linodego that referenced this pull request Oct 4, 2025
srbhaakamai pushed a commit to srbhaakamai/linodego that referenced this pull request Oct 4, 2025
@zliang-akamai zliang-akamai deleted the zhiwei/vpc-interface-update-opts branch November 6, 2025 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking-change for breaking changes in the changelog. bugfix for any bug fixes in the changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants