-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[EVPN] MAC move from remote to Local does not work #12363
Comments
Debug from frr show that bridge fdb delete command deletes both fdb entries in the kernel which might be the issue. Deleting the mac without dst results in readd bridge fdb show | grep 00:01:00:00:00:01 2022/10/12 04:13:49.672998 ZEBRA: [QFR1P-4MVVD] Rx RTM_DELNEIGH AF_BRIDGE IF 84 st 0x2 fl 0x12 MAC 00:01:00:00:00:01 dst 1.1.1.1 nhg 0 |
@kishorekunal01 has the RC, he will post a fix |
Fixed in sonic-net/sonic-swss#2521 |
…c MAC advertisement in EVPN. (sonic-net#2521) - What I did On local MAC learning, update the MAC entry as local then delete the DST entry from the Kernel for remote MAC. This will make sure that FRR doesn't reinstall the remote MAC(sonic-net#12363) When installing the static MAC in the kernel set the sticky flag as well. (sonic-net#12419) - How I did it Move the DST entry delete code after the MAC update code.(sonic-net#12363) Pass sticky flag to the kernel in fdbsyncd code.((sonic-net#12419) - How to verify it Tested MAC move from remote to local and verified the MAC is local in Kernel.(sonic-net#12363) Verified in Kernel that sticky bit is set and the same as advertised by FRR in the network.((sonic-net#12419) Signed-off-by: [email protected]
Description
When a MAC that's learnt remotely, is learnt local the move doesn't work. The issue is due to a race condition. On detecting mac move, fdbsyncd tries to delete remote mac first and then replace it with local mac. However frr will try to reinstall the remote mac as the local vtep cannot delete remote mac. This results in remote mac being reinstalled after the local mac is updated which results mac pointing to remote vtep even after the move.
Logs from fdbsyncd:
Steps to reproduce the issue:
Describe the results you received:
The mac is not learnt locally. It still points remote
Describe the results you expected:
The mac should move to local. It shouldn't point to remote.
Output of
show version
:Output of
show techsupport
:Additional information you deem important (e.g. issue happens only occasionally):
sonic_dump_qa-eth-vt03-1-4600ca1_20221012_033236.tar.gz
sonic_dump_qa-eth-vt03-2-3700v_20221012_033232.tar.gz
The text was updated successfully, but these errors were encountered: