-
Notifications
You must be signed in to change notification settings - Fork 230
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
Feat(eos_cli_config_gen): Add support for logging event storm-control and link-status in interfaces #3589
Feat(eos_cli_config_gen): Add support for logging event storm-control and link-status in interfaces #3589
Conversation
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.
There are a few things I'd like to optimise in this PR:
- Please add the missing molecule tests for port-channel settings. As right now we are only testing SVI settings.
- It's not very clear what part of the Feat(eos_cli_config_gen): add support for
logging event storm-control discards *
#1953 this PR is addressing. Could you please add some comments on that? I see that the issue mentions global settings as well and there are no other PRs associated with it. - Suggesting to re-run molecule is not a valid way of testing in my opinion. I'd appreciate if you specify exact settings you tested in the lab so that I can check them, modify and retest them in my test inventory. Every PR should have a good description of the data model implemented for reviewers to pick it quick. If there was no lab test - please take schema and convert it to an example to be tested.
- The PR covers SVis (not mentioned in the issue) and port-channels only. While according to the Feat(eos_cli_config_gen): add support for
logging event storm-control discards *
#1953 ethernet ports must be part of the PR as well.
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
5526255
to
18cff72
Compare
Conflicts have been resolved. A maintainer will review the pull request shortly. |
18cff72
to
6d9956c
Compare
Thanks for your feedback @ankudinov.
|
Please review again. Your comments have been addressed.
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.
LGTM, but please add a short version of the following info in the schema description:
"NOTE: when configuring logging event storm-control discards use-global under an interface, it is the default and it does not show up in the config for 4.27.1F on 7050X3."
This is mentioned in the original version, but not anywhere in our docs and can be quite confusing for the users.
I'll approve once that is addressed.
7247a86
to
ee56c67
Compare
@ankudinov please comment in the code/schema next time. Preferably with a ```suggestion block These global comments cannot be "resolved". I don't agree on this comment you asked to add. The use-global is not mentioned anywhere in the data model we are implementing here, so there is no need to mention that. You could instead say |
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.
LGTM. Thx for resolving!
I agree with @ClausHolbechArista that this comment is confusing, and we should remove it! |
… and link-status in interfaces
...sta/avd/roles/eos_cli_config_gen/schemas/schema_fragments/port_channel_interfaces.schema.yml
Outdated
Show resolved
Hide resolved
.../arista/avd/roles/eos_cli_config_gen/schemas/schema_fragments/ethernet_interfaces.schema.yml
Outdated
Show resolved
Hide resolved
ee56c67
to
32f2ab2
Compare
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.
LGTM
Change Summary
Add support for logging event storm-control and link-status in interfaces
Related Issue(s)
Fixes #1953
Note: when configuring logging event storm-control discards use-global under an interface, it is the default and it does not show up in the config for 4.27.1F on 7050X3.
, So not applying any changes to the template/schema foruse-global
inside interfacesstorm-control
andlink-status
if it is missing inside interfaces.Component(s) name
arista.avd.eos_cli_config_gen
Proposed changes
Adding logging event storm-control discards to port-channel interfaces.
Adding logging event link-status to vlan interfaces.
How to test
Checklist
User Checklist
Repository Checklist