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

MTV-1711 | Backport to 2.7.6, keep static IP on Debian based interfaces #1245

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

yaacov
Copy link
Member

@yaacov yaacov commented Dec 4, 2024

Issue: All Debian-based operating systems can have the network configurations in the /etc/network/interfaces. Right now we are not fetching information from these config files when creating the udev rule to set the interface name.

Fix: Add a new function to the network_config_util.sh script. I have decided to use the ifquery inside the guest.
Alternatively, we would need to start parsing the config files. We can easily grep the IP address from the configfile and find the interface name but there could be multiple interface configurations inside one file.

Docs: https://man.cx/interfaces(5)

Issue: All Debian-based operating systems can have the network
configurations in the `/etc/network/interfaces`. Right now we are not
fetching information from these config files when creating the udev rule
to set the interface name.

Fix: Add a new function to the `network_config_util.sh` script. I have
decided to use the `ifquery` inside the guest.
Alternatively, we would need to start parsing the config files.
We can easily grep the IP address from the configfile and find the interface
name but there could be multiple interface configurations inside one file.

Docs: https://man.cx/interfaces(5)

Signed-off-by: Martin Necas <[email protected]>
@yaacov yaacov requested a review from mnecas as a code owner December 4, 2024 13:12
Copy link

sonarqubecloud bot commented Dec 4, 2024

@yaacov yaacov changed the title MTV-1711 | Keep static IP on Debian based interfaces MTV-1711 | Backport to 2.7.6, keep static IP on Debian based interfaces Dec 4, 2024
@mnecas mnecas merged commit 491352e into kubev2v:release-2.7 Dec 4, 2024
9 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.

2 participants