mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
On bond creation and update, ifupdown2 directly caches the netlink object sent to the kernel. If the bond already exists it overrides the existing cached object. If the existing bond was enslaved to a bridge, some bridge vlan data would get purged because the new netlink object didn't have the IFLA_MASTER attribute (thus tricking the cache into thinking that the bond got unslaved from the bridge). Here is a snippet of the bond013 /en/i config in the first topology: auto bond013 iface bond013 bond-slaves swp1s3 es-sys-mac 44:38:39:FF:00:02 bridge-vids 101-144 bond-lacp-bypass-allow yes mstpctl-portadminedge yes mstpctl-bpduguard yes And here in the second topology: auto bond013 iface bond013 bond-slaves swp1s3 es-sys-mac 44:38:39:FF:00:01 bridge-vids 201-210 bond-lacp-bypass-allow yes mstpctl-portadminedge yes mstpctl-bpduguard yes Signed-off-by: Julien Fortin <jfortin@nvidia.com>