mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 15:10:09 +01:00
ifcfg-rh/tests: test writing multiple bond options
(cherry picked from commit 7328976a02)
This commit is contained in:
parent
0bd8b34725
commit
fae12cf956
2 changed files with 5 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
BONDING_OPTS=mode=balance-rr
|
||||
BONDING_OPTS="downdelay=5 miimon=100 mode=balance-rr updelay=10"
|
||||
TYPE=Bond
|
||||
BONDING_MASTER=yes
|
||||
PROXY_METHOD=none
|
||||
|
|
|
|||
|
|
@ -8058,6 +8058,10 @@ test_write_bond_main (void)
|
|||
s_bond = (NMSettingBond *) nm_setting_bond_new ();
|
||||
nm_connection_add_setting (connection, NM_SETTING (s_bond));
|
||||
|
||||
nm_setting_bond_add_option (s_bond, NM_SETTING_BOND_OPTION_DOWNDELAY, "5");
|
||||
nm_setting_bond_add_option (s_bond, NM_SETTING_BOND_OPTION_UPDELAY, "10");
|
||||
nm_setting_bond_add_option (s_bond, NM_SETTING_BOND_OPTION_MIIMON, "100");
|
||||
|
||||
/* IP4 setting */
|
||||
s_ip4 = (NMSettingIPConfig *) nm_setting_ip4_config_new ();
|
||||
nm_connection_add_setting (connection, NM_SETTING (s_ip4));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue