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

Feat(eos_cli_config_gen): Add support for logging event storm-control and link-status in interfaces #3589

Merged
merged 4 commits into from
Feb 8, 2024

Conversation

Shivani-gslab
Copy link
Contributor

@Shivani-gslab Shivani-gslab commented Feb 5, 2024

Change Summary

Add support for logging event storm-control and link-status in interfaces

Related Issue(s)

Fixes #1953

  1. Global settings mentioned in the issue are already implemented in our existing schema and template.
  2. As mentioned in the 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 for use-global inside interfaces
  3. Adding the settings for logging event storm-control and link-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


interface Ethernet4
   logging event storm-control discards use-global

interface Port-Channel4
   logging event storm-control discards use-global

interface Vlan3
   logging event link-status

Checklist

User Checklist

  • Verify the command ordering on EOS

Repository Checklist

  • My code has been rebased from devel before I start
  • I have read the CONTRIBUTING document.
  • My change requires a change to the documentation and documentation have been updated accordingly.
  • I have updated molecule CI testing accordingly. (check the box if not applicable)

@Shivani-gslab Shivani-gslab requested review from a team as code owners February 5, 2024 09:45
@github-actions github-actions bot added role: eos_cli_config_gen issue related to eos_cli_config_gen role state: CI Updated CI scenario have been updated in the PR state: Documentation role Updated role: eos_designs issue related to eos_designs role labels Feb 5, 2024
@ClausHolbechArista ClausHolbechArista requested a review from a team February 6, 2024 07:03
@ClausHolbechArista ClausHolbechArista added the one approval This PR has one approval and is only missing one more. label Feb 6, 2024
Copy link
Contributor

@ankudinov ankudinov left a 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:

  1. Please add the missing molecule tests for port-channel settings. As right now we are only testing SVI settings.
  2. 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.
  3. 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.
  4. 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.

Copy link

github-actions bot commented Feb 6, 2024

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions github-actions bot added the state: conflict PR with conflict label Feb 6, 2024
@github-actions github-actions bot removed the state: conflict PR with conflict label Feb 6, 2024
Copy link

github-actions bot commented Feb 6, 2024

Conflicts have been resolved. A maintainer will review the pull request shortly.

@Shivani-gslab
Copy link
Contributor Author

Shivani-gslab commented Feb 6, 2024

There are a few things I'd like to optimise in this PR:

  1. Please add the missing molecule tests for port-channel settings. As right now we are only testing SVI settings.
  2. 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.
  3. 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.
  4. 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.

Thanks for your feedback @ankudinov.

  1. Added the molecule test for port-channel interface.
  2. I have updated the PR description for the issue fix.
  3. Added the commands to run in PR description.
  4. As ethernet interface already had the storm_control discards, I have added in port-channel and for Vlan interface I could see only link-status on EOS CLI (which is included in this PR)

@ClausHolbechArista ClausHolbechArista dismissed ankudinov’s stale review February 7, 2024 12:52

Please review again. Your comments have been addressed.

Copy link
Contributor

@ankudinov ankudinov left a 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.

@Shivani-gslab Shivani-gslab force-pushed the #issue1953 branch 2 times, most recently from 7247a86 to ee56c67 Compare February 8, 2024 07:10
@ClausHolbechArista
Copy link
Contributor

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.

@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 Overrides global logging event settings.

Copy link
Contributor

@ankudinov ankudinov left a 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!

@carlbuchmann
Copy link
Member

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.

@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 Overrides global logging event settings.

I agree with @ClausHolbechArista that this comment is confusing, and we should remove it!

Copy link
Member

@carlbuchmann carlbuchmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@carlbuchmann carlbuchmann merged commit 3909578 into aristanetworks:devel Feb 8, 2024
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
one approval This PR has one approval and is only missing one more. rn: Feat(eos_cli_config_gen) role: eos_cli_config_gen issue related to eos_cli_config_gen role role: eos_designs issue related to eos_designs role state: CI Updated CI scenario have been updated in the PR state: Documentation role Updated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feat(eos_cli_config_gen): add support for logging event storm-control discards *
4 participants