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

2009-06-17 Thread Daniel P. Berrange
On Wed, Jun 17, 2009 at 07:27:43PM +0100, Daniel P. Berrange wrote: > On Wed, Jun 17, 2009 at 11:16:28AM -0700, David Lutterkort wrote: > > > > * int netcf_if_operstate(netcf_if *) - return 1 if interface is > > up, 0 if not > > * int netcf_if_stats(netcf_if *, netcf_if_stats *

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

2009-06-17 Thread David Lutterkort
On Wed, 2009-06-17 at 19:27 +0100, Daniel P. Berrange wrote: > Hmm, this seems wrong to me. 'connections' are an application level > concept. The libvirt API should be exposing all the interfaces on > the host, so you should see all the br0, bond0, and eth0 & eth1 > devices for a bridge on top of

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

2009-06-17 Thread Daniel P. Berrange
On Wed, Jun 17, 2009 at 11:16:28AM -0700, David Lutterkort wrote: > > * int netcf_if_operstate(netcf_if *) - return 1 if interface is > up, 0 if not > * int netcf_if_stats(netcf_if *, netcf_if_stats *) - get rx/tx > statistics; which ones needs to be figured out in deta

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

2009-06-17 Thread David Lutterkort
On Tue, 2009-06-16 at 15:12 -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 in