[libvirt] [PATCHv2 5/5] network: add connections counter to networks

Eric Blake eblake at redhat.com
Tue Aug 14 15:55:54 UTC 2012


On 08/14/2012 01:10 AM, Laine Stump wrote:
> Just as each physical device used by a network has a connections
> counter, now each network has a connections counter which is
> incremented once for each guest interface that connects using this
> network.
> 
> The count is output in the live network XML, like this:
> 
>    <network connections='20'>
>    ...
>    </network>
> 
> It is read-only, and for informational purposes only - it isn't used
> internally anywhere by libvirt.
> ---
>  src/conf/network_conf.c     |  6 +++++-
>  src/conf/network_conf.h     |  1 +
>  src/network/bridge_driver.c | 10 ++++++++++
>  3 files changed, 16 insertions(+), 1 deletion(-)

Still, I can't help but wonder if someone will try to feed the live
dumpxml output back into libvirt to define a new network config, and
trigger an rng failure as a result - you need to touch
docs/schemas/network.rng.  I also think this is missing documentation -
it may be an output-only parameter, but is worth mentioning in
docs/formatnetwork.html.in.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120814/1ae6fe86/attachment-0001.sig>


More information about the libvir-list mailing list