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

[LLDP]: Modify OID index of LLDPRemTableUpdater MIB #155

Merged
merged 2 commits into from
Aug 3, 2020

Conversation

SuvarnaMeenakshi
Copy link
Contributor

- What I did
LLDPRemTableUpdater index in OID is a tuple of (remote time mark, if index, remote device index).

For example: LLDP-MIB::lldpRemSysName.615.177.11 = STRING: remote_device_name
here , remote time mark is 615, interface index is 615, remote device index is 11.

In case of multi-asic platform, when querying this MIB it can happen that same if index result is seen in SNMP walk, with a different remote time mark.

For example: 
LLDP-MIB::lldpRemSysName.615.177.11 = STRING: remote_device_name
LLDP-MIB::lldpRemSysName.625.177.11 = STRING: remote_device_name

In the above walk, 177 interface index data appears twice.

- How I did it
To avoid showing same if index result in the result, set remote time mark to 0, as this value is not significant,

- How to verify it
Make sure the output of single asic platform shows the same result as before but with OID modified as: lldpRemSysName.0.if_index.remote_dev_id.
This will take effect in the entire LLDPRemTableUpdater table.

Make sure the output on mulit asic platform shows the result with unique interface index.

- Description for the changelog

(if index, remote time mark, remote device index).
In case of multi-asic platform, when querying this MIB it can happen
that same if index result is seen in SNMP walk, with a different
remote time mark. To avoid showing same if index result in the
result, set remote time mark to 0.

Signed-off-by: SuvarnaMeenakshi <sumeenak@microsoft.com>
Signed-off-by: SuvarnaMeenakshi <sumeenak@microsoft.com>
@qiluo-msft qiluo-msft merged commit b5815d9 into sonic-net:master Aug 3, 2020
abdosi pushed a commit that referenced this pull request Sep 2, 2020
* [LLDP]: LLDPRemTableUpdater index in OID is a tuple of
(if index, remote time mark, remote device index).
In case of multi-asic platform, when querying this MIB it can happen
that same if index result is seen in SNMP walk, with a different
remote time mark. To avoid showing same if index result in the
result, set remote time mark to 0.
* Add code comment.
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.

3 participants