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

lxc: implement deletion of network interfaces #754

Merged
merged 1 commit into from
May 24, 2023

Conversation

GamerBene19
Copy link
Contributor

Closes #753

Disclaimer: I did(/do) not know Go, so there probably is room for improvements. Please tell me how it can be improved and I'll refactor.

Approach

First I tried matching simply based on name (e.g. eth0) however I've found this not to be desirable since names don't have to be unique and a simple rename would lead to recreation of a interface.

I then switched to using the Proxmox id since it does not have these flaws. I'm not 100% happy with the fact that I now need to drop the ids before applying the config. Suggestions for a better approach are welcome.

I've tested it quite a bit but certainly more testing would be good. I also don't know the impact on already existing states (since id is now added and was not there before).

@GamerBene19
Copy link
Contributor Author

@mleone87 you seem to commit to this repo the most:
Is there anything else I need to do to get this PR reviewed (and ideally merged)?

@mleone87 mleone87 merged commit 9a82686 into Telmate:master May 24, 2023
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.

Network interfaces (of LXCs) are not deleted
2 participants