Fix issues that prevent user multipath preferences from being respected

This commit is contained in:
Joseph Henry 2024-08-29 10:09:19 -07:00
parent f176e2539e
commit bf7dddbd84
No known key found for this signature in database
GPG key ID: C45B33FF5EBC9344
4 changed files with 29 additions and 17 deletions

View file

@ -2510,7 +2510,7 @@ public:
}
_node->bondController()->addCustomLink(customPolicyStr, new Link(linkNameStr,ipvPref,mtu,capacity,enabled,linkMode,failoverToStr));
}
std::string linkSelectMethodStr(OSUtils::jsonString(customPolicy["activeReselect"],"optimize"));
std::string linkSelectMethodStr(OSUtils::jsonString(customPolicy["activeReselect"],"always"));
if (linkSelectMethodStr == "always") {
newTemplateBond->setLinkSelectMethod(ZT_BOND_RESELECTION_POLICY_ALWAYS);
}