[netcf-devel] [PATCH] Detect and report live interface type.
Daniel P. Berrange
berrange at redhat.com
Tue Oct 13 19:44:20 UTC 2009
On Tue, Oct 13, 2009 at 01:27:57PM -0400, Laine Stump wrote:
> Poke around in sysfs and procfs to determine the type of an interface,
> and set the "type" attribute in the xml appropriately. If no clue is
> found, default to "ethernet", which is the current behavior elsewhere
> in netcf as well.
> ---
> src/drv_initscripts.c | 3 +++
> src/dutil.c | 33 +++++++++++++++++++++++++++++++++
> src/dutil.h | 5 +++++
> 3 files changed, 41 insertions(+), 0 deletions(-)
ACK, this turned out much simpler that I had thought it would. Though
of course someone will no doubt find an older kernel which has things
in a different place, that can be fixed up as & when required.
Daniel
--
|: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
More information about the netcf-devel
mailing list