-
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
[LLDP]: Modify OID index of LLDPRemTableUpdater MIB #153
Conversation
(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>
Hi @SuvarnaMeenakshi , |
Hi @mykolaf , It is not that there are duplicate entries for same single interface in LLDP_ENTRY table, but the additional data for an interface is only seen on SNMP walk output. The OID last 3 digits are formed as: (remote time mark, if index, remote device index) This is my understanding of the issue. when we issue SNMP walk –
So data structure in SNMP code has the correct data, DB has the correct data, it is only SNMP walk that has the issue. |
@@ -430,7 +430,7 @@ def update_data(self): | |||
if not lldp_kvs: | |||
continue | |||
try: | |||
time_mark = int(lldp_kvs[b'lldp_rem_time_mark']) | |||
time_mark = 0 |
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.
please add comment for the motivation behind this change so that in future we can go-back and understand
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.
Added comment.
Signed-off-by: SuvarnaMeenakshi <sumeenak@microsoft.com>
retest this please |
retest license/cla please |
The license/cla check continues to be in 'waiting for status'. Closing this PR, Will raise a new PR for the same diff to re-run license/cla check. |
Raised PR: #155 for the same diff. |
Signed-off-by: SuvarnaMeenakshi sumeenak@microsoft.com
- What I did
LLDPRemTableUpdater index in OID is a tuple of (remote time mark, if index, 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.
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