Skip to content

Add support for NB frontend VPC IP and NB plan type#660

Open
dawiddzhafarov wants to merge 5 commits intolinode:proj/nb-front-end-ip-in-vpcfrom
dawiddzhafarov:feature/TPT-4205-python-sdk-implement-support-for-nodebalancer-front-end-ip-in-vpc
Open

Add support for NB frontend VPC IP and NB plan type#660
dawiddzhafarov wants to merge 5 commits intolinode:proj/nb-front-end-ip-in-vpcfrom
dawiddzhafarov:feature/TPT-4205-python-sdk-implement-support-for-nodebalancer-front-end-ip-in-vpc

Conversation

@dawiddzhafarov
Copy link

📝 Description

This PR adds support for NB Frontend IP VPC and type NB plan.
The changes include adding new endpoints (vpc(), vpcs(), backend_vpcs(), frontend_vpcs()) and modifying NodeBalancer class to include additional response fields: type, frontend_address_type and frontend_vpc_subnet_id.

Added and modified unit tests to cover new fields.

✔️ How to Test

make test-unit

@dawiddzhafarov dawiddzhafarov marked this pull request as ready for review March 5, 2026 08:02
@dawiddzhafarov dawiddzhafarov requested a review from a team as a code owner March 5, 2026 08:02
@dawiddzhafarov dawiddzhafarov requested review from Copilot, jriddle-linode and mawilk90 and removed request for a team March 5, 2026 08:02
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 SDK support for NodeBalancer “NB plan type” and frontend VPC addressing, including new VPC-related endpoints on NodeBalancer and corresponding fixtures/tests.

Changes:

  • Added NodeBalancerVPCConfig object plus NodeBalancer.vpc(), vpcs(), backend_vpcs(), and frontend_vpcs() endpoints.
  • Extended NodeBalancer with response fields type, frontend_address_type, and frontend_vpc_subnet_id.
  • Added/updated unit tests and JSON fixtures to cover the new fields and endpoints.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
test/unit/objects/nodebalancers_test.py Adds unit tests covering new NodeBalancer fields and VPC config endpoints.
test/fixtures/nodebalancers_12345_vpcs_99.json Fixture for single NodeBalancer VPC config response.
test/fixtures/nodebalancers_12345_vpcs.json Fixture for listing NodeBalancer VPC configs.
test/fixtures/nodebalancers_12345_frontend__vpcs.json Fixture for listing frontend VPC configs.
test/fixtures/nodebalancers_12345_backend__vpcs.json Fixture for listing backend VPC configs.
test/fixtures/nodebalancers_123456.json Updates single NodeBalancer fixture with new response fields.
test/fixtures/nodebalancers.json Updates NodeBalancer list fixture with new response fields.
linode_api4/objects/nodebalancer.py Implements new model/object fields and VPC-related endpoints.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

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


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

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


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dawiddzhafarov dawiddzhafarov added the new-feature for new features in the changelog. label Mar 5, 2026
@mawilk90 mawilk90 requested a review from ezilber-akamai March 5, 2026 12:00
"""
View VPC information for VPCs associated with this NodeBalancer.

API Documentation: https://techdocs.akamai.com/linode-api/reference/get-node-balancer-vpc-config
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Author

Choose a reason for hiding this comment

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

I could swore I fixed that before but I had to mess up my commits and copilot's. Fixed now.

"""
View VPC information for a VPC associated with this NodeBalancer.

API Documentation: https://www.linode.com/docs/api/nodebalancers/#nodebalancer-vpcs-view
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Author

Choose a reason for hiding this comment

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

Fixed.

Copy link
Contributor

@ezilber-akamai ezilber-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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-feature for new features in the changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants