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] Update the way copp config is applied in test_copp #4595

Merged
merged 1 commit into from
Nov 1, 2021

Conversation

AndriiLozovyi
Copy link
Contributor

Signed-off-by: Andrii-Yosafat Lozovyi [email protected]

Description of PR

Summary: test_copp.py started to fail after SONiC.master.43510-dirty-20211014.091725 because new COPP config wasn't applied on DUT, this happened due to recent PR - 8969 that binded copp-config.service to sonic.target.
In order to apply new COPP config copp_cfg.j2 file should be edited. This PR will updated the way COPP config is applied in test_copp.py.
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911

Approach

What is the motivation for this PR?

Update the way COPP config is applied in TC due to recent changes in - 8969

How did you do it?

How did you verify/test it?

Run test_copp.py on SONiC.master.43510-dirty-20211014.091725

copp/test_copp.py::TestCOPP::test_policer[ARP] PASSED                                                                                                             
copp/test_copp.py::TestCOPP::test_policer[IP2ME] PASSED                                                                                                           
copp/test_copp.py::TestCOPP::test_policer[SNMP] PASSED                                                                                                            
copp/test_copp.py::TestCOPP::test_policer[SSH] PASSED                                                                                                             
copp/test_copp.py::TestCOPP::test_no_policer[BGP] PASSED                                                                                                          
copp/test_copp.py::TestCOPP::test_no_policer[DHCP] PASSED                                                                                                         
copp/test_copp.py::TestCOPP::test_no_policer[LACP] PASSED                                                                                                         
copp/test_copp.py::TestCOPP::test_no_policer[LLDP] PASSED                                                                                                         
copp/test_copp.py::TestCOPP::test_no_policer[UDLD] PASSED

Any platform specific information?

SONiC Software Version: SONiC.master.43510-dirty-20211014.091725
Distribution: Debian 10.11
Kernel: 4.19.0-12-2-amd64
Build commit: b9366f3f8
Build date: Thu Oct 14 15:11:38 UTC 2021
Built by: AzDevOps@sonic-build-workers-000SG3
Platform: x86_64-arista_7170_64c
HwSKU: Arista-7170-64C

Supported testbed topology if it's a new test case?

Documentation

@AndriiLozovyi AndriiLozovyi requested a review from a team as a code owner October 29, 2021 16:10
@AndriiLozovyi
Copy link
Contributor Author

@yxieca Could you please take a look ?

@yxieca yxieca merged commit b20318f into sonic-net:master Nov 1, 2021
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.

2 participants