Skip to content

[202311]Fix multi VLAN neighbor learning (#3049)#3064

Merged
prsunny merged 2 commits intosonic-net:202311from
theasianpianist:202311-multi-vlan
Mar 5, 2024
Merged

[202311]Fix multi VLAN neighbor learning (#3049)#3064
prsunny merged 2 commits intosonic-net:202311from
theasianpianist:202311-multi-vlan

Conversation

@theasianpianist
Copy link
Contributor

202311 cherry-pick of #3049

What I did

When adding a new neighbor, check if the neighbor IP has already been learned on a different VLAN. If it has, remove the old neighbor entry before adding the new one.

Why I did it
On Gemini devices, if a neighbor IP moves from an active port in one VLAN to a second VLAN, then back to the first VLAN (with 3 different MAC addresses), orchagent will crash. Even though the MAC address of the last move is different from the first MAC address, orchagent believes the last MAC address to already be programmed in the hardware and tries to set an attribute of the entry which doesn't exist.

What I did

Why I did it

How I verified it

Details if related

What I did

When adding a new neighbor, check if the neighbor IP has already been learned on a different VLAN. If it has, remove the old neighbor entry before adding the new one.

Why I did it
On Gemini devices, if a neighbor IP moves from an active port in one VLAN to a second VLAN, then back to the first VLAN (with 3 different MAC addresses), orchagent will crash. Even though the MAC address of the last move is different from the first MAC address, orchagent believes the last MAC address to already be programmed in the hardware and tries to set an attribute of the entry which doesn't exist.
@prsunny prsunny requested a review from yxieca February 27, 2024 23:50
@prsunny prsunny merged commit c4fd095 into sonic-net:202311 Mar 5, 2024
@prsunny
Copy link
Collaborator

prsunny commented Mar 5, 2024

@StormLiangMS for viz

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.

2 participants