Convert bonding mode from string representation to numeric value.
See https://www.kernel.org/doc/Documentation/networking/bonding.txt for available modes. The mode
string can be either a
descriptive name or a number (as string).
mode |
bonding mode as string |
numeric bond mode, or -1 on error |