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

[snmp] test_snmp_interfaces_mibs fix KEY_ERROR issue on L2 config #4058

Merged
merged 1 commit into from
Aug 18, 2021

Conversation

AndriiLozovyi
Copy link
Contributor

@AndriiLozovyi AndriiLozovyi commented Aug 17, 2021

Signed-off-by: Andrii-Yosafat Lozovyi andrii-yosafatx.lozovyi@intel.com

Description of PR

Summary: Changed the way value was extracted from dict by using get('description', '') function, in order to fix test case fail with L2 config deployed on DUT.
Fix sonic-net/sonic-buildimage#8310

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?

Fix test fail with L2 configuration deployed on DUT.

How did you do it?

Changed the way value was extracted from dict.

How did you verify/test it?

Run test case with L2 config deployed on DUT:
snmp/test_snmp_interfaces.py::test_snmp_interfaces_mibs PASSED

Any platform specific information?

SONiC Software Version: SONiC.202012.28274-0162cee66
Distribution: Debian 10.10
Kernel: 4.19.0-12-2-amd64
Build commit: 0162cee66
Build date: Tue Aug 10 14:00:00 UTC 2021
Built by: AzDevOps@sonic-build-workers-000KZF
Platform: x86_64-arista_7170_64c
HwSKU: Arista-7170-64C

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

Documentation

Signed-off-by: Andrii-Yosafat Lozovyi <andrii-yosafatx.lozovyi@intel.com>
@lguohan
Copy link
Contributor

lguohan commented Aug 18, 2021

thanks for contributing, the correct syntax for Fix is this

Fix https://github.com/Azure/sonic-buildimage/issues/8310

@lguohan lguohan merged commit f50ae15 into sonic-net:master Aug 18, 2021
@roy-sror
Copy link
Contributor

@AndriiLozovyi - could you please backport this fix to 202012?

@AndriiLozovyi
Copy link
Contributor Author

@roysr-nv,
I'm not sure that there is 202012 branch in sonic-mgmt repo, at least I couldn't find one.

@roy-sror
Copy link
Contributor

@roysr-nv,
I'm not sure that there is 202012 branch in sonic-mgmt repo, at least I couldn't find one.

@AndriiLozovyi - you're right, for some reason I was sure that the fix is in sonic-build(since there original bug is there)

vmittal-msft pushed a commit to vmittal-msft/sonic-mgmt that referenced this pull request Sep 28, 2021
…nic-net#4058)

Changed the way value was extracted from dict by using get('description', '') function, in order to fix test case fail with L2 config deployed on DUT.

Signed-off-by: Andrii-Yosafat Lozovyi <andrii-yosafatx.lozovyi@intel.com>
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.

sonic-cfggen L2 config_db.json missing information causing SNMP test failure
4 participants