We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I`ve made a tiny patch to netctl/src/lib/connections/bond, which allows user to configure bonding mode:
if is_interface "$Interface"; then report_error "Interface '$Interface' already exists" return 1 else interface_add bond "$Interface" fi
+if [[ ! -z "$Mode" ]]; then +echo $Mode > /sys/class/net/${Interface}/bonding/mode +fi
bring_interface_up "$Interface"
Mode can be set according to kernel documentation: https://www.kernel.org/doc/Documentation/networking/bonding.txt
The text was updated successfully, but these errors were encountered:
Why not modify the interface_add line into
interface_add bond "$Interface" "" mode "$Mode"
Anyway, the parameter also needs to be documented in netctl.profile(5)
netctl.profile(5)
Sorry, something went wrong.
Yeah this is smarter solution.. thanks for pointing out right direction. Now it`s time to prepare patches :).
Implemented in d2cf9ae
No branches or pull requests
Hi,
I`ve made a tiny patch to netctl/src/lib/connections/bond, which allows user to configure bonding mode:
if is_interface "$Interface"; then
report_error "Interface '$Interface' already exists"
return 1
else
interface_add bond "$Interface"
fi
+if [[ ! -z "$Mode" ]]; then$Mode > /sys/class/net/$ {Interface}/bonding/mode
+echo
+fi
bring_interface_up "$Interface"
Mode can be set according to kernel documentation:
https://www.kernel.org/doc/Documentation/networking/bonding.txt
The text was updated successfully, but these errors were encountered: