-
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
Updates for Ebtables and support for multi-asic. #6542
Conversation
Signed-off-by: Abhishek Dosi <[email protected]>
I think the ebtable service was added for reboot scenarios to save and restore. @yxieca , do you remember? |
It should get restored with this also as part of database docker init |
@yxieca can you please review this. |
@abdosi the rules in dockers will be restored upon database docker start. We don't have scenario to restart database docker, do we have a risk of losing the configuration and not reapplied? I guess the service is an oneshot service so we are not regressing anything. Also found out that Guohan added the service because ebtable is not enabled by default on buster. |
@yxieca Verified load minigraph and config reload where we don't start database docker configuration are not lost. |
@lguohan waiting on this check Azure.sonic-buildimage (Test vstest) ? What need to be done. |
better to add a test in sonic-mgmt test to compare the ebtables with expected value. |
Following changes were done for ebtables: - Support for Multi-asic platforms. Ebtable filters are installed in namespace for multi-asic and not host. On Single asic installed on host. - For Multi-asic platforms we don't want to install on host otherwise Namespace-to-Namespace communication does not happens since ARP Request are not forwarded. - Updated to use text file to restore ebtables rules then the binary format. Rules are restore as part of Database docker init instead of rc.local - Removed the ebtable service files for buster as not needed as filters are restored/installed as part of database docker init. All the binaries are pre-installed with ebtables* binary are same as ebatbles-legacy-* Signed-off-by: Abhishek Dosi <[email protected]>
|
- Added testcase to verify ebtable rules. To verify changes done as part of sonic-net/sonic-buildimage#6542 - Added to T0 kvmtest.sh - Will enhance for multi-asic in another PR. Signed-off-by: Abhishek Dosi <[email protected]>
Why/What I did:
Following changes were done for ebtables:
Support for Multi-asic platforms. Ebtable filters are installed in namespace for multi-asic and not host. On Single asic installed on host.
For Multi-asic platforms we don't want to install on host otherwise Namespace-to-Namespace communication does not happens since ARP Request are not forwarded.
Updated to use text file to restore ebtables rules then the binary format. Rules are restore as part of Database docker init instead of rc.local
Removed the ebtable service files for buster as not needed as filters are restored/installed as part of database docker init.
All the binaries are pre-installed with ebtables* binary are same as ebatbles-legacy-*
How I verrify: