Skip to content

Conversation

@ecigar13
Copy link
Contributor

@ecigar13 ecigar13 commented Mar 12, 2025

Reason for Change:
This change allows DNC to publish MACAddress, PrimaryIPV6 and GatewayV6 to 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 MACAddress against 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:

@ecigar13 ecigar13 changed the title [PONv6] Add 3 new fields on NC. [WIP][PONv6] Add 3 new fields on NC. Mar 12, 2025
@ecigar13 ecigar13 marked this pull request as ready for review March 12, 2025 16:49
Copilot AI review requested due to automatic review settings March 12, 2025 16:49
@ecigar13 ecigar13 requested a review from a team as a code owner March 12, 2025 16:49
@ecigar13 ecigar13 requested a review from agrawaliti March 12, 2025 16:49
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

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"`

@ecigar13 ecigar13 added the cns Related to CNS. label Mar 12, 2025
@ecigar13 ecigar13 changed the title [WIP][PONv6] Add 3 new fields on NC. [PONv6] Add 3 new fields on NC. Mar 12, 2025
@ecigar13 ecigar13 changed the title [PONv6] Add 3 new fields on NC. [PONv6] Add 3 new fields to NC. Mar 12, 2025
@paulyufan2
Copy link
Contributor

lgtm

@nddq
Copy link
Member

nddq commented Mar 14, 2025

@rbtr anything i need to know about CRD changes? will this break anything between here and DNC?

@ecigar13
Copy link
Contributor Author

Hi @nddq , we only add new fields and DNC are not using these. We are making DNC PRs to publish to these fields.

@nddq
Copy link
Member

nddq commented Mar 18, 2025

/azp run Azure Container Networking PR

@nddq nddq enabled auto-merge March 18, 2025 15:56
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@nddq nddq added this pull request to the merge queue Mar 18, 2025
Merged via the queue into master with commit 9d42d3c Mar 18, 2025
14 checks passed
@nddq nddq deleted the keith/updateYaml branch March 18, 2025 19:15
sivakami-projects pushed a commit that referenced this pull request Oct 23, 2025
* feat: added 3 new fields on NC. Generated all CRD.

* Revert version

---------

Co-authored-by: keithnguyen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cns Related to CNS.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants