From: Doug Goldstein Date: Wed, 20 Feb 2013 06:48:56 +0000 (-0600) Subject: interface: dev type support for bond interfaces X-Git-Tag: v1.0.3-rc1~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=058273d09661b766779ef87fa9a1082b2d6f1821;p=thirdparty%2Flibvirt.git interface: dev type support for bond interfaces Patch has been accepted into net-next's 3.9 queue to correctly expose bond interfaces with the 'bond' devtype. --- diff --git a/src/interface/interface_backend_udev.c b/src/interface/interface_backend_udev.c index a34363a788..bd83545ad3 100644 --- a/src/interface/interface_backend_udev.c +++ b/src/interface/interface_backend_udev.c @@ -1016,6 +1016,9 @@ udevIfaceGetIfaceDef(struct udev *udev, const char *name) ifacedef->type = VIR_INTERFACE_TYPE_VLAN; } else if (STREQ_NULLABLE(devtype, "bridge")) { ifacedef->type = VIR_INTERFACE_TYPE_BRIDGE; + } else if (STREQ_NULLABLE(devtype, "bond")) { + /* This only works on modern kernels (3.9 and newer) */ + ifacedef->type = VIR_INTERFACE_TYPE_BOND; } /* Fallback checks if the devtype check didn't work. */