-
Notifications
You must be signed in to change notification settings - Fork 744
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
Support STP parameters in bridge #628
base: main
Are you sure you want to change the base?
Conversation
Notes:
|
Added support for some basic spanning tree protocol configuration parameters on the bridge device. * vlan protocol * stp state * forward delay * max age
68b0c7c
to
3e8eb11
Compare
Warning: My colleague ran the tests I included in this patch on his machine (running linux kernel 5.4) and all tests pass. I am upgrading this PR from draft in the hopes that others will run the tests included in this patch and confirm. I suggest that we make a point of running this test suite on various linux kernels. The tests fail for me on kernel 5.11.10 The failure symptom is that all timer values I specify are accepted by the kernel (assuming they were otherwise valid). However, on query every timer is reported as the specified value less one. E.g., if I specify the max age stp parameter as 200 then the operation is is accepted but on querying the current value it returns as 199. |
return h.linkModify(bridge, unix.NLM_F_ACK) | ||
} | ||
|
||
func (h *Handle) BridgeSetStpState(link Link, state uint32) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What values can state take?
also pls push again so CI is triggered |
ping... |
Looks like the tests are failing in CI here |
Added basic support for some basic spanning tree protocol configuration
parameters on the bridge device.