On Monday, 1 October 2018 13:28:26 CEST Richard W.M. Jones wrote:
As part of the fix for:
https://bugzilla.redhat.com/show_bug.cgi?id=1626503
I'm proposing to add two new APIs to fetch information about the list
of network interfaces of an existing guest. These two patches outline
the proposed API but with no implementation or tests. However they
can be applied and compiled.
Please see the second patch for the proposed API.
I have a mostly working implementation for Red Hat-style ifcfg-*
files, and both Debian /etc/network/interfaces and Windows registry
look do-able using the same architecture.
It is hard to see whether this API is enough to cover the use case,
without an actual implementation.
I remember RFCs for virt-builder/virt-customize to change the network
configuration of a guest, and even just determining the actual
configuration that a guest will have is very hard: you can have
multiple network-related daemon installed in the guest, different
available configurations (even stale ones, if they were not cleaned
when their system was removed), and so on.
Hence, I am notsure whether trying to get any data is better than just
not provide any at all...
--
Pino Toscano