mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-30 03:50:10 +01:00
nm-setting-bond: also accept bond mode as a numerical id
That corresponds to how the Kernel numbers the different modes.
This commit is contained in:
parent
2f20878dbf
commit
d73a98a3e8
1 changed files with 7 additions and 0 deletions
|
|
@ -705,6 +705,13 @@ NM_UTILS_STRING_TABLE_LOOKUP_DEFINE (
|
|||
NMBondMode,
|
||||
{ g_return_val_if_fail (name, NM_BOND_MODE_UNKNOWN); },
|
||||
{ return NM_BOND_MODE_UNKNOWN; },
|
||||
{ "0", NM_BOND_MODE_ROUNDROBIN },
|
||||
{ "1", NM_BOND_MODE_ACTIVEBACKUP },
|
||||
{ "2", NM_BOND_MODE_XOR },
|
||||
{ "3", NM_BOND_MODE_BROADCAST },
|
||||
{ "4", NM_BOND_MODE_8023AD },
|
||||
{ "5", NM_BOND_MODE_TLB },
|
||||
{ "6", NM_BOND_MODE_ALB },
|
||||
{ "802.3ad", NM_BOND_MODE_8023AD },
|
||||
{ "active-backup", NM_BOND_MODE_ACTIVEBACKUP },
|
||||
{ "balance-alb", NM_BOND_MODE_ALB },
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue