Fix for [EVPN] When MAC moves from remote end point to local, ASIC DB fields are not updated properly for the mac #11503Update NotificationProcessor.cpp#1118
Fix for [EVPN] When MAC moves from remote end point to local, ASIC DB fields are not updated properly for the mac #11503Update NotificationProcessor.cpp#1118prsunny merged 9 commits intosonic-net:masterfrom anilkpan:master
Conversation
In case of a mac move event, remove the existing FDB entry from ASIC DB first and then set the new one.
dgsudharsan
left a comment
There was a problem hiding this comment.
@anilkpan Can you please add UT for the coverage?
|
@kcudnik Can you please review? |
|
I will work on adding the PTF test for mac move. ETA end of the month. |
|
please satisfy code coverage via unittests |
Hi @anilkpan Not sure if PTF tests will satisfy the coverage. I believe you need to add gtest here. Can you please check? |
|
yes i was suggesting to add tests unittests here |
@dgsudharsan, i will start working on adding the unittest next week. |
|
@anilkpan Can you please provide ETA for UT? |
|
@dgsudharsan, I have coded the gtest for this scenario. Is there a document that describes how to run the tests locally? |
@kcudnik Can you please help here? |
to run locally go to the desired directory and type "make check" and it will run all tests |
Thanks @kcudnik, i will try this. |
|
@kcudnik, 'make check' seems to need libsaimetadata.so.0, which was not built. Any ideas what I am missing? make check-TESTS
|
|
hmm, it should be build, can you type "make" first in top directory to build everyting ? |
|
@anilkpan Can you please provide ETA of adding the coverage? |
|
@dgsudharsan, I plan to add the test by end of next week. |
Added coverage for mac move.
|
need to check why the test is failing, will take few more days. |
|
@anilkpan Is there any update on this PR? |
|
@dgsudharsan, The test is failing. Is the syslog or the core dump available for the test run so that I can debug the failure? |
@vivekrnv Can you please help here? |
Hi, There must be a test binary/executable found after you run make. invoke the binary with gdb to drop into a shell. Set breakpoints in you code and debug. |
|
@anilkpan Were you able to proceed? Can you please provide ETA? |
|
Thanks @vivekrnv. |
|
@kcudnik Can we merge this? |
|
Request for 202211 branch |
|
@anilkpan, @dgsudharsan this change cannot be cherry-picked cleanly. Please open new PR. |
|
@anilkpan Can you please raise a separate PR for 202205? |
|
@dgsudharsan, working on it, ETA 12/22 |
|
@dgsudharsan, created PR #1173 on 202205 branch. |
… fields are not updated properly for the mac #11503Update NotificationProcessor.cpp (#1118) In case of a mac move event, remove the existing FDB entry from ASIC DB first and then set the new one.
… fields are not updated properly for the mac #11503Update NotificationProcessor.cpp (sonic-net#1118) In case of a mac move event, remove the existing FDB entry from ASIC DB first and then set the new one.
… fields are not updated properly for the mac #11503Update NotificationProcessor.cpp (sonic-net#1118) In case of a mac move event, remove the existing FDB entry from ASIC DB first and then set the new one.
Issue:
When a mac moves from remote to local, the local mac is set in ASIC db using hset, which updates common fields, but does not remove fields specific to remote mac.
Fix:
In case of a mac move event, remove the existing FDB entry from ASIC DB first and then set the new one.