-
Notifications
You must be signed in to change notification settings - Fork 53
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
#4964: Modify traffexam to be able to emit LACP data units #5060
base: 4964-add-information-about-lacp-connection-status-for-lag-ports
Are you sure you want to change the base?
#4964: Modify traffexam to be able to emit LACP data units #5060
Conversation
pkazlenka
commented
Feb 1, 2023
- Added new traffexam endpoint (/address//lacp)
* Added support to traffgen to emit LACP packet
* Added debug for endpoint
* Added new traffexam endpoint (/address/<idnr>/lacp)
* Fixed wrong explanation in comment
4ac1932
to
5512ae4
Compare
* Bumped version (dev19 -> dev20)
Is it ok that the commit base is not the develop branch? Because in case of a merge, that code will not be in the develop. |
try: | ||
push_entry = model.LACPPush(payload) | ||
get_context().action.lacp_push(address.iface, push_entry) | ||
except ValueError as e: |
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 about KeyError(at least for missing keys in payload)?
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.
Added call to extract_payload_fields()
method.
Yes. This change (as well as tests) doesn't make sense without changes from feature branch. I guess it's natural to have branches like
|
* Updated LACP emitting code to be closer to other methods approach
entry.aggregation, | ||
entry.lacp_timeout, | ||
entry.lacp_activity]: | ||
actor_state_binary += self._bool_to_str(field) |
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.
why not actor_state_binary += '1' if field or '0'
entry.lacp_timeout, | ||
entry.lacp_activity]: | ||
actor_state_binary += self._bool_to_str(field) | ||
# Kilda ignores everything except lacp actor state. If this changes - expand this method with more fields |
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.
This is not true. Kilda stores info about partner's ports, system_id, keys, etc
docker/db-migration/migrations/024-add-lacp-partner-class.yaml