mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
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.
This commit is contained in:
parent
69ab26bd33
commit
058273d096
@ -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. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user