-
Notifications
You must be signed in to change notification settings - Fork 275
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
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
Conversation
In case of a mac move event, remove the existing FDB entry from ASIC DB first and then set the new one.
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.
@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.