Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to update LACP parameters of teamdev without rebuilding daemon? #53

Open
hustleige2003 opened this issue Oct 20, 2020 · 3 comments

Comments

@hustleige2003
Copy link

as far as I know,teamd is working as a control platform for LACP mode,which handles LACP pdu and maintains protocol status

so,Do we have any method to modify LACP attributions of the teamdev without rebuilding team link in kernel?

for example,when I want to change the fast_rate from default false to true,must I kill the daemon and rebuild it with new configuration command?

I have tried -o -r options which just take over or rebuild the team link but not rebuild the daemon,that leads to “file exists” failure.

@pavel-shirshov
Copy link

man teamdctl
or look it here
https://github.com/jpirko/libteam/tree/master/man

@hustleige2003
Copy link
Author

man teamdctl
or look it here
https://github.com/jpirko/libteam/tree/master/man

thank you very much for your reply!
i have tried to use teamdctl but it can only modify LACP attributions for ports with “port config update”
but i can not set the same state/config item value :
root@XX:/# teamdctl sg1 state item get runner.active
true
root@XX:/# teamdctl sg1 state item get runner.fast_rate
false
root@XX:/# teamdctl sg1 state item get runner.select_policy
lacp_prio
root@XX:/# teamdctl sg1 state item get runner.sys_prio
65535
root@XX:/#

root@XX:/# teamdctl sg1 state item set runner.fast_rate true
libteamdctl: cli_usock_process_msg: usock: Error message received: "OpNotSupp"
libteamdctl: cli_usock_process_msg: usock: Error message content: "Operation not supported."
command call failed (Invalid argument)
root@XX:/# teamdctl sg1 state item set runner.fallback true
libteamdctl: cli_usock_process_msg: usock: Error message received: "OpNotSupp"
libteamdctl: cli_usock_process_msg: usock: Error message content: "Operation not supported."
command call failed (Invalid argument)
root@XX:/# teamdctl sg1 state item set runner.select_policy lacp_prio_stable
libteamdctl: cli_usock_process_msg: usock: Error message received: "OpNotSupp"
libteamdctl: cli_usock_process_msg: usock: Error message content: "Operation not supported."
command call failed (Invalid argument)

@pavel-shirshov
Copy link

Yes. The operations are not supported.
I'd suggest to ask Jiri to add the operations to libteam.
libteam@lists.fedorahosted.org

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants