Repository navigation
ref: [LKE-11724] Support updating firewall ID of Linode Interfaces - #1089
Open
sphan-akamai wants to merge 1 commit into
Open
sphan-akamai wants to merge 1 commit into
sphan-akamai wants to merge 1 commit into
Conversation
sphan-akamai
requested review from
josephcardillo-akamai and
psnoch-akamai
and
a balanced review from Copilot
and removed request for
a team
December 1, 2026 16:10
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The FirewallID field was added to the config-interface API instead of LinodeInterfaceUpdateOptions, leaving UpdateInterface unable to send the advertised firewall update and lacking a serialization test.
1 open issue
What changed in this PR
This PR aims to support updating interface firewall associations through the Go client. The implementation adds firewall ID handling to config-interface types and their unit tests.
Changes:
- Adds
FirewallIDto config-interface responses and update options, preserving it inGetUpdateOptions. - Extends unit fixtures and assertions for populated and absent firewall IDs.
| File | Description |
|---|---|
test/unit/instance_config_interfaces_test.go |
Adds firewall ID decoding, conversion, and update assertions. |
test/unit/fixtures/instance_config_interface_update.json |
Adds a firewall ID to the update response fixture. |
test/unit/fixtures/instance_config_interface_list.json |
Adds a firewall ID to one listed interface. |
test/unit/fixtures/instance_config_interface_get.json |
Adds a firewall ID to the get response fixture. |
test/unit/fixtures/instance_config_interface_create.json |
Adds a firewall ID to the create response fixture. |
instance_config_interfaces.go |
Adds firewall ID fields and copies the ID into update options. |
Review effort: Balanced
sphan-akamai
force-pushed
the
support-put-linode-interfaces-firewall-id
branch
2 times, most recently
from
December 1, 2026 16:32
222792c to
f0f840c
Compare
sphan-akamai
force-pushed
the
support-put-linode-interfaces-firewall-id
branch
from
December 1, 2026 17:02
45eeede to
0a992ea
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

📝 Description
What does this PR do and why is this change necessary?
Changes of the PR reflect/support the following release notes: https://techdocs.akamai.com/linode-api/changelog/nov-30-2026-update-the-active-firewall-for-a-linode-interface, you can now view and update the active firewall for a Linode interface by using the firewall_id field with these endpoints:
List Linode interfaces. GET /linode/instances/{linode_id}/interfaces
Get a Linode interface. GET /linode/instances/{linode_id}/interfaces/{interface_id}
Update a Linode interface. PUT /linode/instances/{linode_id}/interfaces/{interface_id}
✔️ How to Test
What are the steps to reproduce the issue or verify the changes?
How do I run the relevant unit/integration tests?