]> git.proxmox.com Git - mirror_ifupdown2.git/commit
addons: bond: add ifname length check in sysfs back up path
authorJulien Fortin <julien@cumulusnetworks.com>
Mon, 10 Aug 2020 14:02:13 +0000 (16:02 +0200)
committerJulien Fortin <julien@cumulusnetworks.com>
Mon, 25 Jan 2021 20:33:36 +0000 (21:33 +0100)
commitd0d657ed159a677c3cd6e8915c33659650f4b830
tree1bd812d3f1223261785a7b9d4e9159c293543bb2
parent28bf72d8cb62c166841a32e0aa7de52ec6396b7a
addons: bond: add ifname length check in sysfs back up path

When creating a bond, we first use a netlink call, if that
call fails we try to create and setup the bond via sysfs.

If the bond name is longer than 15 chars the netlink call
will fail, we will then enter the sysfs path which creates
the bond by writing to /sys/class/net/bonding_masters. In
this case the bonding driver will simply truncate the bond
name to fit into the 15 chars limit.

Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
ifupdown2/addons/bond.py