Re: [libvirt] [RFC] Reporting host interface status/statistics via netcf/libvirt, and listing active vs. inactive interfaces

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jun 16, 2009 at 03:12:36PM -0400, Laine Stump wrote:
> I've already been working on incorporating physical host interface 
> configuration into libvirt by way of using libnetcf on the backend. It's 
> becoming apparent that, in addition to modifying and reporting the 
> current configuration of interfaces, libvirt users also want to query 
> current status of each interface (up/down, possibly other flags, 
> packet/byte/error counts, current IP address, etc).


> This function could be exposed in the libvirt API as something like:
> 
> 	int virInterfaceStatus|Info(virInterffacePtr iface,
>                                     virInterfaceStats|Info *info);

That is reasonable.

> Any comments/ideas on this?
> 
> (One possible complication I can see is interfaces with multiple 
> associated IPs. On some platforms, each interface can have only a single 
> IPv4 and a single IPv6 address (more IPs == more interfaces), but on 
> others there can be multiples.)

IP address information should be in the XML, and indeed surely it is 
already there in order to allow non-DHCP  based IP address config
on interfaces ?

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 :|

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]