bond_mode_string_to_int


Description:


[ Version ( since = "1.2" ) ]
public int bond_mode_string_to_int (string mode)

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).

Parameters:

mode

bonding mode as string

Returns:

numeric bond mode, or -1 on error


Namespace: NM.Utils
Package: libnm