-
Notifications
You must be signed in to change notification settings - Fork 260
[PONv6] Add 3 new fields to NC. #3499
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
This PR adds three new fields to support Vnetblock routing scenarios in single tenant deployments by exposing additional network properties from CNS to NNC. Key changes include:
- Upgrading the controller-gen version in CRD manifests.
- Adding new CRD schema fields for defaultGatewayV6, macAddress, and primaryIPV6.
- Updating the NetworkContainer API type with new fields reflecting these changes.
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| crd/clustersubnetstate/manifests/acn.azure.com_clustersubnetstates.yaml | Upgraded controller-gen version annotation. |
| crd/nodenetworkconfig/manifests/acn.azure.com_nodenetworkconfigs.yaml | Added defaultGatewayV6, macAddress, and primaryIPV6 fields to the CRD schema. |
| crd/nodenetworkconfig/api/v1alpha/nodenetworkconfig.go | Added corresponding fields in the NetworkContainer API type. |
Comments suppressed due to low confidence (3)
crd/nodenetworkconfig/api/v1alpha/nodenetworkconfig.go:122
- [nitpick] Consider renaming 'PrimaryIPV6' to 'PrimaryIPv6' to follow conventional IPv6 formatting.
PrimaryIPV6 string `json:"primaryIPV6,omitempty"`
crd/nodenetworkconfig/api/v1alpha/nodenetworkconfig.go:126
- [nitpick] Consider renaming 'DefaultGatewayV6' to 'DefaultGatewayIPv6' for consistency with IPv6 naming conventions.
DefaultGatewayV6 string `json:"defaultGatewayV6,omitempty"`
crd/nodenetworkconfig/api/v1alpha/nodenetworkconfig.go:127
- [nitpick] Consider renaming 'MacAddress' to 'MACAddress' to align with standard acronym usage.
MacAddress string `json:"macAddress,omitempty"`
4a41379 to
febad81
Compare
febad81 to
d063299
Compare
|
lgtm |
|
@rbtr anything i need to know about CRD changes? will this break anything between here and DNC? |
|
Hi @nddq , we only add new fields and DNC are not using these. We are making DNC PRs to publish to these fields. |
|
/azp run Azure Container Networking PR |
|
Azure Pipelines successfully started running 1 pipeline(s). |
* feat: added 3 new fields on NC. Generated all CRD. * Revert version --------- Co-authored-by: keithnguyen <[email protected]>
Reason for Change:
This change allows DNC to publish
MACAddress,PrimaryIPV6andGatewayV6to NNC. CNS uses these fields to program routes in Swiftv2 Vnetblock scenario (single tenant)No code is using this fields. We have open DNC PR to publish to these fields.
CNS queries NIC
MACAddressagainst the IDMS API to ensure Swift NIC is programmed.Design doc:
https://microsoft.sharepoint.com/:w:/t/Aznet/EZy1F1lEUZpNiPwk6JsUtvcBHapTeO4yNEI6EMUxjElXnA?e=6JaEEl
Issue Fixed:
Requirements:
Notes: