Mon, Jul 20, 2020 at 10:53:21AM CEST, liuhangbin(a)gmail.com wrote:
When convert Bond config to Team, TYPE is used for Bond and
DEVICETYPE
is used for Team. So we should remove TYPE keyword in ifcfg file.
Before the fix:
$ ls bonding/
ifcfg-bond0 ifcfg-bond0-eth1 ifcfg-bond0-eth2
$ bond2team --configdir bonding/ --master bond0 --rename team0 --stdout | grep TYPE
TYPE=Bond
DEVICETYPE="Team"
TYPE=Ethernet
DEVICETYPE="TeamPort"
TYPE=Ethernet
DEVICETYPE="TeamPort"
Afther the fix:
$ bond2team --configdir bonding/ --master bond0 --rename team0 --stdout | grep TYPE
DEVICETYPE="Team"
DEVICETYPE="TeamPort"
DEVICETYPE="TeamPort"
Fixes: d5a1c8ee9e36 ("utils: add bond2team conversion tool")
Signed-off-by: Hangbin Liu <liuhangbin(a)gmail.com>
applied, thanks.