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

Copp manager redesign test plan #903

Merged
merged 3 commits into from
Feb 16, 2022

Conversation

JibinBao
Copy link
Contributor

@JibinBao JibinBao commented Nov 19, 2021

@liat-grozovik
Copy link
Collaborator

@yxieca and @prsunny could you please assign someone to review?

@liat-grozovik
Copy link
Collaborator

@dgsudharsan and @prsunny could you please approve this change?




### Test cases #5 - Verify trap configuration is saved or not after reboot(reboot, fast-reboot, warm-reboot)
Copy link
Contributor

@prsunny prsunny Jan 24, 2022

Choose a reason for hiding this comment

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

I think, one more case to verify is the sflow example where the entry is present in copp.json, but not in feature table. It should not be installed until the feature is enabled. Basically, Test 3, by reversing step 1 and 2 may be for a different trap

Copy link
Contributor

Choose a reason for hiding this comment

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

@prsunny I believe Test case 4 should cover the scenario and our copp swss UT handles it. The reason we cannot test sflow in sonic mgmt is if we disable the feature, sampling itself will be disabled and so we cannot assume that packets are not lifted because of trap removal or sampling itself is disabled. That's why we use BGP to test this usecase.

Copy link
Contributor

Choose a reason for hiding this comment

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

I meant sflow as an example. Just want to make sure the sequence is covered. But as you mentioned, Test 4 seems to cover

liat-grozovik pushed a commit to sonic-net/sonic-swss that referenced this pull request Jan 26, 2022
- What I did
Add the new design for copp manager - always_enabled field in copp_cfg.json file.

- Why I did it
A change was done for traps needs to be installed but doesn't have feature (arp, udld, lacp, ip2me),
in the new implementation, coppmgr will not automatically install traps which has no entry in features table, but will check first if the trap has "always_enabled":"true" field.

- How I verified it
run tests for making sure traps are installed and not when expecting them to.

- Details if related
Related to sonic-buildimage change - sonic-net/sonic-buildimage#9302
SONiC mgmt test plan can be found in sonic-net/SONiC#903.
prsunny
prsunny previously approved these changes Jan 27, 2022

## Overview

In the current design of Copp Manager, before installing a trap, CoppMgr checks if one of the following requirements is fulfilled:
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we modify 'current design' to 'previous design'?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

judyjoseph pushed a commit to sonic-net/sonic-swss that referenced this pull request Jan 31, 2022
- What I did
Add the new design for copp manager - always_enabled field in copp_cfg.json file.

- Why I did it
A change was done for traps needs to be installed but doesn't have feature (arp, udld, lacp, ip2me),
in the new implementation, coppmgr will not automatically install traps which has no entry in features table, but will check first if the trap has "always_enabled":"true" field.

- How I verified it
run tests for making sure traps are installed and not when expecting them to.

- Details if related
Related to sonic-buildimage change - sonic-net/sonic-buildimage#9302
SONiC mgmt test plan can be found in sonic-net/SONiC#903.
Change current desgin to previous desgin
@liat-grozovik
Copy link
Collaborator

@prsunny , @dgsudharsan can you signoff?

@liat-grozovik
Copy link
Collaborator

@JibinBao once the PR is ready please add it to the PR description for reference.

@liat-grozovik liat-grozovik merged commit 5a72943 into sonic-net:master Feb 16, 2022
noaOrMlnx added a commit to noaOrMlnx/sonic-swss that referenced this pull request Feb 16, 2022
- What I did
Add the new design for copp manager - always_enabled field in copp_cfg.json file.

- Why I did it
A change was done for traps needs to be installed but doesn't have feature (arp, udld, lacp, ip2me),
in the new implementation, coppmgr will not automatically install traps which has no entry in features table, but will check first if the trap has "always_enabled":"true" field.

- How I verified it
run tests for making sure traps are installed and not when expecting them to.

- Details if related
Related to sonic-buildimage change - sonic-net/sonic-buildimage#9302
SONiC mgmt test plan can be found in sonic-net/SONiC#903.
preetham-singh pushed a commit to preetham-singh/sonic-swss that referenced this pull request Aug 6, 2022
- What I did
Add the new design for copp manager - always_enabled field in copp_cfg.json file.

- Why I did it
A change was done for traps needs to be installed but doesn't have feature (arp, udld, lacp, ip2me),
in the new implementation, coppmgr will not automatically install traps which has no entry in features table, but will check first if the trap has "always_enabled":"true" field.

- How I verified it
run tests for making sure traps are installed and not when expecting them to.

- Details if related
Related to sonic-buildimage change - sonic-net/sonic-buildimage#9302
SONiC mgmt test plan can be found in sonic-net/SONiC#903.
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

Successfully merging this pull request may close these issues.

4 participants