Skip to content

Conversation

mugeshsp
Copy link
Contributor

@mugeshsp mugeshsp commented Sep 29, 2025

Reason for Change:
Enables dual NIC feature support in Azure Container Networking by adding the ability to skip default routes and improving ARP proxy configuration for transparent VLAN clients. This enhancement allows for better network isolation and custom routing scenarios in multi-interface container environments.

Requirements:

Notes:
This PR includes three main commits:

  1. Added SkipDefaultRoutes field to network container request/response contracts
  2. Implemented ARP proxy setting and custom subnet route addition for VLAN interfaces

@mugeshsp mugeshsp requested review from a team as code owners September 29, 2025 16:53
@Copilot Copilot AI review requested due to automatic review settings September 29, 2025 16:53
@mugeshsp mugeshsp requested a review from a team as a code owner September 29, 2025 16:53
Copy link
Contributor

@Copilot 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 enables dual NIC support in transparent VLAN by adding the ability to skip default routes and improving ARP proxy configuration for transparent VLAN clients. This enhancement allows for better network isolation and custom routing scenarios in multi-interface container environments.

  • Added SkipDefaultRoutes field to network container request/response contracts
  • Implemented ARP proxy setting and custom subnet route addition for VLAN interfaces
  • Enabled dual NIC feature support on Linux platform

Reviewed Changes

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

Show a summary per file
File Description
network/transparent_vlan_endpointclient_linux.go Added ARP proxy configuration and custom routing logic with SkipDefaultRoutes support
cns/restserver/util.go Propagated SkipDefaultRoutes field in network container responses and IP configuration
cns/NetworkContainerContract.go Added SkipDefaultRoutes field to request/response contracts and updated string representation
cni/network/network_linux.go Enabled dual NIC feature support for Linux platform
cni/network/multitenancy.go Added SkipDefaultRoutes field to interface info configuration

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@mugeshsp mugeshsp requested review from QxBytes and tamilmani1989 and removed request for QxBytes September 30, 2025 16:18
@tamilmani1989
Copy link
Member

@mugeshsp please fix lint errors

@mugeshsp mugeshsp force-pushed the mugeshsp/pg-dual-nic branch from 850cadc to 6fde3f8 Compare October 6, 2025 11:02
@mugeshsp
Copy link
Contributor Author

mugeshsp commented Oct 6, 2025

@microsoft-github-policy-service agree company="Microsoft"

@mugeshsp
Copy link
Contributor Author

mugeshsp commented Oct 6, 2025

@mugeshsp please fix lint errors

Fixed the lint errors

tamilmani1989
tamilmani1989 previously approved these changes Oct 7, 2025
paulyufan2
paulyufan2 previously approved these changes Oct 9, 2025
@paulyufan2 paulyufan2 enabled auto-merge October 9, 2025 16:08
@paulyufan2
Copy link
Contributor

/azp run Azure Container Networking PR

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@paulyufan2
Copy link
Contributor

/azp run Azure Container Networking PR

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@paulyufan2 paulyufan2 added this pull request to the merge queue Oct 22, 2025
Merged via the queue into master with commit fdc9b72 Oct 22, 2025
12 of 13 checks passed
@paulyufan2 paulyufan2 deleted the mugeshsp/pg-dual-nic branch October 22, 2025 19:08
sivakami-projects pushed a commit that referenced this pull request Oct 23, 2025
* feat: add SkipDefaultRoutes field to network container request and responses

* feat: implement ARP proxy setting and custom route addition for VLAN interfaces

* feat: enable dual NIC feature support and improve ARP proxy handling in transparent VLAN client

* feat: add tests for SkipDefaultRoutes handling in network container requests

* feat: remove addition of custom routes

* fix: improve ARP proxy error handling

* fix: Lint Errors

* refactor: streamline ARP proxy setup in AddEndpointRules

* fix: update comments for dual NIC support and clarify ARP proxy function

---------

Co-authored-by: Mugesh SP <[email protected]>
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.

4 participants