Add wslc network connect and disconnect commands#41011
Open
beena352 wants to merge 8 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR aims to add wslc network connect and wslc network disconnect CLI subcommands as shims over the existing IWSLCContainer::ConnectToNetwork / DisconnectFromNetwork COM APIs, plus corresponding localization and test help-output updates.
Changes:
- Adds
NetworkService::Connect/NetworkService::Disconnectand corresponding task entrypoints (ConnectNetwork/DisconnectNetwork). - Registers new
connect/disconnectsubcommands under thenetworkroot command and updates the e2e “available commands” help list. - Adds en-US localization strings for the new subcommands’ short/long descriptions.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| test/windows/wslc/e2e/WSLCE2ENetworkTests.cpp | Adds connect/disconnect to the expected wslc network --help subcommand list. |
| src/windows/wslc/tasks/NetworkTasks.h | Declares new network connect/disconnect task functions. |
| src/windows/wslc/tasks/NetworkTasks.cpp | Implements task shims that call into NetworkService connect/disconnect. |
| src/windows/wslc/services/NetworkService.h | Declares NetworkService::Connect / Disconnect. |
| src/windows/wslc/services/NetworkService.cpp | Implements COM calls to connect/disconnect a container to/from a network. |
| src/windows/wslc/commands/NetworkCommand.h | Declares new NetworkConnectCommand / NetworkDisconnectCommand command types. |
| src/windows/wslc/commands/NetworkCommand.cpp | Registers the new connect / disconnect subcommands under wslc network. |
| localization/strings/en-US/Resources.resw | Adds localized description strings for the new subcommands. |
9 tasks
dkbennett
previously approved these changes
Jul 7, 2026
dkbennett
left a comment
Member
There was a problem hiding this comment.
This looks good, would recommend putting the tests into the existing network tests just to try to be a little more efficient with builds without significant incremental/maintenance cost added.
OneBlue
previously approved these changes
Jul 8, 2026
OneBlue
left a comment
Collaborator
There was a problem hiding this comment.
LGTM. Minor test comment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of the Pull Request
Adds wslc network connect and wslc network disconnect CLI commands as thin shims over the existing IWSLCContainer::ConnectToNetwork / DisconnectFromNetwork COM methods.
PR Checklist
Detailed Description of the Pull Request / Additional comments
Validation Steps Performed