-
Notifications
You must be signed in to change notification settings - Fork 96
Fix LinodeInterfaceUpdateOptions
#825
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
Conversation
There was a problem hiding this 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
VPCInterfaceUpdateOptionstype without thesubnet_idfield - Updates
LinodeInterfaceUpdateOptionsto use the new VPC update options and removes VLAN field - Updates test to use the new
VPCInterfaceUpdateOptionstype
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.
VPCInterfaceUpdateOptionsLinodeInterfaceUpdateOptions
lgarber-akamai
left a comment
There was a problem hiding this 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!
yec-akamai
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
📝 Description
subnet_idcannot be updated, but it always appears in requests built withVPCInterfaceCreateOptions. To address this, create a dedicated VPCInterfaceUpdateOptions for updates.