sonic-swss
sonic-swss copied to clipboard
[mlag]Fix dynamic local fdb not save to state db
What I did Fix dynamic local fdb not save to state db, issue is as below:
- Dual access for mlag
- active peer learn mac, stanby sync mac, so stanby device's fdb is static
- active peer mlag interface shutdown, so acitve device's fdb convert to peer link and static, stanby's fdb switch to dynamic
- clear fdb in stanby, issue appear, asic db cleared, but iccpd still exist fdb entry, either do acitve device.
Why I did it If dynamic local fdb not save to state db, then clear fdb will fail to remove fdb entry in state db and iccpd will not got clear notification, fdb entry in iccpd will not sync with asic db, and peer device's fdb will not remove either. How I verified it clear fdb all Details if related
@prsunny @Praveen-Brcm help check and forward this, thanks!
@prsunny help forward this, thanks!
check newest test case:test_mclagFdb_remote_to_local has passed.
@qiluo-msft @lguohan help merge this, thanks!
@gechiang help forward this, thanks!
/azp run
Azure Pipelines successfully started running 1 pipeline(s).