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

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

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 ?

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

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