Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

ref: [LKE-11724] Support updating firewall ID of Linode Interfaces - #1089

Open
sphan-akamai wants to merge 1 commit into
linode:mainfrom
sphan-akamai:support-put-linode-interfaces-firewall-id
Open

sphan-akamai wants to merge 1 commit into
linode:mainfrom
sphan-akamai:support-put-linode-interfaces-firewall-id

Conversation

@sphan-akamai

@sphan-akamai sphan-akamai commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

📝 Description

What does this PR do and why is this change necessary?

✔️ How to Test

What are the steps to reproduce the issue or verify the changes?

How do I run the relevant unit/integration tests?

cd test 
go test -v ./unit/... -run TestInterface_UpdateFirewallID
go test -v ./unit/... -run TestInterface_GET
go test -v ./unit/... -run TestInterface_LIST

@sphan-akamai
sphan-akamai requested review from a team as code owners December 1, 2026 16:10
@sphan-akamai
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
@sphan-akamai sphan-akamai changed the title Support updating firewall ID of Linode Interfaces ref: [LKE-11724] Support updating firewall ID of Linode Interfaces Dec 1, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 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 FirewallID to config-interface responses and update options, preserving it in GetUpdateOptions.
  • 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

Comment thread instance_config_interfaces.go Resolved
@sphan-akamai
sphan-akamai force-pushed the support-put-linode-interfaces-firewall-id branch 2 times, most recently from 222792c to f0f840c Compare December 1, 2026 16:32
@sphan-akamai
sphan-akamai force-pushed the support-put-linode-interfaces-firewall-id branch from 45eeede to 0a992ea Compare December 1, 2026 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants