Right now system-linux writes to the wrong file (not existing)
to configure the "all_ports_active" flag for bonding devices.
Write to the correct "bonding/all_slaves_active" path.
Signed-off-by: Nicolò Veronese <nicveronese@gmail.com>
Link: https://github.com/openwrt/netifd/pull/49
Signed-off-by: Robert Marko <robimarko@gmail.com>
system_set_dev_sysfs("bonding/mode", ifname, bonding_policy_str[cfg->policy]);
- system_set_dev_sysfs_int("bonding/all_ports_active", ifname, cfg->all_ports_active);
+ system_set_dev_sysfs_int("bonding/all_slaves_active", ifname, cfg->all_ports_active);
if (cfg->policy == BONDING_MODE_BALANCE_XOR ||
cfg->policy == BONDING_MODE_BALANCE_TLB ||