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

[client] Destory WG interface on down timeout #2435

Merged
merged 13 commits into from
Sep 2, 2024

Conversation

pascal-fischer
Copy link
Contributor

@pascal-fischer pascal-fischer commented Aug 15, 2024

Describe your changes

This PR updates the wait on engine down to not only wait for the interface to be down but completely removed. If the waiting loop reaches the timeout we will trigger an interface destroy. On the up command, it now waits until the engine is fully running before sending the response to the CLI. Includes a small refactor of probes to comply with sonar rules about parameter count in the function call.

Issue ticket number and link

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

iface/iface_destroy_linux.go Outdated Show resolved Hide resolved
iface/iface.go Outdated Show resolved Hide resolved
client/server/server.go Outdated Show resolved Hide resolved
Copy link

sonarqubecloud bot commented Sep 2, 2024

@mlsmaycon mlsmaycon merged commit 13e7198 into main Sep 2, 2024
21 checks passed
@mlsmaycon mlsmaycon deleted the fix/add-interface-destroy branch September 2, 2024 17:19
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