Skip to content

[snmp] extend snmp test for xcvrd#677

Merged
lguohan merged 2 commits intosonic-net:masterfrom
keboliu:xcvrd-snmp-test
Aug 27, 2018
Merged

[snmp] extend snmp test for xcvrd#677
lguohan merged 2 commits intosonic-net:masterfrom
keboliu:xcvrd-snmp-test

Conversation

@keboliu
Copy link
Copy Markdown
Contributor

@keboliu keboliu commented Aug 9, 2018

Description of PR

Summary:
Extend snmp test case to support xcvrd snmp test

Type of change

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

Approach

How did you do it?

Add new test cases in snmp test to test xcvrd feature
detail see test plan https://github.com/Azure/SONiC/blob/gh-pages/doc/xcvrd-snmp-testbed-test-plan.md

How did you verify/test it?

run test on mlnx platform.

Any platform specific information?

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

Documentation

Test plan link: https://github.com/Azure/SONiC/blob/gh-pages/doc/xcvrd-snmp-testbed-test-plan.md


- name: Check all transceivers present in Entity MIB
fail:
msg: '{{ (((item.value.name.split("Ethernet")[-1] | int + 1) * 1000) | string) }}'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could you explain the complex expression?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@qiluo-msft the OID index is defined as ifindex*1000, and for EthernetN, ifindex is (N+1), so the OID index for EthernetN will be (N +1)*1000, detail info can be found in the requirement https://github.com/Azure/SONiC/blob/gh-pages/doc/OIDsforSensorandTransciver.MD#transceiver-requirements-entity-mib

Copy link
Copy Markdown
Contributor

@qiluo-msft qiluo-msft Aug 10, 2018

Choose a reason for hiding this comment

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

The comment is perfect for code comment. Every future code reader will have the same question.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@qiluo-msft will add this to code as comments.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@qiluo-msft comments added to the code, let me know if you have further comments.

@lguohan lguohan merged commit 3e53ee8 into sonic-net:master Aug 27, 2018
@keboliu keboliu deleted the xcvrd-snmp-test branch August 27, 2018 01:32
@qiluo-msft
Copy link
Copy Markdown
Contributor

It will break the nightly test of old images. Could you add some logic to bypass the test?

qiluo-msft added a commit to qiluo-msft/sonic-mgmt that referenced this pull request Sep 14, 2018
auspham pushed a commit to auspham/sonic-mgmt that referenced this pull request Feb 3, 2026
This test is failing since extra timeout settings are causing pfcwd
state to change in the meantime and test fails. extended timeout setting
should be applicable for xgs only and not dnx platforms.
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
…D automatically (#23929)

#### Why I did it
src/sonic-platform-daemons
```
* f661d74 - (HEAD -> 202505, origin/202505) pulling into 202505 (sonic-net#677) (35 minutes ago) [Gregory Boudreau]
```
#### How I did it
#### How to verify it
#### Description for the changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants