Closed luis4a0 closed 1 month ago
Attention: Patch coverage is 89.47368%
with 2 lines
in your changes are missing coverage. Please review.
Project coverage is 88.80%. Comparing base (
2a16af2
) to head (2f4ac45
).
Files | Patch % | Lines |
---|---|---|
...orm/backends/qemu/qemu_virtual_machine_factory.cpp | 0.00% | 2 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Hey @townsend2010!
Why is there anything qemu related, particularly on Linux, in this PR? Shouldn't this be done in https://github.com/canonical/multipass/pull/3463 once this PR is in?
On one hand, moving to platform detail is needed because the code will be different for macOS QEMU. On the other hand, you are right in the sense that the particular function implementation will be needed after bridging is implemented in Linux QEMU. I can make the detail function on Linux throw, and then in the other PR introduce the code again.
Hey @townsend2010, @ricab! I addressed all the concerns above, and added some tests. This is ready for review now.
The answer was wrong in some backends. This PR uses a more reliable mechanism, inspecting the contents of the platform networks data structure.
Fixes #3489.