ifcfg-rh/tests: test writing multiple bond options

(cherry picked from commit 7328976a02)
This commit is contained in:
Thomas Haller 2017-11-21 12:47:11 +01:00
parent 0bd8b34725
commit fae12cf956
2 changed files with 5 additions and 1 deletions

View file

@ -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

View file

@ -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));