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

FdbOrch getPort failed because fdb_entry have no switch_id #466

Merged
merged 1 commit into from
Apr 11, 2018

Conversation

tylerlinp
Copy link
Contributor

What I did
I modified getPort function in FdbOrch, where the key for get_attribute hadn't set switch_id. It was the same for removeFdbEntry. I just added it like addFdbEntry.
Why I did it
I found a bug that mirror didn't work when mirrored to an vlan interface, while ok for port interface.
How I verified it
After checking the syslog, I found ERR that said failed to get bridge port ID, while the entry can be found in DB. Then read the source code and I found that meta_key for fdb_entry was serialized as a whole, so the key string included switch_id, so in our case it failed in checking object_exists.
Details if related
ERR orchagent: :- getPort: Failed to get bridge port ID for FDB entry 00:1b:21:bb:2f:de, rv:-5

@lguohan lguohan merged commit 98c084a into sonic-net:master Apr 11, 2018
EdenGri pushed a commit to EdenGri/sonic-swss that referenced this pull request Feb 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants