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

[202311][lldp-syncd] Fix unexpected exception in snmp-subagent (#64) #67

Closed
wants to merge 1 commit into from

Conversation

ZhaohuiS
Copy link
Contributor

@ZhaohuiS ZhaohuiS commented Aug 1, 2024

cherry-pick #64

Separate deleted and changed scearios
deleted interfaces, delete their table key
changed interfaces
if lldp_rem_time_mark is only changed key, just use hset its new value. Don't delete interface table key. If other keys are changed as well, delete interface key and use hmset to set the whole dict into DB, instead of using hset each item one by one. This will avoid interface exists but some of its keys are not added.

Separate deleted and changed scearios
deleted interfaces, delete their table key
changed interfaces
if lldp_rem_time_mark is only changed key, just use hset its new value. Don't delete interface table key.
If other keys are changed as well, delete interface key and use hmset to set the whole dict into DB, instead of using hset each item one by one. This will avoid interface exists but some of its keys are not added.

Signed-off-by: Zhaohui Sun <zhaohuisun@microsoft.com>
@ZhaohuiS
Copy link
Contributor Author

ZhaohuiS commented Aug 1, 2024

/azp_run

@StormLiangMS
Copy link

/azp run Azure.sonic-dbsyncd

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ZhaohuiS
Copy link
Contributor Author

ZhaohuiS commented Aug 1, 2024

@yxieca could you please help review and merge this PR? It's missed in 202311.

@ZhaohuiS ZhaohuiS requested a review from yxieca August 1, 2024 13:56
@StormLiangMS
Copy link

/azp run Azure.sonic-dbsyncd

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ZhaohuiS
Copy link
Contributor Author

ZhaohuiS commented Aug 2, 2024

Close it since #68 is auto merged.

@ZhaohuiS ZhaohuiS closed this Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants