PCP-6119: feat: add AUTO link mode and LinkSubnetWithMode for MAAS link_subnet#43
PCP-6119: feat: add AUTO link mode and LinkSubnetWithMode for MAAS link_subnet#43AmitSahastra merged 5 commits intomainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds AUTO link mode support for MAAS network interface subnet linking and introduces a new Subnets client for listing subnets. The changes enable more flexible network interface configuration, particularly for managed subnets where MAAS can assign static IPs at deploy time without requiring DHCP on the wire.
Changes:
- Added
ModeAutoconstant and new methodsLinkSubnetWithMode,LinkSubnetWithForce, andUpdatefor network interfaces - Added
Subnetsclient withList()method to retrieve subnet information from MAAS - Added
CIDR()method toSubnetinterface to expose subnet CIDR information
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 11 comments.
Show a summary per file
| File | Description |
|---|---|
| maasclient/subnets.go | New file implementing Subnets client for listing MAAS subnets |
| maasclient/subnet.go | Added CIDR field and getter method to Subnet interface |
| maasclient/networkinterface.go | Added LinkSubnetWithMode, LinkSubnetWithForce, and Update methods; modified LinkSubnet to delegate to LinkSubnetWithMode |
| maasclient/constants.go | Added ModeAuto constant and updated mode documentation |
| maasclient/clientset.go | Added Subnets() method to ClientSetInterface |
| maasclient/client.go | Integrated Subnets controller into authenticatedClientSet |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
LinkSubnetWithMode (no force) and LinkSubnetWithForce (force=true)
|
@Kun483 new changes LGTM! |
No description provided.