-
Notifications
You must be signed in to change notification settings - Fork 259
enable dual NIC support in transparent VLAN #4057
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 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 please fix lint errors |
850cadc
to
6fde3f8
Compare
@microsoft-github-policy-service agree company="Microsoft" |
Fixed the lint errors |
/azp run Azure Container Networking PR |
Azure Pipelines successfully started running 1 pipeline(s). |
304db52
/azp run Azure Container Networking PR |
Azure Pipelines successfully started running 1 pipeline(s). |
* 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]>
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: