-
Notifications
You must be signed in to change notification settings - Fork 242
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
fix: don't restart HNS if the ARP regkey is not changed #3498
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 removes the HNS service restart functionality when setting SDNRemoteArpMacAddress to improve reliability by avoiding fragile service restarts.
- Removed unused imports (svc and svc/mgr)
- Removed the restartHNS function and its invocation in SetSdnRemoteArpMacAddress
64335c6
to
7cd7a04
Compare
/azp run Azure Container Networking PR |
Azure Pipelines successfully started running 1 pipeline(s). |
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 modifies the behavior when setting the SDNRemoteArpMacAddress registry key so that the HNS service is not restarted if the registry value is already set.
- The setSDNRemoteARPRegKey function now returns a boolean flag indicating if the key was changed.
- The SetSdnRemoteArpMacAddress function has been updated to check this flag and conditionally skip restarting HNS.
Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>
7cd7a04
to
46a5d4a
Compare
/azp run Azure Container Networking PR |
Azure Pipelines successfully started running 1 pipeline(s). |
don't restart HNS when setting SDNRemoteArpMacAddress (or at all, it's fragile).
reverts behavior changed in #3343 (timeout and retry if HNS is not responding) and #2993 (restart HNS after the regkey is set unconditionally)