xen-org/xen-api — pull request #508 by robhoes (2012-03-15 15:34:59+00:00)
Title: Do not create "fake" bond interface for ovs bonds

A Linux-style bonded NIC comes with a Linux network device for the bond master (e.g. "bond0"), and xapi uses this to obtain the PIF_metrics and RRD data for the bond. Bonds on the Open vSwitch, however, are implemented differently and do not need such a device, though the vSwitch still has a option to create such a device (a "fake" bond device) for backwards compatibility.

The ovs team asked us to remove this dependency from xapi, so that they can get rid of this compatibility mode in ovs. These patches change xapi to not rely on the bond interface for stats anymore, but obtain these directly from the bonded interfaces.

This also gives us an opportunity to redefine the PIF_metrics for bonds (which were previously not very well defined) in xapi itself.

Signed-off-by: Rob Hoes