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

When a MAC moved from orphan port to MCLAG interface, the the MAC info goes out of sync between MCLAG peers #2625

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

prasanna-cls
Copy link
Contributor

What I did
when a LEARN event is received for a MC LAG advertised mac, it should be due to mac move.
Hence, the MAC entry is modified with the port and the state DBs are updated accordingly. This will ensure that the peer node gets updated by the mac move event.

Why I did it
On certain platforms like broadcom, the SAI FDB event SAI_FDB_EVENT_MOVE is not supported.
instead, SAI posts SAI_FDB_EVENT_AGED and SAI_FDB_EVENT_LEARN.
As part of the AGED event, the MLAG advertised macs are re-installed in hardware as it is not supposed to get aged as it was installed
with SAI_FDB_ENTRY_ATTR_ALLOW_MAC_MOVE and SAI_FDB_ENTRY_TYPE_STATIC..

Due to this there will be inconsistency in the remote and local state DB.
hence the peer node will never be intimated about the original mac movement to cause an issue.

How I verified it
a)MAC movement between orphan port to MC LAG interface, MAC is in sync in both peer devices
b)Learn 1K macs on MC LAG interface and shut down the MC LAG interface in one of the peer node, all macs must be pointing to ICCP link
c) dis-associate vlan and MC LAG interface, ICCP link after MAC learning, delete vlan

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205

Description for the changelog

MAC move from orphan port to MC LAG interface causes MAC entries to be out of sync among MC LAG peer devices.

…AC not updated in one of the MCLAG peer.

As a fix, when a LEARN event is recieved for a MCLAG advertized mac, it should be due to mac move.
hence, the MAC entry is modified with the moved bridgeport as a dynamic FDB entry and the state DBs are updated accordingly. This will ensure that the peer node gets updated by the mac move event.
@prasanna-cls prasanna-cls requested a review from prsunny as a code owner January 18, 2023 07:12
@prasanna-cls prasanna-cls changed the title When a MAC moved from orphan port to MCLAG interface, one of the MCLAG peer When a MAC moved from orphan port to MCLAG interface, the the MAC info goes out of sync between MCLAG peers Jan 18, 2023
@prasanna-cls prasanna-cls marked this pull request as draft January 19, 2023 05:06
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.

1 participant