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

RecircPort not present in SNMP interfaces for Voq chassis #9239

Closed
SuvarnaMeenakshi opened this issue Nov 12, 2021 · 1 comment
Closed

RecircPort not present in SNMP interfaces for Voq chassis #9239

SuvarnaMeenakshi opened this issue Nov 12, 2021 · 1 comment
Assignees
Labels
Chassis 🤖 Modular chassis support

Comments

@SuvarnaMeenakshi
Copy link
Contributor

Description

Steps to reproduce the issue:

  1. Run test_snmp_interfaces.py test on Arista Voq chassis or Linecard

Describe the results you received:

FAILED snmp/test_snmp_interfaces.py::test_snmp_interfaces[str2-7804-lc7-1-None] - AttributeError: 'module' object has no attribute 'locals'
FAILED snmp/test_snmp_interfaces.py::test_snmp_interfaces_mibs[str2-7804-lc7-1-None] - KeyError: u'Recirc0/0'

Describe the results you expected:

Should not see any failure.

SNMP test case compares the list of interfaces in config_db to that of the result from SNMP query.
In this case, the snmp interface does not contain the Recirc port, it contains Ethernet interfaces/port channels and Inband interfaces, which was added using the below PRs:
sonic-net/sonic-snmpagent#228
sonic-net/sonic-py-swsssdk#113
If recirc port is not required in SNMP interface MIB result, then the test case should be modified to ignore this interface.

Output of show version:

(paste your output here)

Output of show techsupport:

(paste your output here or download and attach the file here )

Additional information you deem important (e.g. issue happens only occasionally):

@SuvarnaMeenakshi SuvarnaMeenakshi added the Chassis 🤖 Modular chassis support label Nov 12, 2021
@SuvarnaMeenakshi
Copy link
Contributor Author

Fixed with this PR sonic-net/sonic-snmpagent#244

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Chassis 🤖 Modular chassis support
Projects
None yet
Development

No branches or pull requests

1 participant