Skip to content

Conversation

@mguentner
Copy link
Contributor

This change enables easier integration with third-party tools by removing the requirement for a dummy IP address when configuring tap devices. The modification applies to both CLI and API interactions.

Previously, cloud-hypervisor would automatically set a default static IP address (192.168.249.1) if none was provided.

This could lead to:

  • multiple devices without explicit IP configurations would end up with the same default IP
  • unnecessary inclusion of this IP in firewall rules
  • the IP address could clash with host networking and routing

Removes warnings introduced in #7179.
Closes issue #7083.

Supersedes #7076

@mguentner mguentner requested a review from a team as a code owner September 18, 2025 09:35
@mguentner mguentner force-pushed the mguentner/cli_optional_ip_and_mask branch from 75a2ac3 to 7bd4fa2 Compare September 18, 2025 13:40
@mguentner mguentner force-pushed the mguentner/cli_optional_ip_and_mask branch 3 times, most recently from cba7bf5 to a2fdaf9 Compare September 20, 2025 12:57
@mguentner
Copy link
Contributor Author

As far as I can see, the test failure looks like a flaky test

This change enables easier integration with third-party
tools by removing the requirement for a dummy IP address
when configuring tap devices. The modification applies to
both CLI and API interactions.

Previously, cloud-hypervisor would automatically set a
default static IP address (192.168.249.1) if none was provided.

This could lead to:

* multiple devices without explicit IP configurations
  would end up with the same default IP
* unnecessary inclusion of this IP in firewall rules
* the IP address could clash with host networking and
  routing

This introduces a new constraint:
When providing an IP, the mask must also be provided.

Removes warnings introduced in cloud-hypervisor#7179.
Closes issue cloud-hypervisor#7083.

Signed-off-by: Maximilian Güntner <[email protected]>
@mguentner mguentner force-pushed the mguentner/cli_optional_ip_and_mask branch from a2fdaf9 to 8b70c66 Compare September 22, 2025 08:43
Copy link
Member

@rbradford rbradford left a comment

Choose a reason for hiding this comment

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

Thank you for your patience on getting this in!

@rbradford rbradford added this pull request to the merge queue Sep 22, 2025
Merged via the queue into cloud-hypervisor:main with commit 66aa074 Sep 22, 2025
48 of 49 checks passed
@likebreath likebreath moved this to ✅ Done in Cloud Hypervisor Roadmap Nov 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants