jpirko / libteam

team netdevice library
GNU Lesser General Public License v2.1
231 stars 59 forks source link

Unable to set key LACP for ports in ifcfg-* #39

Open f-guichard opened 6 years ago

f-guichard commented 6 years ago

Hello,

i'm trying to set key lacp ports via /etc/sysconfig/network-scripts/ifcfg-* network config files.

The setup is being done that way : bond0 is a team device composed of two ethernet ports, eth0 and eth1.

The config files are described after :

Bond0 : /etc/sysconfig/network-scripts/ifcfg-bond0 DEVICE=bond0 NAME=bonding-bond0 DEVICETYPE=Team ONBOOT=yes BOOTPROTO=none TEAM_CONFIG='{"runner": {"name": "lacp", "fast_rate": true, "active": true, "tx_hash": ["eth"]}, "link_watch": {"name": "ethtool"}}'

eth0 : /etc/sysconfig/network-scripts/ifcfg-eth0 NAME=eth0 DEVICE=eth0 DEVICETYPE=TeamPort ONBOOT=yes TEAM_MASTER=bond0 TEAM_PORT_CONFIG='{"prio": 100, "key": 10}'

eth1 : /etc/sysconfig/network-scripts/ifcfg-eth1 NAME=eth1 DEVICE=eth1 DEVICETYPE=TeamPort ONBOOT=yes TEAM_MASTER=bond0 TEAM_PORT_CONFIG='{"prio": 100, "key": 10}'

The problem is : the "key" key in TEAM_PORT_CONFIG is not recocknized by teamd.

I also tried "lacp_key" instead of "key", but it still doesn't work (i mean : i'm not able to see key property with the actual 10 value in port property with teamdctl).

Do you know if this parameter is currently supported (having read this repo source, i'm not sure) ?

Many thanks. Best regards, Guichard Fabien.