Skip to content
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

#4235 - added pin/unpin netsh commands for maps and programs #4254

Merged
merged 18 commits into from
Mar 12, 2025

Conversation

zodiacon
Copy link
Collaborator

@zodiacon zodiacon commented Feb 28, 2025

Description

Added new commands to netsh:
pin map <id> [pinpath]
unpin map <id> [pinpath]
pin program <id> [pinpath]
unpin program <id> [pinpath]

#4235

Copy link
Collaborator

@dthaler dthaler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments. Also I wonder if using existing verbs like add pin [type=](program|map) ... and delete pin [id=]<id> might be better than creating new verbs? The former I think is more common even though the latter is permitted.

Copy link
Collaborator

@dthaler dthaler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/microsoft/ebpf-for-windows/blob/main/CONTRIBUTING.md says:

Tests need to be provided for every bug/feature that is completed.

Please update tests\end_to_end\netsh_test.cpp with tests for these commands.

dthaler
dthaler previously approved these changes Mar 5, 2025
Copy link
Collaborator

@dthaler dthaler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok other than some comment nits

@zodiacon
Copy link
Collaborator Author

I don't have the power to merge...

@Alan-Jowett Alan-Jowett added this pull request to the merge queue Mar 12, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 12, 2025
@Alan-Jowett Alan-Jowett added this pull request to the merge queue Mar 12, 2025
Merged via the queue into microsoft:main with commit 25d6308 Mar 12, 2025
95 of 97 checks passed
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.

3 participants