-
Notifications
You must be signed in to change notification settings - Fork 484
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
Flush all FDB entries if no attributes specified #1918
Flush all FDB entries if no attributes specified #1918
Conversation
Signed-off-by: Andriy Kokhan <andriy.kokhan@plvision.eu>
This is breaking change and I this was done on purpose, since probably you don't want to flush entries you created statically, let say your network hosts, but flush dynamic by default of all learned entries + @lguohan, let's discuss this on SAI community meeting |
Yeh, you are right. But anyway we should either fix a default value or enum description. At this point, they are contradictory. I'm fine with both ways. |
ahh i see your point now, ok, in the syncd we just forward call to vendor: https://github.com/sonic-net/sonic-sairedis/blob/master/syncd/Syncd.cpp#L598 and then we process it https://github.com/sonic-net/sonic-sairedis/blob/master/syncd/Syncd.cpp#L639 based on attributes https://github.com/sonic-net/sonic-sairedis/blob/master/syncd/RedisClient.cpp#L877 and default type is obtained here: |
I'd expect that in case no attributes specified then SAI library implementation should take the default values based on SAI headers (or meta). I mean it's not mandatory for the application (syncd in our case) to obtain the default values and provide them explicitly to SAI library. Also, I've just check Linux
Looks like @lguohan , your input will be greatly appreciated. Thanks |
added fix in syncd sonic-net/sonic-sairedis#1317 to get that value form SAI metadata |
thats a point to discuss whether we should behave like linux bridge command |
Instead of chainging default value can you update description? |
Signed-off-by: Andriy Kokhan <andriy.kokhan@plvision.eu>
done |
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.
Looks good.
As per enum
sai_fdb_flush_attr_t
description:Also, it's logically to flush all types of FDB entries in case either no attributes specified or just BV_ID or BRIDGE_PORT_ID.