-
Notifications
You must be signed in to change notification settings - Fork 113
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
Fix index nodes in LLDP tables whose access right is not-accessible. #112
Conversation
… access right (MAX-ACCESS caluse) are not-accessible: * Index node lldpLocPortNum in lldpLocPortTable, * Index nodes lldpLocManAddrSubtype and lldpLocManAddr in lldpLocManAddrTable, * Index nodes lldpRemTimeMark, lldpRemLocalPortNum and lldpRemIndex in lldpRemTable, and * Index nodes lldpRemManAddrSubtype and lldpRemManAddr in lldpRemManAddrTable tables
Could you clarify your motivation? Any reference?
|
SMIv2 (RFC 2578) defines the access permission of a MIB object:
For MIB object whose MAX-ACCESS is
In SONiC MIB implementation, this index is not return (non-readable):
|
Thanks @shihhsien-wang for the contribution! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sonic-mgmt changes needed.
May I also remove the test code for these nodes from sonic-snmpagent repo (auto test fail before)? Thanks. |
Hi @qiluo-msft , I had update sonic-snmpagent here to pass the unit test, and sonic-mgmt #1319. Please help to review the code, thanks. |
…112) * Remove the code which processes read request of index nodes and their access right (MAX-ACCESS caluse) are not-accessible: * Index node lldpLocPortNum in lldpLocPortTable, * Index nodes lldpLocManAddrSubtype and lldpLocManAddr in lldpLocManAddrTable, * Index nodes lldpRemTimeMark, lldpRemLocalPortNum and lldpRemIndex in lldpRemTable, and * Index nodes lldpRemManAddrSubtype and lldpRemManAddr in lldpRemManAddrTable tables * Update unit test code for LLDP code modification.
- What I did
Ensure
not-accessible
nodes (index nodes in MIB table) in tables in LLDP MIB are not readable by SNMP get operation.- How I did it
Remove the code which processes read request of index nodes and their access right (
MAX-ACCESS
caluse) arenot-accessible
:lldpLocPortNum
inlldpLocPortTable
,lldpLocManAddrSubtype
andlldpLocManAddr
inlldpLocManAddrTable
,lldpRemTimeMark
,lldpRemLocalPortNum
andlldpRemIndex
inlldpRemTable
, andlldpRemManAddrSubtype
andlldpRemManAddr
inlldpRemManAddrTable
tables- How to verify it
Before modified
After modified