bond: fix re-assuming of connections
authorBeniamino Galvani <bgalvani@redhat.com>
Wed, 16 Mar 2016 10:22:07 +0000 (11:22 +0100)
committerBeniamino Galvani <bgalvani@redhat.com>
Tue, 29 Mar 2016 16:10:05 +0000 (18:10 +0200)
commit2324410a75dda09d4c46362d29fb84048bfe9fcd
treea663ca9ca7cb629d02fadb68f7bbcf0eaf73160b
parenta9241773d7e73152f6360663aef07b8db3393924
bond: fix re-assuming of connections

When a value of a TYPE_BOTH option is read back from kernel it
contains both string and numeric values ("balance-rr 0"), so we must
chop off the number before adding the option to the setting. Also
change the default values of options to the string form so that the
option matching logic works.
libnm-core/nm-core-internal.h
libnm-core/nm-setting-bond.c
src/devices/nm-device-bond.c