-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Silicon config support for Broadcom yml file and property overwrite #1744
Silicon config support for Broadcom yml file and property overwrite #1744
Conversation
geans-pin
commented
Jul 13, 2024
•
edited
Loading
edited
Module name | PR | State |
---|---|---|
sonic-buildimage | Common Config Update | |
sonic-sairedis | Modify syncd script to support yml |
@geans-pin
First, we extract the common attributes from platform config.bcm. If it's a common config for all HWSKUs of one type of ASIC, we have to remove it from platform specific config.bcm and only keep it in common config.bcm, It could give us a better control that we can just modify one place to sync one config change for all related HWSKUs, don't have to update platform specific config.bcm one by one. Second, since this a huge change for config.bcm which is critical file for SAI, could you please cover how to do unit test in this design doc? Unit test is quite important to make sure config.bcm is consistent after this feature.
|
Fix review comments :
|
One question is whether the common config can be supported for migration during image installation? |
No, the common config merged is happened in the runtime syncd/sai initialize. Geans |
@ZhaohuiS @venkatmahalingam @gord1306 HLD has been reviewed at the SONiC community review meeting on 11/5/24, if you don't have any further comments, pls help sign off and approve. This feature is targeted for 202411. |
@geans-pin What I mean is not the merge operation. I'm just wondering if it isn’t copied to the new image's partition during installation, similar to how /etc/sonic/config_db.json is copied during the |
@geans-pin Did you verify whether all sonic hwskus work well with enabling the mering functionality with the latest common config.bcm? Could you please provide the test evidence? |
Yes, it works fine on our on-hand SONIC ODMs platforms. For Arista platforms, which we don't have, please help |
Unlike the config_db.json, It will not copy to new image partition. The merged happened in the syncd docker SAI initialized syncd_init_common.sh, in the syncd docker the script will copy the device config.bcm to /tmp and running the merged process on the tmp folder. For a new image install, user doesn't need to adjust anything. Geans |
I uploaded UT to all these related PRs. |
Add section 3.1