Re: [libvirt] virDomainNetGetActualBridgeName doesn't return the actual bridge

2012-02-01 Thread Hendrik Schwartke
I'm working on a patch to change the network an interface is associated with while the guest is running. So one part of this is of course changing the bridge the interface is actually connected to. I already considered the way your described (from domain to net to bridge) but I'm wondering if

Re: [libvirt] virDomainNetGetActualBridgeName doesn't return the actual bridge

2012-01-31 Thread Cole Robinson
On 01/30/2012 08:15 AM, Hendrik Schwartke wrote: Hi, calling virDomainNetGetActualBridgeName on a bridge with type VIR_DOMAIN_NET_TYPE_NETWORK seems to return NULL in any case, because iface-data.network.actual is NULL. Is that intented? What is the best way to determine the bridge the

Re: [libvirt] virDomainNetGetActualBridgeName doesn't return the actual bridge

2012-01-31 Thread Laine Stump
On 01/30/2012 08:15 AM, Hendrik Schwartke wrote: Hi, calling virDomainNetGetActualBridgeName on a bridge with type VIR_DOMAIN_NET_TYPE_NETWORK seems to return NULL in any case, because iface-data.network.actual is NULL. Is that intented? Yes, that's how it was intended to work. It has a

Re: [libvirt] virDomainNetGetActualBridgeName doesn't return the actual bridge

2012-01-31 Thread Laine Stump
On 01/31/2012 11:55 AM, Laine Stump wrote: On 01/30/2012 08:15 AM, Hendrik Schwartke wrote: Hi, calling virDomainNetGetActualBridgeName on a bridge with type VIR_DOMAIN_NET_TYPE_NETWORK seems to return NULL in any case, because iface-data.network.actual is NULL. Is that intented? Yes,

[libvirt] virDomainNetGetActualBridgeName doesn't return the actual bridge

2012-01-30 Thread Hendrik Schwartke
Hi, calling virDomainNetGetActualBridgeName on a bridge with type VIR_DOMAIN_NET_TYPE_NETWORK seems to return NULL in any case, because iface-data.network.actual is NULL. Is that intented? What is the best way to determine the bridge the interface is connected to? Hendrik Schwartke --